/* ============================================================
   Instagram Block — white background, bold centred heading
   ============================================================ */

.insta-block {
    background: #fff;
    padding: 10px 0 0;
}

/* ── Header ──────────────────────────────────────────────── */

.insta-block__header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 16px;
}

.insta-block__heading {
    font-size: clamp(1.6rem, 3.5vw, 40px);
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
    text-transform: uppercase;
    line-height: 1.15;
}

.insta-block__link {
    display: inline-block;
    font-size: 20px;
    color: #000000;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.insta-block__link:hover {
    color: #000000;
    text-decoration: underline;
}

/* ── Grid / Swiper ───────────────────────────────────────── */

.insta-block__grid.swiper {
    max-width: 1100px;
    margin: 0 auto;
}

.insta-block__grid .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.insta-block__grid .swiper-slide {
    width: auto;
    height: auto;
}

/* ── Each cell ───────────────────────────────────────────── */

.insta-block__item {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 2.6;
    background: #e8e8e8;
    text-decoration: none;
}

.insta-block__thumb,
.insta-block__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.insta-block__thumb {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.insta-block__video {
    opacity: 0;
    z-index: 2;
}

/* Subtle zoom for image-only posts on hover */
.insta-block__item:not([data-video]):hover .insta-block__thumb {
    transform: scale(1.05);
    filter: brightness(0.75);
}

/* ── Skeleton loading cells ──────────────────────────────── */

.insta-block__skeleton {
    aspect-ratio: 2 / 3;
    background: linear-gradient(90deg, #e8e8e8 25%, #f2f2f2 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: insta-shimmer 1.4s infinite;
}

@keyframes insta-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
    .insta-block__grid .swiper-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .insta-block {
        padding: 0px 0 0;
    }

    .insta-block__grid.swiper {
        overflow: hidden;
    }

    .insta-block__grid .swiper-wrapper {
        display: flex;
        gap: 0;
    }

    .insta-block__grid .swiper-slide {
        width: auto;
        flex-shrink: 0;
    }

    .insta-block__heading {
        font-size: 2.5rem;
        line-height: 1;
        letter-spacing: 0;
    }
}