/* ═══════════════════════════════════════════════════════════
   AI BACKGROUND GLOW
═══════════════════════════════════════════════════════════ */
.ai-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at 20% 75%, rgba(180,100,110,1) 0%, rgba(120,60,80,0.85) 40%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.8s ease;
}
.ai-bg.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   CONTENT PAGES — GALLERY
═══════════════════════════════════════════════════════════ */
@keyframes galRise {
  from { transform: translateY(36px); }
  to   { transform: translateY(0); }
}
@keyframes galFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.content-pages {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.content-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.content-page.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1;
}

.content-page > .gal-rail {
  height: calc(100% - 80px);
}

/* ── Music / Listen layout ─────────────────────────────── */
.music-page {
  position: absolute;
  inset: 0;
  height: calc(100% - 80px);
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 0;
}
.music-page::-webkit-scrollbar { display: none; }

/* Left text panel */
.music-left {
  width: 592px;
  flex-shrink: 0;
  height: 888px;
  padding: 72px 48px 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.music-left .gal-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.music-body {
  font-size: var(--body);
  font-weight: 300;
  color: var(--text-tertiary);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* Hero tile — large landscape */
.music-hero {
  flex: 0 0 888px;
  height: 888px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.music-hero-img {
  flex: 1;
  background-size: cover;
  background-position: center;
}

/* Right scrollable columns */
.music-tiles-area {
  flex: 0 0 auto;
  height: 888px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-left: 8px;
}

/* A column of portrait tiles */
.music-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 293px;
  height: 888px;
}

/* Portrait tile: image + text footer */
.mtile {
  height: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.mtile-img {
  height: 293px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.mtile-footer {
  flex-shrink: 0;
  background: #141e24;
  background-size: cover;
  background-position: center;
  padding: 62px 24px 24px 24px;
}
.mtile-artist {
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.60);
  line-height: 1.2;
  margin-bottom: 8px;
}
.mtile-album {
  font-size: var(--headline);
  font-weight: 200;
  color: #FFFFFF;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.gal-scroller {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gal-scroller::-webkit-scrollbar { display: none; }

.gal-section {
  width: 100%;
  height: calc(100% - 116px);
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.gal-section:last-child {
  height: 100%;
}
/* Map globe stays full height, others show peek of next section */
#section-map-globe {
  height: 100%;
}
#section-map-dining {
  height: 100%;
}

/* full-width horizontal rail */
.gal-rail {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  position: relative;
}
.gal-rail::-webkit-scrollbar { display: none; }

/* left panel */
.gal-left {
  width: 888px;
  height: 888px;
  flex-shrink: 0;
  padding: 80px 72px 160px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  scroll-snap-align: start;
  pointer-events: all;
  box-sizing: border-box;
  align-self: flex-start;
}
.gal-page-title {
  font-size: 72px;
  font-weight: 200;
  color: var(--text-primary);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
.gal-mood-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-quaternary);
  margin-bottom: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gal-mood-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.gal-mood-word {
  font-size: 28px;
  font-weight: 200;
  color: rgba(238,247,247,0.18);
  cursor: pointer;
  transition: color 0.5s cubic-bezier(0.22,1,0.36,1);
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.gal-mood-word.active { color: var(--accent); }

/* cards */
.gal-card {
  height: 888px;
  flex-shrink: 0;
  position: relative;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2/3;
  width: auto;
  align-self: flex-start;
}

.gal-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.gal-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,25,29,0) 30%,
    rgba(12,25,29,0.2) 55%,
    rgba(12,25,29,0.72) 78%,
    rgba(12,25,29,0.96) 100%
  );
}
/* Poster-only cards — no gradient overlay */
.gal-card-poster::after { display: none; }

/* Movie genre left panel — narrower 592×888 with background image */
#page-watch-movie .gal-left {
  width: 592px;
  height: 888px;
  position: relative;
  overflow: hidden;
}
#page-watch-movie .gal-left .gal-left-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
#page-watch-movie .gal-rail {
  gap: 0;
}
#page-watch-movie .gal-grid-col {
  margin-left: 8px;
}
#page-watch-movie .gal-grid-col:first-of-type {
  margin-left: 8px;
}

/* Small poster grid — 2 rows of compact posters in a horizontal scroll */
.gal-grid-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  height: 888px;
  scroll-snap-align: start;
}
.gal-card-sm {
  width: 293px;
  height: 440px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gal-card-sm .gal-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.gal-card-sm:hover .gal-card-img {
  transform: scale(1.03);
}
.gal-card-sm::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.04), inset -1px 0 0 rgba(0,0,0,0.3);
  pointer-events: none;
}

/* Card Square Large — 592w × 888h, 1:1 image on top, text below */
.gal-card-square {
  width: 592px;
  height: 888px;
  aspect-ratio: auto;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.gal-card-square::after { display: none; }
.gal-card-square-img {
  width: 592px;
  height: 592px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.gal-card-square-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 28px 32px;
  background: rgba(238,247,247,0.03);
}
.gal-card-square-eyebrow {
  font-size: 20px;
  font-weight: 300;
  color: rgba(238,247,247,0.4);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.gal-card-square-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Destination cards — image top, text bottom */
.gal-card-dest {
  width: 444px;
  height: 888px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
}
.gal-card-dest-img {
  width: 444px;
  height: 666px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.gal-card-dest-text {
  width: 444px;
  height: 222px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  background-size: cover;
  background-position: center;
  background-color: rgba(238,247,247,0.03);
}
.gal-card-dest-eyebrow {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238,247,247,0.45);
  margin-bottom: 10px;
}
.gal-card-dest-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* subtle inner edge glow for depth */
.gal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.04), inset -1px 0 0 rgba(0,0,0,0.3);
  pointer-events: none;
}

.gal-card-info {
  position: absolute;
  bottom: 52px;
  left: 40px;
  right: 40px;
}
.gal-card-eyebrow {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quaternary);
  margin-bottom: 12px;
}
.gal-card-title {
  font-size: 30px;
  font-weight: 200;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.gal-card:first-child .gal-card-title {
  font-size: 46px;
  letter-spacing: -0.02em;
}
.gal-card:first-child .gal-card-info {
  bottom: 60px;
  left: 48px;
}
.gal-card:first-child .gal-card-eyebrow {
  font-size: 12px;
  margin-bottom: 16px;
}

/* section fade transitions (pill-triggered) */
@keyframes secFadeOutUp   { from{opacity:1;transform:translateY(0)}   to{opacity:0;transform:translateY(-40px)} }
@keyframes secFadeOutDown { from{opacity:1;transform:translateY(0)}   to{opacity:0;transform:translateY(40px)}  }
@keyframes secFadeInUp    { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)}    }
@keyframes secFadeInDown  { from{opacity:0;transform:translateY(-40px)} to{opacity:1;transform:translateY(0)}   }

/* ═══════════════════════════════════════════════════════════
   AI STORY CARD
═══════════════════════════════════════════════════════════ */
.ai-card {
  position: absolute;
  bottom: 150px;
  left: 56px;
  width: 360px;
  opacity: 0;
  pointer-events: none;
  z-index: 110;
  transition: opacity 0.5s ease;
}
.ai-card.show { opacity: 1; pointer-events: all; }
.ai-card-tag {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}
.ai-card-title {
  font-size: var(--t2);
  font-weight: 200;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.ai-card-body {
  font-size: var(--body);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ai-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--caption);
  font-weight: 300;
  color: var(--accent2);
  cursor: pointer;
}
