/* ===================================================================
   gallery-premium.css — the finishing layer on the gallery page.

   The grid, filters and viewer come from the page's own styles; this
   file widens the page to the header's measure, lifts the header band,
   restyles the filter chips, frames the photographs and settles them in
   as they are scrolled to.
   =================================================================== */

/* ---------- page measure ---------- */
.agy-head .container,
.agy-filterbar .container,
.agy-wrap .container {
    max-width: 1560px;
}

/* ---------- header band ---------- */
.agy-head {
    position: relative;
    padding-top: clamp(34px, 4.5vw, 64px);
    padding-bottom: clamp(26px, 3.4vw, 44px);
    background: linear-gradient(180deg, #fff 0%, var(--adv-blush) 100%);
    overflow: hidden;
}

.agy-head::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 144, 96, .22), transparent 70%);
    pointer-events: none;
}

.agy-head .container {
    position: relative;
}

.agy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px;
    border-radius: var(--adv-radius-pill);
    background: #fff;
    border: 1px solid var(--adv-line);
    box-shadow: var(--adv-lift-1);
    color: var(--adv-crimson-700);
    font-family: var(--adv-font-head);
    font-weight: 700;
    font-size: var(--adv-eyebrow-size);
    letter-spacing: var(--adv-eyebrow-track);
    text-transform: uppercase;
}

.agy-head h1 {
    letter-spacing: -.02em;
}

/* ---------- filter chips ---------- */
.agy-filterbar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--adv-line);
    box-shadow: 0 10px 24px -22px rgba(94, 16, 25, .5);
}

.agy-chip {
    border-radius: var(--adv-radius-pill);
    border: 1.5px solid var(--adv-line);
    background: #fff;
    font-family: var(--adv-font-head);
    font-weight: 700;
    transition: background var(--adv-dur), color var(--adv-dur), border-color var(--adv-dur), transform var(--adv-dur);
}

.agy-chip:hover {
    transform: translateY(-1px);
    border-color: var(--adv-crimson-700);
    color: var(--adv-crimson-700);
}

.agy-chip.is-active {
    background: var(--adv-grad-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(120, 12, 12, .6);
}

.agy-chip-n {
    background: rgba(142, 27, 46, .1);
    color: inherit;
}

.agy-chip.is-active .agy-chip-n {
    background: rgba(255, 255, 255, .22);
}

/* ---------- photographs ---------- */
.agy-wrap {
    padding-top: clamp(24px, 3vw, 44px);
}

.agy-card {
    border-radius: var(--adv-radius);
    border: 1px solid rgba(94, 16, 25, .1);
    box-shadow: var(--adv-lift-1);
    overflow: hidden;
    transition: transform var(--adv-dur) var(--adv-ease), box-shadow var(--adv-dur) var(--adv-ease);
}

.agy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--adv-lift-2);
}

.agy-open {
    position: relative;
    display: block;
}

.agy-open::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
    pointer-events: none;
    transition: box-shadow var(--adv-dur);
}

.agy-card:hover .agy-open::after {
    box-shadow: inset 0 0 0 2px rgba(142, 27, 46, .55);
}

.agy-cap-eyebrow {
    padding: 5px 11px;
    border-radius: var(--adv-radius-pill);
    background: rgba(142, 27, 46, .9);
    color: #fff;
    font-family: var(--adv-font-head);
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.agy-zoom {
    background: rgba(255, 255, 255, .94);
    color: var(--adv-crimson-700);
}

/* ---------- viewer ---------- */
.agy-lb {
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (max-width: 720px) {
    .agy-filterbar {
        position: static;
    }
}

/* the site header is sticky, so the page's own heading needs clearance
   or it starts underneath it */
.agy-head {
    /* the site header is fixed and 127px tall on desktop: the page's own
       heading has to start below it */
    padding-top: clamp(118px, 11vw, 162px);
}

/* the header is shorter on phones, but not by as much as a vw-based clamp
   assumes, so the floor is set from its measured height */
@media (max-width: 720px) {
    .agy-head {
        padding-top: 120px;
    }
}
