/* ==================================================================
   Events & Gallery — featured glass carousel + full-screen event viewer
   Photos are always shown uncropped (object-fit: contain over a blurred
   copy of the same photo), so baked-in photographer credits stay visible.
   ================================================================== */

/* --- Glass surface -------------------------------------------------- */
.gx-glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #f0ebe3;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gx-glass { background: rgba(13, 36, 24, 0.86); }
}

/* --- Homepage section ------------------------------------------------ */
.gallery {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0d2418 0%, #09170f 100%);
  color: #f0ebe3;
  isolation: isolate;
}
.gallery::before,
.gallery::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.gallery::before { width: 520px; height: 520px; top: -160px; right: -120px; background: rgba(181, 113, 31, 0.28); }
.gallery::after  { width: 460px; height: 460px; bottom: -180px; left: -140px; background: rgba(44, 140, 110, 0.22); }
.gallery .section-title { color: #f0ebe3; margin-bottom: 1rem; }
.gallery-intro {
  max-width: 620px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(240, 235, 227, 0.74);
}
.gx-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.gx-open {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  border: 0;
  font: inherit;
}
.gx-open-count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.gx-cta-note { font-size: 0.85rem; color: rgba(240, 235, 227, 0.55); }

/* --- Carousel -------------------------------------------------------- */
.gx-car { display: grid; gap: 0.9rem; min-width: 0; }
.gx-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(74vh, 760px);
  border-radius: 16px;
  overflow: hidden;
  background: #07140d;
  touch-action: pan-y;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  outline: none;
}
.gx-stage:focus-visible { box-shadow: 0 0 0 3px #c8834a, 0 30px 80px rgba(0, 0, 0, 0.45); }
.gx-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.gx-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.gx-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: blur(30px) saturate(1.25) brightness(0.55);
  transform: scale(1.2);
}
.gx-slide.is-active .gx-bg { animation: gx-drift 14s ease-out forwards; }
@keyframes gx-drift { from { transform: scale(1.2); } to { transform: scale(1.3); } }
.gx-fg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem 0;
}

.gx-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: calc(100% - 7rem);
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
}
.gx-chip-cat {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e0a24f;
}
.gx-chip-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.25;
}

.gx-nav-btn,
.gx-play,
.gx-close,
.gx-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.gx-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  padding: 0;
  border-radius: 50%;
}
.gx-nav-btn.is-prev { left: 1rem; }
.gx-nav-btn.is-next { right: 1rem; }
.gx-nav-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.07); }
.gx-nav-btn svg, .gx-play svg, .gx-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gx-play svg { fill: currentColor; stroke: none; }
.gx-car button:focus-visible,
.gx-modal button:focus-visible { outline: 2px solid #e0a24f; outline-offset: 2px; }

.gx-bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem 1.05rem;
  border-radius: 14px;
  overflow: hidden;
}
.gx-meta { display: flex; align-items: baseline; gap: 1rem; min-width: 0; }
.gx-count {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  color: #e0a24f;
}
.gx-caption {
  font-size: 0.96rem;
  line-height: 1.45;
  color: rgba(240, 235, 227, 0.94);
}
.gx-play {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  color: #f0ebe3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.gx-play:hover { background: rgba(255, 255, 255, 0.22); }
.gx-play .i-play { display: none; }
.gx-car.is-paused .gx-play .i-play { display: block; }
.gx-car.is-paused .gx-play .i-pause { display: none; }
.gx-car.no-auto .gx-play { display: none; }
.gx-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}
.gx-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b5711f, #e0a24f);
}
.gx-progress i.run { animation: gx-fill var(--gx-int, 5.5s) linear forwards; }
.gx-car.is-held .gx-progress i.run { animation-play-state: paused; }
.gx-car.no-auto .gx-progress { display: none; }
@keyframes gx-fill { to { width: 100%; } }

