/* assets/css/styles.css: Inflation Entertainment Complex */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --pure-white: #ffffff;
  --mid-gray: #888;
  --border: rgba(255,255,255,0.12);
  --accent-basement: #c41e3a;
  --accent-cafe: #c8961a;
  --accent-main: #1a6bff;
  --accent-topyard: #5db800;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- NAV ---- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 70px;
  background: var(--black);
  border-bottom: 0.5px solid var(--border);
}
#main-nav .nav-logo img {
  height: 32px;
  opacity: 0.9;
  filter: brightness(10);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-links a,
.nav-dropdown-toggle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,240,0.75);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-dropdown-toggle:hover { color: var(--white); }
.nav-links .active > a,
.nav-links .active > button { color: var(--white); }
.nav-chevron { font-size: 12px; margin-left: 3px; display: inline-block; transition: transform 0.2s; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.98);
  border: 0.5px solid var(--border);
  min-width: 180px;
  list-style: none;
  padding: 0.5rem 0;
  z-index: 210;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(245,245,240,0.65);
  white-space: nowrap;
}
.nav-dropdown-menu li a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-cta {
  background: var(--white) !important;
  color: var(--black) !important;
  padding: 8px 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #ccc !important; color: var(--black) !important; }

/* tablet: hide gallery from inline nav */
@media (max-width: 1279px) {
  .nav-hide-tablet { display: none !important; }
  #main-nav { padding: 0 2rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a, .nav-dropdown-toggle { font-size: 12px; }
}

/* hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile full-screen menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10,10,10,0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 2rem;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: 0.06em;
  color: rgba(245,245,240,0.7);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--white); }
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-cta {
  margin-top: 2rem !important;
  background: var(--white);
  color: var(--black) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  padding: 16px 48px !important;
  border-bottom: none !important;
  width: auto !important;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(100%) brightness(0.35);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.05) 50%, rgba(10,10,10,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-content img {
  width: 320px;
  max-width: 70vw;
  margin-bottom: 1.8rem;
  filter: brightness(10);
  opacity: 0.95;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: 0.35em;
  color: rgba(245,245,240,0.55);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #ccc; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(245,245,240,0.4);
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  z-index: 2;
}
.hero-scroll span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 0.6rem;
}

/* ---- ABOUT STRIP ---- */
.about-strip {
  background: var(--pure-white);
  color: var(--black);
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
}
.about-stat { min-width: 140px; text-align: center; }
.about-stat .stat-number {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1;
  color: var(--black);
}
.about-stat .stat-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #666;
  margin-top: 4px;
}
.about-divider { width: 1px; height: 80px; background: #ddd; }
.about-copy { flex: 1; min-width: 280px; }
.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--black);
}
.about-copy p { font-size: 16px; font-weight: 300; line-height: 1.75; color: #444; max-width: 520px; }

/* ---- LEVELS ---- */
.levels-intro { padding: 6rem 3rem 3rem; text-align: center; }
.levels-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}
.levels-intro p {
  margin: 1.5rem auto 0;
  max-width: 480px;
  color: var(--mid-gray);
  font-weight: 300;
  font-size: 16px;
}
.level-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.level-block.reverse { direction: rtl; }
.level-block.reverse > * { direction: ltr; }
.level-img { position: relative; overflow: hidden; background: #111; }
.level-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.5s ease, transform 0.5s ease;
  display: block;
}
.level-block:hover .level-img img { filter: grayscale(60%) brightness(0.85); transform: scale(1.02); }
.level-accent-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; }
.level-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 5rem;
  background: var(--black);
  border-bottom: 0.5px solid var(--border);
  position: relative;
}
.level-number {
  font-family: var(--font-display);
  font-size: 100px;
  line-height: 1;
  opacity: 0.06;
  position: absolute;
  right: 4rem; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.level-content-inner { position: relative; }
.level-content h3 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.level-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 1.4rem;
  color: var(--black);
}
.level-content p {
  font-size: 15px; font-weight: 300; line-height: 1.75;
  color: rgba(245,245,240,0.6);
  max-width: 380px; margin-bottom: 1.5rem;
}
.level-capacity {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid-gray);
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
}
.level-capacity strong { color: var(--white); font-weight: 500; }

