/* =====================================================================
   Artists page — "Artists Who Graced BGU"
   Uses the shared dark-maroon palette & light-card tokens from common.css.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.artists-hero {
    position: relative;
    text-align: center;
    padding: clamp(5rem, 13vh, 8.5rem) 1.5rem clamp(3rem, 7vh, 5rem);
    background:
        linear-gradient(rgba(20, 8, 8, 0.74), rgba(122, 18, 18, 0.86)),
        url('../images/hero-bg.jpg') center / cover no-repeat;
    overflow: hidden;
}

.artists-hero .hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold-soft);
    margin-bottom: 1rem;
}

.artists-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 1.1rem;
    background: linear-gradient(90deg, #fff 30%, var(--gold-soft));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.artists-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text);
    font-size: clamp(1rem, 2vw, 1.15rem);
    opacity: 0.92;
}

/* ---------------------------------------------------------------------
   Main / intro
   --------------------------------------------------------------------- */
.artists-main {
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
    background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

.artists-intro {
    max-width: 820px;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    padding: 0 1.5rem;
    text-align: center;
}

.artists-intro .section-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.artists-intro h2 {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text);
    font-weight: 700;
    margin: 0 0 1.2rem;
    position: relative;
    padding-bottom: 1.2rem;
}

.artists-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.artists-intro p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ---------------------------------------------------------------------
   Gallery wall — gilded frames around the archival photographs.
   The images already carry their own captions, so the frame is the
   only adornment: a slim gold border + soft mat, hung on the maroon wall.
   --------------------------------------------------------------------- */
.legends-gallery {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    align-items: start;
    gap: clamp(1.8rem, 4vw, 3.2rem);
}

.legend-frame {
    position: relative;
    margin: 0;
    padding: 0.55rem;
    border-radius: 6px;
    background:
        linear-gradient(135deg, #f7d977 0%, #c9962f 22%, #8c5e12 48%,
                        #e7be5a 64%, #a9781e 82%, #6e4a0f 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 0 0 1px rgba(60, 35, 6, 0.55),
        var(--sh);
    cursor: zoom-in;
    transition: transform var(--t), box-shadow var(--t);
    outline: none;
}

/* inner bevel line of the frame */
.legend-frame::before {
    content: '';
    position: absolute;
    inset: 0.42rem;
    border-radius: 3px;
    box-shadow:
        0 0 0 1px rgba(60, 35, 6, 0.45),
        0 0 0 2px rgba(255, 240, 200, 0.35);
    pointer-events: none;
    z-index: 2;
}

.legend-frame img {
    display: block;
    width: 100%;
    height: auto;          /* keep full image — captions live at the bottom */
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.legend-frame:hover,
.legend-frame:focus-visible {
    transform: translateY(-8px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 0 0 1px rgba(60, 35, 6, 0.55),
        0 0 0 4px rgba(244, 196, 48, 0.28),
        var(--sh-lg);
}

/* ---------------------------------------------------------------------
   Scroll-reveal (progressive enhancement)
   --------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .legend-frame {
            opacity: 0;
            animation: artistRise 0.8s var(--ease) both;
            animation-timeline: view();
            animation-range: entry 0% cover 16%;
        }
    }
}

@keyframes artistRise {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .legend-frame { animation: none !important; opacity: 1 !important; }
}

/* ---------------------------------------------------------------------
   Lightbox
   --------------------------------------------------------------------- */
.legend-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(18, 6, 6, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.legend-lightbox.is-open {
    display: flex;
    animation: lightboxFade 0.3s var(--ease) both;
}

@keyframes lightboxFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.legend-lightbox__img {
    max-width: min(92vw, 720px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(244, 196, 48, 0.18);
}

.legend-lightbox__close,
.legend-lightbox__nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(236, 213, 150, 0.35);
    background: rgba(40, 12, 12, 0.6);
    color: var(--gold-soft);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}

.legend-lightbox__close {
    top: clamp(1rem, 3vw, 1.8rem);
    right: clamp(1rem, 3vw, 1.8rem);
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
}

.legend-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
}

.legend-lightbox__nav--prev { left: clamp(0.5rem, 3vw, 2rem); }
.legend-lightbox__nav--next { right: clamp(0.5rem, 3vw, 2rem); }

.legend-lightbox__close:hover,
.legend-lightbox__nav:hover {
    background: var(--maroon);
    color: #fff;
}

.legend-lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
    .legends-gallery {
        grid-template-columns: 1fr;
        max-width: 420px;
        gap: 2rem;
    }

    .legend-lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}