.gx-thumbs {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.gx-thumb {
  flex: 0 0 88px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  background: #07140d;
  opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.25s;
}
.gx-thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.gx-thumb.is-active { opacity: 1; border-color: #e0a24f; }
.gx-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- Full-screen viewer ---------------------------------------------- */
.gx-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
}
.gx-modal[hidden] { display: none; }
.gx-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(181, 113, 31, 0.28), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(44, 140, 110, 0.25), transparent 70%),
    rgba(5, 14, 9, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: gx-fade 0.35s ease both;
}
.gx-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  max-height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(16, 38, 27, 0.7);
  animation: gx-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.gx-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gx-head-text { flex: 1; min-width: 0; }
.gx-head .gx-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #e0a24f;
}
.gx-head h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #f0ebe3;
  margin: 0.15rem 0 0;
}
.gx-back,
.gx-close {
  flex: none;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f0ebe3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.gx-close { width: 40px; padding: 0; }
.gx-back[hidden] { display: none; }
.gx-back:hover, .gx-close:hover { background: rgba(255, 255, 255, 0.22); }
.gx-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gx-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.4rem;
}
.gx-view { animation: gx-fade 0.4s ease both; }

.gx-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.gx-filter {
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: rgba(240, 235, 227, 0.85);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s, color 0.25s;
}
.gx-filter:hover { background: rgba(255, 255, 255, 0.16); }
.gx-filter.is-active { background: #b5711f; border-color: #b5711f; color: #fff; }

.gx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.gx-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.gx-card:hover { transform: translateY(-5px); border-color: rgba(224, 162, 79, 0.6); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.gx-media { position: relative; aspect-ratio: 4 / 3; background: #07140d; overflow: hidden; }
.gx-media .gx-bg { transform: scale(1.2); }
.gx-media .gx-fg { padding: 0; }
.gx-card:hover .gx-fg { transform: scale(1.02); }
.gx-fg { transition: transform 0.5s ease; }
.gx-card-body { padding: 0.95rem 1.1rem 1.1rem; display: grid; gap: 0.3rem; }
.gx-card-cat { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #e0a24f; }
.gx-card-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.05rem; line-height: 1.3; color: #f0ebe3; }
.gx-card-tag { font-size: 0.84rem; line-height: 1.45; color: rgba(240, 235, 227, 0.7); }
.gx-card-meta { font-size: 0.76rem; letter-spacing: 0.04em; color: rgba(240, 235, 227, 0.5); }

.gx-event-info { margin-bottom: 1.1rem; max-width: 760px; }
.gx-event-info .gx-card-cat { display: block; margin-bottom: 0.3rem; }
.gx-event-info p { font-size: 0.98rem; line-height: 1.65; color: rgba(240, 235, 227, 0.8); }
.gx-event-credit { margin-top: 0.4rem; font-size: 0.78rem !important; letter-spacing: 0.04em; color: rgba(240, 235, 227, 0.5) !important; }
.gx-modal .gx-stage { max-height: min(62vh, 640px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }

/* html only: overflow on <body> would turn it into a scroll container and break sticky stacking */
html.gx-lock { overflow: hidden; }

@keyframes gx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gx-rise { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 640px) {
  .gx-stage { aspect-ratio: 1 / 1; }
  .gx-nav-btn { width: 40px; height: 40px; margin-top: -20px; }
  .gx-nav-btn.is-prev { left: 0.6rem; }
  .gx-nav-btn.is-next { right: 0.6rem; }
  .gx-chip { top: 0.7rem; left: 0.7rem; padding: 0.35rem 0.75rem; }
  .gx-chip-title { display: none; }
  .gx-meta { flex-direction: column; gap: 0.2rem; }
  .gx-head { padding: 0.85rem 1rem; }
  .gx-body { padding: 1rem; }
  .gx-panel { border-radius: 16px; }
  .gx-thumb { flex-basis: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-slide, .gx-slide.is-active { transition: none; }
  .gx-slide.is-active .gx-bg, .gx-scrim, .gx-panel, .gx-view { animation: none; }
  .gx-card, .gx-card:hover, .gx-thumb, .gx-nav-btn, .gx-fg { transition: none; transform: none; }
}

.gx-chip[hidden] { display: none; }

/* ==================================================================
   Tabs + Press & Media view
   ================================================================== */
.gx-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1.4rem 0;
}
.gx-tabs[hidden] { display: none; }
.gx-tab {
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  color: rgba(240, 235, 227, 0.75);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.gx-tab:hover { color: #f0ebe3; background: rgba(255, 255, 255, 0.08); }
.gx-tab.is-active {
  color: #fff;
  background: rgba(181, 113, 31, 0.85);
  border-color: rgba(224, 162, 79, 0.6);
}

.gx-press { display: grid; gap: 1.75rem; }
.gx-press-hero {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gx-press-summary {
  max-width: 760px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: #f0ebe3;
}
.gx-press-kit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gx-press-kit span { font-size: 0.85rem; color: rgba(240, 235, 227, 0.6); }
.gx-kit-btn { cursor: pointer; border: 0; font: inherit; }

.gx-block-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  margin-bottom: 0.9rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #e0a24f;
}
.gx-block-title small {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(240, 235, 227, 0.5);
}

.gx-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gx-book {
  position: relative;
  padding: 1.15rem 1.2rem 1.15rem 1.45rem;
  border-radius: 14px;
  overflow: hidden;
}
.gx-book::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #e0a24f, #8b4e1e);
}
.gx-book h5 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.1rem; line-height: 1.3; color: #f0ebe3; }
.gx-book-sub { margin-top: 0.4rem; font-size: 0.88rem; line-height: 1.5; font-style: italic; color: rgba(240, 235, 227, 0.72); }
.gx-book-by { margin-top: 0.7rem; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #e0a24f; }

.gx-empty {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border-style: dashed;
}
.gx-empty strong { font-size: 0.98rem; color: #f0ebe3; }
.gx-empty span { font-size: 0.88rem; line-height: 1.55; color: rgba(240, 235, 227, 0.65); }

.gx-cov-list, .gx-app-list { display: grid; gap: 0.6rem; }
.gx-cov, .gx-app {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: #f0ebe3;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}
.gx-cov:hover, .gx-app:hover { transform: translateX(4px); border-color: rgba(224, 162, 79, 0.6); color: #f0ebe3; }
.gx-cov-type {
  flex: none;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(181, 113, 31, 0.3);
  color: #e0a24f;
}
.gx-cov-main, .gx-app-main { flex: 1; display: grid; gap: 0.1rem; min-width: 0; }
.gx-cov-title, .gx-app-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 0.98rem; line-height: 1.35; }
.gx-cov-meta, .gx-app-meta { font-size: 0.78rem; letter-spacing: 0.03em; color: rgba(240, 235, 227, 0.55); }
.gx-cov-arrow { flex: none; color: #e0a24f; }

.gx-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.75rem; align-items: start; }
.gx-side { display: grid; gap: 1.75rem; }
.gx-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gx-topic {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(240, 235, 227, 0.9);
}
.gx-orgs { display: grid; gap: 0.7rem; }
.gx-orgs li { display: grid; gap: 0.05rem; padding-left: 0.9rem; border-left: 2px solid #b5711f; }
.gx-orgs strong { font-size: 0.95rem; color: #f0ebe3; }
.gx-orgs span { font-size: 0.82rem; color: rgba(240, 235, 227, 0.62); }

.gx-ghost {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  color: #f0ebe3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.25s, border-color 0.25s;
}
.gx-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(224, 162, 79, 0.7); color: #fff; }
.press-kit-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

@media (max-width: 760px) {
  .gx-cols { grid-template-columns: 1fr; }
  .gx-tabs { padding: 0.65rem 1rem 0; }
}
@media (max-width: 640px) {
  .gx-cov { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .gx-cov, .gx-cov:hover, .gx-app, .gx-app:hover { transition: none; transform: none; }
}