/* ---- WHAT'S ON ---- */
.whats-on { padding: 7rem 3rem; background: #0e0e0e; }
.whats-on-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap; gap: 1rem;
}
.whats-on-header h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--white);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}
.event-card {
  background: #111; padding: 2.2rem 2rem;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  position: relative; overflow: hidden;
}
.event-card:hover { background: #161616; }
.event-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
}
.event-date { font-family: var(--font-display); font-size: 42px; line-height: 1; color: var(--white); margin-bottom: 0.3rem; }
/* One rule, three usages: homepage teaser card, what's-on listing card, and the
   datebox on the event detail page. There is no separate detail-page override. */
.event-month { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 1.2rem; }
.event-title { font-size: 18px; font-weight: 500; color: var(--white); margin-bottom: 0.5rem; line-height: 1.3; }
.event-venue { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); }
.event-tickets {
  display: inline-block; margin-top: 1.4rem;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(245,245,240,0.3);
}
.event-tickets:hover { border-bottom-color: var(--white); }

/* ---- EVENT CARD LINK / THUMBNAIL ---- */
.event-card-link { display: block; }
.event-card-link, .event-card-link * { text-decoration: none; color: inherit; }
.events-grid a, .events-grid a:visited, .events-grid a *, .events-grid a:visited * { text-decoration: none; color: inherit; }
.event-card-thumb {
  position: relative;
  margin: -2.2rem -2rem 1.2rem;
  background: #111;
}
.event-card-thumb img {
  width: 100%; height: auto; display: block;
  filter: grayscale(100%) brightness(0.75);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.event-card:hover .event-card-thumb img { filter: grayscale(60%) brightness(0.85); transform: scale(1.02); }

/* Full-colour, uncropped preview thumbnails: override any inherited grayscale/crop rules */
.events-grid .event-card-thumb {
  overflow: visible;
  height: auto;
  max-height: none;
}
.events-grid .event-card-thumb img {
  width: 100%;
  height: auto;
  max-height: none;
  filter: none;
}
.events-grid .event-card:hover .event-card-thumb img { filter: none; }

/* ---- EVENT DETAIL ---- */
.event-hero {
  height: 320px;
  margin-top: 70px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #111;
  filter: grayscale(100%) brightness(0.3);
}
.event-detail-layout {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: start;
  gap: 3rem;
  max-width: 1100px;
  margin: -140px auto 0;
  padding: 0 3rem;
  text-align: left;
}
.event-detail-layout.no-hero {
  grid-template-columns: 1fr;
  margin: 70px auto 0;
  padding: 4rem 3rem 0;
}
.event-detail-image-col img.event-detail-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  box-shadow: 0 25px 50px rgba(0,0,0,0.55);
}
.event-detail-info-col { padding-bottom: 1.5rem; }
.event-detail-datebox { margin-bottom: 1.5rem; }
.event-detail-date { font-family: var(--font-display); font-size: clamp(64px, 10vw, 120px); line-height: 1; color: var(--white); }
.event-detail-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em; line-height: 1.05;
  color: var(--white);
  margin: 0.5rem 0 1.2rem;
}
.event-detail-time { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); margin: 1rem 0; }
.event-detail-tickets { display: inline-block; margin-top: 1rem; }
.event-detail-desc-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 3rem 6rem; }
.event-detail-desc { font-size: 16px; font-weight: 300; line-height: 1.8; color: rgba(245,245,240,0.7); white-space: normal; }
@media (max-width: 768px) {
  .event-hero { height: 220px; }
  .event-detail-layout {
    grid-template-columns: 1fr;
    margin-top: -80px;
    padding: 0 1.5rem;
    gap: 1.5rem;
  }
  .event-detail-layout.no-hero { padding: 3rem 1.5rem 0; }
  .event-detail-image-col img.event-detail-photo { max-width: 100%; }
  .event-detail-desc-wrap { padding: 2rem 1.5rem 4rem; }
}

/* ---- GALLERY ---- */
.gallery-section { padding: 7rem 3rem; }
.gallery-section h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 3rem;
}
.masonry-grid { columns: 4; column-gap: 4px; }
.masonry-item { break-inside: avoid; margin-bottom: 4px; overflow: hidden; cursor: pointer; position: relative; }
/* Full colour at every state — no greyscale filter. */
.masonry-item img {
  width: 100%; display: block;
  transition: transform 0.4s ease;
}
.masonry-item:hover img { transform: scale(1.03); }
.masonry-link { display: block; }
.masonry-item .overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0);
  transition: background 0.3s;
  display: flex; align-items: flex-end; padding: 1.2rem;
  /* Keeps the title clear of the like/share pair in the bottom-right corner. */
  padding-right: 104px;
}
.masonry-item:hover .overlay { background: rgba(10,10,10,0.3); }
.overlay-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); opacity: 0; transition: opacity 0.3s;
  /* Reads over the photo, so it fades in on hover rather than sitting there. */
}
.masonry-item:hover .overlay-label { opacity: 0.8; }
/* "Photos from this event" block on the event detail page */
.event-photos-heading {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid-gray);
  margin: 3rem 0 1.5rem;
}

