/* ==========================================================================
   Instagram reels showcase — live reel embeds in an editorial grid, with a
   "Follow on Instagram" CTA mirroring the collections-showcase head pattern.
   ========================================================================== */

.insta-section {
    background: var(--color-surface-alt);
    padding: clamp(80px, 9vw, 130px) var(--gutter) clamp(90px, 10vw, 140px);
}

.insta-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto clamp(40px, 5vw, 64px);
}

.insta-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-heading-accent);
}

.insta-head .eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--color-accent);
}

.insta-head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-ink);
    max-width: 640px;
}

.insta-head p {
    margin-top: 14px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-body);
    max-width: 520px;
}

.insta-follow-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--color-hairline);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color var(--dur-fast) var(--ease-premium),
                color var(--dur-fast) var(--ease-premium);
}

.insta-follow-link svg {
    width: 15px;
    height: 15px;
    transition: transform var(--dur-fast) var(--ease-premium);
}

.insta-follow-link:hover {
    color: var(--color-accent-dark);
    border-color: var(--color-accent);
}

.insta-follow-link:hover svg {
    transform: translateX(4px);
}

.insta-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 28px);
}

/* Each cell reserves the reel's native 9:16 frame before Instagram's
   embed.js swaps the blockquote for its iframe, so the grid doesn't jump
   once reels load. */
.insta-reel {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.insta-reel iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Instagram's embed markup renders inside this blockquote; until embed.js
   processes it (or if a placeholder permalink never resolves), the fallback
   link below keeps the cell looking intentional rather than empty. */
.insta-reel blockquote.instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.insta-reel-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 24px;
}

.insta-reel-fallback .insta-play {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background var(--dur-fast) var(--ease-premium);
}

.insta-reel-fallback .insta-play svg {
    width: 16px;
    height: 16px;
}

.insta-reel-fallback span.insta-fallback-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.insta-reel-fallback:hover .insta-play {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

@media (max-width: 980px) {
    .insta-head { flex-direction: column; align-items: flex-start; gap: 18px; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .insta-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        gap: 14px;
    }
}
