/* Cinematic gallery: scoped to .gx so nothing here leaks into the sitewide chrome or tokens. */
.gx { --gap: clamp(14px, 1.6vw, 24px); color: var(--white); }
.gx a { color: inherit; text-decoration: none; }
.gx-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.gx-label { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.gx-meta { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.gx :focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* page head */
.gx-head { padding: 140px 0 48px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.gx-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7.5vw, 112px); line-height: .95; margin: 18px 0 0; letter-spacing: -.02em; }
.gx-head h1 em { font-style: italic; color: var(--gold); }
.gx-head p { font-family: var(--display); font-weight: 300; font-size: 16px; color: var(--muted); max-width: 400px; line-height: 1.7; margin: 0; }

/* featured film */
.gx-feature { position: relative; display: grid; grid-template-columns: 1fr 300px; gap: 2px; background: var(--bg); }
.gx-feature__frame { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-3); }
.gx-feature__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gx-feature:hover .gx-feature__frame img { transform: scale(1.015); }
.gx-feature__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.25) 45%, transparent 70%), linear-gradient(0deg, rgba(10,10,10,.7), transparent 45%); pointer-events: none; }
.gx-feature__copy { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 52px); z-index: 2; max-width: 560px; }
.gx-num { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 9vw, 132px); line-height: .8; color: var(--white); display: flex; align-items: end; gap: 22px; }
.gx-num small { font-family: var(--sans); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: .5px solid var(--gold-line); }
.gx-feature h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 46px); margin: 22px 0 8px; line-height: 1.05; }
.gx-feature p { font-family: var(--display); font-style: italic; font-weight: 300; color: var(--muted); margin: 0 0 24px; font-size: 17px; }
.gx-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.gx-play { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; color: var(--white); font-family: var(--sans); font-size: 11px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; padding: 0; }
.gx-play i { width: 52px; height: 52px; border: 1px solid var(--gold-dim); border-radius: 50%; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.gx-play i svg { width: 14px; fill: var(--gold); margin-left: 3px; }
.gx-play:hover i, .gx-play:focus-visible i { background: rgba(227,188,75,.12); border-color: var(--gold); }
.gx-link { font-family: var(--sans); font-size: 11px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border-bottom: .5px solid var(--gold-line); padding-bottom: 4px; }

/* side rail of two next films, like the reference's stacked panels */
.gx-rail { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.gx-rail a { position: relative; overflow: hidden; background: var(--bg-3); display: block; }
.gx-rail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .8s; }
.gx-rail a:hover img, .gx-rail a:focus-visible img { filter: grayscale(0); transform: scale(1.03); }
.gx-rail span { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; font-family: var(--sans); font-size: 11px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6; }
.gx-rail a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.85), transparent 60%); }

/* filters */
.gx-filters { position: sticky; top: 86px; z-index: 40; background: rgba(10,10,10,.94); backdrop-filter: blur(14px); border-block: .5px solid var(--border); margin-top: 56px; }
.gx-filters .gx-wrap { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gx-filters .gx-count { margin-left: auto; white-space: nowrap; padding-left: 16px; }
.gx-filter { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); background: none; border: 0; padding: 18px 20px; cursor: pointer; position: relative; white-space: nowrap; transition: color .2s; }
.gx-filter::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.gx-filter:hover { color: var(--white); }
.gx-filter[aria-pressed="true"] { color: var(--gold); }
.gx-filter[aria-pressed="true"]::after { transform: scaleX(1); }

/* exhibition grid: 12 columns, spans cycle 7/5, 4/8, 6/6 */
.gx-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: calc(var(--gap) * 2.2) var(--gap); padding: 56px 0 120px; list-style: none; margin: 0; }
.gx-grid > li { grid-column: span var(--span, 6); }
.gx-tile { display: block; }
.gx-tile__frame { position: relative; overflow: hidden; background: var(--bg-3); aspect-ratio: var(--ratio, 16 / 9); }
.gx-tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease, filter .5s; filter: saturate(.9); }
.gx-tile:hover .gx-tile__frame img, .gx-tile:focus-visible .gx-tile__frame img { transform: scale(1.025); filter: saturate(1.05); }
.gx-tile__cap { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; padding-top: 16px; border-top: .5px solid var(--border); margin-top: 14px; }
.gx-tile__n { font-family: var(--display); font-weight: 300; font-size: 26px; color: var(--gold); line-height: 1; }
.gx-tile h3 { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 1.8vw, 28px); margin: 0 0 4px; line-height: 1.15; }
.gx-tile p { margin: 0; font-family: var(--display); font-style: italic; font-weight: 300; font-size: 14px; color: var(--muted); line-height: 1.5; }
.gx-tile .gx-meta { white-space: nowrap; }
.gx-state { grid-column: 1 / -1; text-align: center; padding: 6rem 0; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--faint); }
.gx-state button { margin-top: 16px; }

