.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.instagram-item {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    box-shadow: 0 10px 28px rgba(39, 57, 90, 0.08);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.instagram-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(39, 57, 90, 0);
    transition: background 0.3s ease;
}

.instagram-item__icon {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.06);
}

.instagram-item:hover::after {
    background: rgba(39, 57, 90, 0.38);
}

.instagram-item:hover .instagram-item__icon {
    opacity: 1;
    transform: scale(1);
}

.instagram-btn-container {
    text-align: center;
}

.instagram-section .section-header p a {
    color: inherit;
    text-decoration: none;
}

.instagram-section .section-header p a:hover {
    color: var(--deep-blue);
}

.instagram-section .instagram-description {
    max-width: 640px;
    margin: 14px auto 0;
}

/* Live profile feed (Instagram official embed) */
.instagram-live {
    max-width: 960px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(39, 57, 90, 0.08);
}

.instagram-live iframe {
    display: block;
    width: 100%;
    height: 790px;
    border: 0;
}

@media (max-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 576px) {
    .instagram-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}