.gallery-more { text-align: center; margin-top: 3rem; }
.gallery-empty { color: var(--mid-gray); font-size: 14px; padding: 2rem 0; }

/* ---- GALLERY PAGINATION ----
   Outline treatment matching .btn-outline, sized down for a control strip. */
.gallery-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.gallery-pagination .gp-btn,
.gallery-pagination .gp-num {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(245,245,240,0.3);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.gallery-pagination .gp-num { padding: 8px 12px; }
.gallery-pagination .gp-btn:hover,
.gallery-pagination .gp-num:hover { border-color: var(--white); }

/* Current page reads as filled, matching the active filter pills. */
.gallery-pagination .gp-num.is-current {
  background: var(--white); color: var(--black);
  border-color: var(--white);
}
.gallery-pagination .gp-btn.is-disabled {
  opacity: 0.3; cursor: default;
}
.gallery-pagination .gp-btn.is-disabled:hover { border-color: rgba(245,245,240,0.3); }

.gallery-pagination .gp-pages { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.gallery-pagination .gp-gap { color: var(--mid-gray); padding: 0 2px; }

.gallery-pagination-info {
  text-align: center;
  margin-top: 1rem;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mid-gray);
}

/* Numbers would wrap to several rows on a phone; prev/next and the count
   carry the navigation there. */
@media (max-width: 600px) {
  .gallery-pagination .gp-pages { display: none; }
}

/* ---- GALLERY LIKE / SHARE ----
   The tile's <a class="glightbox"> wraps only the image. These controls are its
   siblings, so a click on one never opens the lightbox. z-index lifts them above
   .overlay, which is absolutely positioned across the whole item. */
.gallery-tile-actions {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
}
.gallery-like-btn,
.gallery-share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: none; border-radius: 2px;
  background: rgba(10,10,10,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  /* Permanently visible — a hover-only control is unreachable on touch.
     Hover lifts them to full. */
  opacity: 0.6;
  transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
}

/* Secondary action: the photo's own page. Top-right so it never competes with
   the like/share pair, and quieter than them since the lightbox is the
   primary way in. */
.gallery-detail-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 2px;
  background: rgba(10,10,10,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.3s ease, background 0.2s ease;
}
.gallery-detail-btn svg {
  width: 15px; height: 15px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.gallery-detail-btn:hover { opacity: 1; background: rgba(10,10,10,0.85); }
.gallery-detail-btn:focus-visible { opacity: 1; outline: 1px solid var(--white); outline-offset: 2px; }

/* Tooltip, rendered from data-tooltip so there is no native title popup
   fighting it. */
.gallery-detail-btn::after {
  content: attr(data-tooltip);
  position: absolute; top: 50%; right: calc(100% + 8px);
  transform: translateY(-50%);
  padding: 4px 8px; border-radius: 2px;
  background: var(--white); color: var(--black);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.gallery-detail-btn:hover::after,
.gallery-detail-btn:focus-visible::after { opacity: 1; }

.gallery-like-btn svg,
.gallery-share-btn svg { width: 14px; height: 14px; display: block; }
.gallery-like-btn svg  { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s ease, stroke 0.2s ease; }
.gallery-share-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.masonry-item:hover .gallery-like-btn,
.masonry-item:hover .gallery-share-btn { opacity: 1; }

/* Standalone buttons (photo detail page) are not inside a masonry tile, so
   they are statically placed and always at full strength. */
.gallery-like-btn.is-static,
.gallery-share-btn.is-static {
  position: static; opacity: 1;
  padding: 10px 16px; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gallery-like-btn.is-static svg,
.gallery-share-btn.is-static svg { width: 16px; height: 16px; }

.gallery-like-btn:hover,
.gallery-share-btn:hover { background: rgba(10,10,10,0.8); }

/* Keyboard users get the same affordance as the mouse hover. */
.gallery-like-btn:focus-visible,
.gallery-share-btn:focus-visible { opacity: 1; outline: 1px solid var(--white); outline-offset: 2px; }

/* Liked: filled red heart, and the state persists (not just :hover). */
.gallery-like-btn.liked { color: #ff3b5c; }
.gallery-like-btn.liked svg { fill: #ff3b5c; stroke: #ff3b5c; }
.gallery-like-btn.liked:active { transform: scale(0.94); }
.gallery-like-btn[disabled] { cursor: default; }

.gallery-like-count { line-height: 1; font-variant-numeric: tabular-nums; }

/* Share confirmation, shown when navigator.share is unavailable and the URL
   was copied to the clipboard instead. */
.gallery-share-toast {
  position: absolute; bottom: 46px; left: 10px; z-index: 3;
  padding: 5px 9px; border-radius: 2px;
  background: var(--white); color: var(--black);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.gallery-share-toast.show { opacity: 1; transform: translateY(0); }

/* Touch devices never fire :hover, so lift the tile controls to full strength
   rather than leaving them at the resting 0.6. */
@media (hover: none) {
  .gallery-like-btn,
  .gallery-share-btn,
  .gallery-detail-btn { opacity: 0.9; }
  /* No hover to fade it in, so the title stays put. */
  .overlay-label { opacity: 0.8; }
}

/* ---- GLIGHTBOX CAPTION ----
   A compact bar: image title on the left, comment beside it, "View details"
   on the right. Selectors are prefixed with .glightbox-container and carry
   !important because the CDN stylesheet sets several of these on the same
   elements; the link order in header.php (vendor first, ours second) does the
   rest of the work. */
.glightbox-container .gslide-description {
    background: rgba(10,10,10,0.92) !important;
    color: var(--white) !important;
    max-height: 80px !important;
    min-height: 0 !important;
    padding: 0.6rem 1.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.glightbox-container .gdesc-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    width: 100% !important;
    max-height: 80px !important;
    overflow: hidden !important;
}

.glightbox-container .gslide-title {
    font-family: var(--font-display) !important;
    font-size: 18px !important;
    letter-spacing: 0.06em !important;
    color: var(--white) !important;
    margin: 0 !important;
    flex: 1 !important;
}

.glightbox-container .gslide-desc {
    font-size: 12px !important;
    color: rgba(245,245,240,0.55) !important;
    margin: 2px 0 0 0 !important;
}

/* Injected by main.js on each slide. */
.gallery-lightbox-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    flex-shrink: 0 !important;
}

.gallery-lightbox-actions a {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--white) !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(245,245,240,0.4) !important;
    white-space: nowrap !important;
}

.gallery-lightbox-actions a:hover {
    border-bottom-color: var(--white) !important;
}

@media (max-width: 768px) {
    .glightbox-container .gslide-description {
        max-height: 100px !important;
    }
    .glightbox-container .gslide-title {
        font-size: 14px !important;
    }
}

/* ---- EVENT LIKES ----
   The whole event card is wrapped in an <a>, so this button cannot be a
   sibling of the link. The click is cancelled in JS instead, which suppresses
   the anchor's navigation because the default action runs after bubbling. */
.event-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; margin-top: 1rem;
}
.event-card-footer .event-tickets { margin-top: 0; }

.event-like-btn,
.event-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 5px 9px;
  border: 1px solid rgba(245,245,240,0.2); border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, border-color 0.2s ease, transform 0.2s ease;
}
.event-like-btn svg,
.event-share-btn svg {
  width: 13px; height: 13px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.event-card:hover .event-like-btn,
.event-card:hover .event-share-btn,
.event-like-btn:hover,
.event-share-btn:hover { opacity: 1; border-color: rgba(245,245,240,0.5); }
.event-like-btn:focus-visible,
.event-share-btn:focus-visible { opacity: 1; outline: 1px solid var(--white); outline-offset: 2px; }

.event-like-btn.liked { color: #ff3b5c; border-color: rgba(255,59,92,0.5); opacity: 1; }
.event-like-btn.liked svg { fill: #ff3b5c; stroke: #ff3b5c; }
.event-like-btn.liked:active { transform: scale(0.94); }
.event-like-count { line-height: 1; font-variant-numeric: tabular-nums; }

/* Detail page: sits beside the Tickets button, so it matches its weight. */
.event-detail-actions {
  position: relative; /* anchors the "Link copied" toast */
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 1.5rem;
}
.event-detail-actions .event-detail-tickets { margin-top: 0; }
.event-like-btn.is-static,
.event-share-btn.is-static {
  opacity: 1;
  padding: 12px 18px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  border-color: rgba(245,245,240,0.35);
}
.event-like-btn.is-static svg,
.event-share-btn.is-static svg { width: 16px; height: 16px; }

/* ---- PHOTO DETAIL PAGE ----
   Contained two-column layout: the photo and its details sit together in one
   viewport, with the "more from" grids as separate sections below. */
.photo-detail {
  max-width: 1400px;
  /* margin-top clears the fixed 70px nav; auto sides centre the container. */
  margin-top: 70px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem var(--page-padding, 3rem);
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 2.5rem;
  align-items: start;
  min-height: calc(100vh - 70px);
}
.photo-detail-media {
  /* Fixed height (viewport minus nav minus the 2rem padding top and bottom)
     with overflow hidden, so the image can never push the layout taller than
     one screen. Centring keeps a portrait photo in the middle of the column. */
  height: calc(100vh - 70px - 4rem);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  min-width: 0;
}
.photo-detail-image {
  /* auto width and height with max constraints: the image scales down to fit
     whichever axis binds first, never crops, never overflows. */
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.photo-detail-body {
  min-width: 0;
  height: calc(100vh - 70px - 4rem);
  /* Scrolls on its own if the comment runs long, so the column layout holds. */
  overflow-y: auto;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.photo-detail-back {
  margin-top: 2rem;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
}
.photo-detail-back a { color: var(--mid-gray); }
.photo-detail-back a:hover { color: var(--white); }
.photo-detail-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}
.photo-detail-comment {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: rgba(245,245,240,0.7);
  margin-top: 1.5rem;
}
.photo-detail-event {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 1.5rem;
}
.photo-detail-event a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.photo-detail-actions {
  display: flex; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.photo-more-heading {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mid-gray);
  margin: 3rem 0 1.5rem;
}

/* Below 768px the two columns stack: full-width image, details under it, and
   the "more from" grids below that. The viewport-height caps are dropped —
   on a phone they fight the natural page scroll. */
@media (max-width: 768px) {
  .photo-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-height: 0;
    padding: 1.5rem 1.2rem;
  }
  .photo-detail-media {
    height: auto;
    overflow: visible;
  }
  .photo-detail-image {
    width: 100%; height: auto;
    max-height: none;
  }
  .photo-detail-body {
    height: auto;
    overflow-y: visible;
    padding-left: 0;
    display: block;
  }
  .photo-more-heading { margin: 2rem 0 1rem; }
}

/* ---- TOPYARD ---- */
.topyard-section {
  background: #080808; padding: 8rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
  align-items: center;
  border-top: 0.5px solid var(--border);
}
.topyard-img-wrap { position: relative; overflow: hidden; }
.topyard-img-wrap img.venue-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.7);
  display: block;
}
.topyard-badge { position: absolute; bottom: 1.5rem; right: 1.5rem; }
.topyard-badge img { height: 80px; filter: brightness(10); opacity: 0.9; }
.topyard-content .section-label { color: var(--accent-topyard); }
.topyard-content h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.04em; line-height: 1.05;
  color: var(--white); margin-bottom: 1.4rem;
}
.topyard-content p {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  color: rgba(245,245,240,0.55);
  margin-bottom: 2rem; max-width: 420px;
}
.topyard-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 0;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}
.td-item .td-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 4px; }
.td-item .td-val { font-size: 14px; color: var(--white); font-weight: 300; }
.btn-topyard {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-topyard); color: var(--black);
  padding: 14px 32px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-topyard:hover { background: #74d900; }
.btn-topyard svg { width: 14px; height: 14px; }

/* ---- FUNCTIONS CTA ---- */
.functions-cta {
  background: var(--pure-white); color: var(--black);
  padding: 7rem 3rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.functions-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.04em; line-height: 1.05;
  color: var(--black);
}
.functions-cta .section-label { color: #999; }
.functions-right p { font-size: 15px; font-weight: 300; line-height: 1.8; color: #555; margin-bottom: 2rem; }
.capacity-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cpill { background: #f0f0f0; color: #333; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 14px; }
.btn-dark {
  background: var(--black); color: var(--white);
  padding: 14px 36px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  transition: background 0.2s;
}
.btn-dark:hover { background: #222; }

/* ---- CONTACT STRIP ---- */
.contact-strip {
  background: var(--black);
  border-top: 0.5px solid var(--border);
  padding: 4rem 3rem;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.contact-strip .contact-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 6px; }
.contact-strip .contact-val { font-size: 20px; font-weight: 300; color: var(--white); }
.contact-strip .contact-val a { color: var(--white); text-decoration: none; }

/* ---- FOOTER ---- */
footer {
  background: #050505;
  border-top: 0.5px solid var(--border);
  padding: 3.5rem 3rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid var(--border);
}
.footer-brand img { height: 28px; filter: brightness(10); opacity: 0.5; margin-bottom: 1rem; display: block; }
.footer-brand p { font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(245,245,240,0.3); max-width: 220px; }
.footer-col h4 { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(245,245,240,0.35); text-decoration: none; padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover { color: rgba(245,245,240,0.8); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 0.5px solid var(--border);
  color: rgba(245,245,240,0.4);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: rgba(245,245,240,0.5); color: var(--white); }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.footer-social a svg[fill="none"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  padding-top: 1.8rem;
}
.footer-bottom p { font-size: 11px; color: rgba(245,245,240,0.2); letter-spacing: 0.05em; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,245,240,0.2); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(245,245,240,0.6); }
.footer-credit { font-size: 11px; color: rgba(245,245,240,0.15); letter-spacing: 0.04em; }
.footer-credit a { color: rgba(245,245,240,0.25); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: rgba(245,245,240,0.6); }

/* ---- JAVACHAT FAB ---- */
.javachat-fab {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 300; width: 56px; height: 56px;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  border: none;
  transition: transform 0.2s ease, background 0.2s;
}
.javachat-fab:hover { transform: scale(1.08); background: #e0e0db; }
.javachat-fab svg { width: 24px; height: 24px; fill: var(--black); }
.javachat-tooltip {
  position: fixed; bottom: 6rem; right: 2rem;
  background: rgba(10,10,10,0.92);
  border: 0.5px solid var(--border);
  color: var(--white);
  font-size: 12px; letter-spacing: 0.06em;
  padding: 8px 14px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s; z-index: 300;
}
.javachat-fab:hover + .javachat-tooltip { opacity: 1; }

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  padding: 8rem 3rem 4rem;
  background: var(--black);
  border-bottom: 0.5px solid var(--border);
  margin-top: 70px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}
.page-body { padding: 4rem 3rem; }
.functions-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
}
.fn-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 1100px;
}

/* ---- 404 ---- */
.error-page {
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem;
  margin-top: 70px;
}
.error-page h1 { font-family: var(--font-display); font-size: clamp(80px, 15vw, 180px); line-height: 1; color: rgba(245,245,240,0.07); margin-bottom: -1rem; }
.error-page h2 { font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px); letter-spacing: 0.06em; color: var(--white); margin-bottom: 1rem; }
.error-page p { color: var(--mid-gray); font-weight: 300; margin-bottom: 2rem; max-width: 480px; }
.error-countdown { font-family: var(--font-display); font-size: 72px; color: rgba(245,245,240,0.12); line-height: 1; margin-bottom: 2rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1280px) {
  .events-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  #main-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .level-block, .level-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .level-block.reverse .level-img { order: -1; }
  .level-content { padding: 3rem 1.5rem; }
  .level-img { min-height: 280px; }
  .topyard-section, .functions-cta { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 1.5rem; }
  .about-strip { flex-direction: column; align-items: flex-start; gap: 2rem; padding: 3.5rem 1.5rem; }
  .about-divider { display: none; }
  .masonry-grid { columns: 2; }
  .contact-strip { flex-direction: column; align-items: flex-start; padding: 3rem 1.5rem; }
  .whats-on, .gallery-section { padding: 4rem 1.5rem; }
  .levels-intro { padding: 4rem 1.5rem 2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 1rem; }
  .javachat-fab { bottom: 1.2rem; right: 1.2rem; width: 50px; height: 50px; }
  .javachat-tooltip { display: none; }
  .page-header { padding: 5rem 1.5rem 3rem; }
  .page-body { padding: 3rem 1.5rem; }
  .functions-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 480px) {
  .masonry-grid { columns: 1; }
  .hero-content img { width: 220px; }
  .about-stat .stat-number { font-size: 52px; }
  .events-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .fn-grid-2 { grid-template-columns: 1fr; }
}

/* Functions form: ensure occasion select + its dropdown options are legible on the dark theme */
select[name="occasion_type"] { background: #000; color: var(--white); }
select[name="occasion_type"] option { background: #000; color: var(--white); }
