﻿/* Instagram media rail shared by the homepage and Gallery page. */
.ig-showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 9vw, 132px) var(--page-gutter, 6vw);
    background: #171815;
    color: #f8f5eb;
}

.ig-showcase__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin: 0 auto clamp(28px, 4vw, 48px);
    max-width: 1680px;
}

.ig-showcase__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(248, 245, 235, .74);
    font-size: 10px;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.ig-showcase__mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(215, 180, 75, .55);
    border-radius: 50%;
    color: #d7b44b;
    font-size: 14px;
}

.ig-showcase__heading h2 {
    max-width: 760px;
    margin: 20px 0 10px;
    color: #f8f5eb;
    font: 500 clamp(34px, 5vw, 68px)/1.06 var(--font-heading, Georgia, serif);
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ig-showcase__heading h2 em {
    color: var(--gold, #d7b44b);
    font-style: italic;
}

.ig-showcase__heading p {
    max-width: 540px;
    margin: 0;
    color: rgba(248, 245, 235, .68);
    font-size: 14px;
    line-height: 1.65;
}

.ig-showcase__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
}

.ig-control {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(248, 245, 235, .25);
    border-radius: 50%;
    background: transparent;
    color: #f8f5eb;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.ig-control:hover,
.ig-control:focus-visible,
.ig-control--play[aria-pressed="true"] {
    border-color: #d7b44b;
    background: #d7b44b;
    color: #171815;
}

.ig-control:focus-visible,
.ig-card:focus-visible,
.ig-lightbox button:focus-visible,
.ig-lightbox a:focus-visible {
    outline: 2px solid #f8f5eb;
    outline-offset: 3px;
}

.ig-showcase__profile,
.ig-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    margin-left: 8px;
    padding: 0 18px;
    border: 1px solid rgba(215, 180, 75, .65);
    border-radius: 999px;
    color: #f8f5eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}

.ig-showcase__profile:hover,
.ig-fallback:hover {
    background: #d7b44b;
    color: #171815;
}

.ig-rail {
    display: flex;
    --ig-gap: clamp(13px, 1.5vw, 22px);
    width: 100%;
    gap: var(--ig-gap);
    max-width: 1680px;
    margin: 0 auto;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ig-rail:focus-visible {
    outline: 2px solid #d7b44b;
    outline-offset: 5px;
}

.ig-card {
    position: relative;
    display: block;
    flex: 0 0 calc(33.333333% - 14.6667px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: #272820;
    color: #f8f5eb;
    cursor: pointer;
    scroll-snap-align: start;
    text-align: left;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ig-card:hover { transform: translateY(-3px); box-shadow: 0 22px 42px rgba(0, 0, 0, .3); }
.ig-card:active { transform: scale(.98); }
.ig-card__image,
.ig-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.23, 1, .32, 1);
}
.ig-card__placeholder { display: grid; place-items: center; color: #d7b44b; font-size: 38px; }
.ig-card__video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.ig-feed-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (hover: hover) and (pointer: fine) {
    .ig-card:hover .ig-card__image,
    .ig-card:hover .ig-card__placeholder { transform: scale(1.045); }
}

.ig-card::before,
.ig-card::after {
    position: absolute;
    z-index: 0;
    right: 0;
    left: 0;
    content: "";
    pointer-events: none;
}
.ig-card::before { top: 0; height: 34%; background: linear-gradient(180deg, rgba(12, 13, 11, .68), transparent); }
.ig-card::after { bottom: 0; height: 48%; background: linear-gradient(0deg, rgba(12, 13, 11, .88), transparent); }
.ig-card__top,
.ig-card__copy { position: absolute; z-index: 1; right: 15px; left: 15px; display: flex; }
.ig-card__top { top: 15px; align-items: center; justify-content: space-between; gap: 8px; }
.ig-card__title { overflow: hidden; color: #fffdf6; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.ig-card__badge { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255, 255, 255, .44); border-radius: 50%; background: rgba(22, 23, 20, .44); color: #fff; font-size: 10px; backdrop-filter: blur(8px); }
.ig-card__copy { bottom: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
.ig-card__author { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ig-card__avatar { display: block; width: 30px; height: 30px; flex: 0 0 30px; padding: 4px; border: 2px solid #d7b44b; border-radius: 50%; background: #171815; object-fit: contain; }
.ig-card__author-name { overflow: hidden; color: #fffdf6; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ig-card__caption { display: -webkit-box; overflow: hidden; color: rgba(255, 253, 246, .78); font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ig-card__open { display: inline-flex; align-items: center; gap: 7px; color: #e1c35e; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.ig-feed-status {
    min-height: 1.5em;
    max-width: 1680px;
    margin: 14px auto 0;
    color: rgba(248, 245, 235, .56);
    font-size: 11px;
}

.ig-fallback { margin: 16px 0 0; }
.ig-fallback[hidden] { display: none; }

.ig-lightbox {
    width: min(1080px, calc(100vw - 32px));
    max-width: none;
    max-height: min(820px, calc(100dvh - 32px));
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(248, 245, 235, .17);
    background: transparent;
    color: #f8f5eb;
}

.ig-lightbox::backdrop { background: rgba(9, 10, 8, .86); backdrop-filter: blur(9px); }
.ig-lightbox__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); min-height: 480px; max-height: min(820px, calc(100dvh - 32px)); background: #191a17; }
.ig-lightbox__media { position: relative; display: grid; min-width: 0; min-height: 320px; place-items: center; overflow: hidden; background: #0e0f0d; }
.ig-lightbox__media>img,.ig-lightbox__media>video { display: block; max-width: 100%; max-height: min(78dvh, 760px); object-fit: contain; }
.ig-lightbox__media>img[hidden],.ig-lightbox__media>video[hidden],.ig-lightbox__carousel[hidden] { display: none; }
.ig-lightbox__media>video { width: 100%; height: 100%; }
.ig-lightbox__carousel { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.ig-lightbox__carousel img,.ig-lightbox__carousel video { flex: 0 0 100%; width: 100%; height: 100%; max-height: min(78dvh, 760px); object-fit: contain; scroll-snap-align: center; }
.ig-lightbox__child-nav { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.ig-lightbox__nav,.ig-lightbox__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(248, 245, 235, .4); border-radius: 50%; background: rgba(17, 18, 15, .62); color: #fffdf6; cursor: pointer; }
.ig-lightbox__nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); }
.ig-lightbox__nav--prev { left: 14px; }
.ig-lightbox__nav--next { right: 14px; }
.ig-lightbox__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.ig-lightbox__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; }
.ig-lightbox__type { color: #d7b44b; font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ig-lightbox__caption { max-height: 46dvh; margin: 0; overflow: auto; color: rgba(248, 245, 235, .86); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.ig-lightbox__date { color: rgba(248, 245, 235, .5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.ig-lightbox__link { display: inline-flex; align-items: center; gap: 9px; color: #e1c35e; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }

@media (max-width: 900px) {
    .ig-showcase__heading { align-items: flex-start; flex-direction: column; }
    .ig-showcase__actions { flex-wrap: wrap; }
    .ig-card { flex-basis: calc(50% - 6.5px); }
}

@media (max-width: 620px) {
    .ig-showcase { padding-top: 68px; padding-bottom: 68px; }
    .ig-showcase__heading { gap: 24px; }
    .ig-showcase__heading h2 { font-size: clamp(34px, 10vw, 48px); }
    .ig-showcase__actions { width: 100%; }
    .ig-showcase__profile { margin-left: auto; }
    .ig-card { flex-basis: min(78vw, 300px); }
    .ig-lightbox { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .ig-lightbox__panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100dvh - 20px); }
    .ig-lightbox__media { min-height: 0; height: min(58dvh, 540px); }
    .ig-lightbox__media>img,.ig-lightbox__media>video,.ig-lightbox__carousel img,.ig-lightbox__carousel video { max-height: 58dvh; }
    .ig-lightbox__copy { gap: 10px; max-height: 32dvh; padding: 20px 24px 24px; }
    .ig-lightbox__close { top: -52px; right: 0; }
    .ig-lightbox__caption { max-height: 14dvh; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .ig-rail { scroll-behavior: auto; }
    .ig-card__image,.ig-card__placeholder { transition: none; }
}