/* reveal */
.will-reveal { opacity: 0; clip-path: inset(0 0 14% 0); transform: translateY(18px); transition: opacity 300ms ease, clip-path 300ms ease, transform 300ms ease; }
.will-reveal.is-in { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }

/* player dialog */
.gx-dialog { padding: 0; border: 0; background: transparent; width: min(92vw, 1280px); max-height: 92vh; overflow: visible; }
.gx-dialog::backdrop { background: rgba(6,6,6,.94); }
.gx-dialog__bar { display: flex; justify-content: space-between; align-items: center; color: var(--white); padding: 0 0 12px; }
.gx-dialog__close { background: none; border: .5px solid var(--border); color: var(--white); font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; padding: 10px 16px; cursor: pointer; }
.gx-dialog__close:hover, .gx-dialog__close:focus-visible { border-color: var(--gold); color: var(--gold); }
.gx-screen { aspect-ratio: 16 / 9; background: #000; }
.gx-screen iframe { width: 100%; height: 100%; border: 0; display: block; }

/* film page */
.gx-film-head { padding: 130px 0 32px; }
.gx-crumbs { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }
.gx-crumbs a:hover { color: var(--gold); }
.gx-film-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 7vw, 104px); line-height: .95; margin: 22px 0 14px; letter-spacing: -.02em; }
.gx-film-head p { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(18px, 1.8vw, 24px); color: var(--muted); margin: 0; max-width: 760px; }
.gx-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--bg-3); border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.gx-poster img { width: 100%; height: 100%; object-fit: cover; }
.gx-poster::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,.25); transition: background .3s; }
.gx-poster:hover::after, .gx-poster:focus-visible::after { background: rgba(10,10,10,.1); }
.gx-poster .gx-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.gx-poster .gx-play i { width: 84px; height: 84px; background: rgba(10,10,10,.4); }
.gx-film-body { display: grid; grid-template-columns: 1fr 340px; gap: 72px; padding: 56px 0 96px; border-bottom: .5px solid var(--border); }
.gx-film-body h2 { font-family: var(--display); font-weight: 300; font-size: 30px; margin: 14px 0 16px; }
.gx-film-body p { font-family: var(--display); font-weight: 300; color: var(--muted); line-height: 1.8; font-size: 16px; }
.gx-specs { margin: 0; display: grid; gap: 0; border-top: .5px solid var(--border); }
.gx-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: .5px solid var(--border); }
.gx-specs dt { font-family: var(--sans); font-size: 10px; font-weight: 300; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.gx-specs dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: 17px; }
.gx-specs a { color: var(--gold); }
.gx-cta { padding: 80px 0; text-align: center; border-bottom: .5px solid var(--border); }
.gx-cta h2 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.4vw, 44px); margin: 14px 0 26px; }
.gx-btn { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; color: var(--bg); background: var(--gold); padding: 18px 34px; transition: background .25s; }
.gx-btn:hover, .gx-btn:focus-visible { background: var(--gold-light); }
.gx-related { padding: 72px 0 120px; }
.gx-related .gx-grid { padding: 28px 0 0; }

@media (max-width: 1024px) {
  .gx-feature { grid-template-columns: 1fr; }
  .gx-rail { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .gx-rail a { aspect-ratio: 16 / 9; }
  .gx-feature__frame { aspect-ratio: 16 / 9; }
  .gx-grid > li { grid-column: span 6; }
  .gx-film-body { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .gx-head { grid-template-columns: 1fr; padding-top: 120px; }
  .gx-feature__frame { aspect-ratio: 4 / 5; }
  .gx-feature__frame::after { background: linear-gradient(0deg, rgba(10,10,10,.92) 10%, rgba(10,10,10,.2) 70%); }
  .gx-grid { gap: 40px; }
  .gx-grid > li { grid-column: 1 / -1; }
  .gx-tile__frame { aspect-ratio: 16 / 9 !important; }
  .gx-filters { top: 64px; }
  .gx-filters .gx-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gx *, .gx *::before, .gx *::after { transition: none !important; }
}
