:root {
  --theme-color: black;
}

html, body {
  margin: 0;
  height: 100%;
font-family: 'Times New Roman', Times, serif;
  background-color: white;
  color: var(--theme-color);
  -webkit-font-smoothing: antialiased;
}

/* ---------------- GLOBAL LINK SYSTEM ---------------- */

a {
  text-decoration: none;
}

a:hover {
opacity: 0.5;
}

/* global transitions */
body,
nav a,
.infobox,
.slide-caption,
.slider-arrow,
.dot {
  transition: color 0.4s ease, background-color 0.4s ease;
}

/* ---------------- NAV ---------------- */

nav {
  position: fixed;
  z-index: 9999;
  background: transparent;
  line-height: 1.6;
}

nav a {
  color: var(--theme-color);
  cursor: pointer;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem;
  z-index: 1000;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-right {
  margin-left: auto;
}

.nav-left a,
.nav-right a {
  color: inherit;
  white-space: nowrap;
  display: inline-block;
}

/* ---------------- SLIDER ---------------- */

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.slide.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 3;
}

/* ---------------- SLIDE STRUCTURE ---------------- */

.slide-inner {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 20px;
  padding: 4rem 2rem;
  box-sizing: border-box;

  transition: transform 0.4s ease;
}

.image-wrapper {
  display: flex;
  justify-content: center;
}

.slide-image,
.slide-video {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

/* 1. Reset the inner container padding when fullscreen */
.slide.is-fullscreen .slide-inner {
  padding: 0;
  gap: 0;
}

/* 2. Reset the image wrapper so it doesn't add accidental inline dimensions */
.slide.is-fullscreen .image-wrapper {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* 3. Keep your existing rule, ensuring it renders clean */
.slide.is-fullscreen .slide-image,
.slide.is-fullscreen .slide-video {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block; 
}

/* ---------------- SLIDE STRUCTURE ---------------- */

.slide.is-fullscreen .slide-image,
.slide.is-fullscreen .slide-video {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block; /* FIX: Removes the hidden text baseline gap from the bottom */

}

/* ---------------- CAPTION (REFERENCE STYLE) ---------------- */

.slide-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);

font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: normal;

  color: var(--theme-color);
  text-align: center;
  line-height: 1.3;

  z-index: 20;
}

/* ---------------- LIGHTBOX ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--bg-color, rgba(255,255,255,0.95));
  display: none;
  z-index: 9999;
}

.lightbox.active {
  display: block;
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.lightbox-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
    cursor: pointer;
}

.lightbox-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  transition: transform 0.6s ease;
}

.lightbox-media {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  cursor: inherit;
  pointer-events: none;
}


/* ---------------- LIGHTBOX CLOSE BUTTON ---------------- */

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;

font-family: 'Times New Roman', Times, serif;
  font-size: 1rem; /* same as nav */
  line-height: 1.6;

  color: var(--theme-color);
  background: none;
  border: none;
  padding: 0;
  margin: 0;

  cursor: pointer;
  z-index: 10000;
}

/* ✅ FIXED: MATCH SLIDER CAPTION EXACTLY */
.lightbox-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);

font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: normal;

  color: var(--theme-color);
  text-align: center;
  line-height: 1.3;

  z-index: 20;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
    pointer-events: auto;
}

/* INFO BOX */
.lightbox-info {
  max-width: 500px;
  width: 80vw;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.lightbox.info-open .lightbox-info {
  max-height: 50vh;
  overflow-y: auto;
}

.lightbox.info-open .lightbox-unit {
  transform: translateY(-10vh);
}

/* ---------------- GRID ---------------- */

.index-grid {
  display: grid;
  gap: 10px;
  padding: 80px 10px 10px;
  grid-template-columns: repeat(10, 1fr);
}

@media (max-width: 1000px) {
  .index-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 700px) {
  .index-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 400px) {
  .index-grid { grid-template-columns: repeat(2, 1fr); }
}

.grid-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-frame img,
.grid-frame video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------------- PREVIEW CAPTION ---------------- */

.preview-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
color:black;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.grid-frame:hover .preview-caption {
  opacity: 1;
}

/* ---------------- INFO PAGE ---------------- */

.info-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  padding: 1rem 0rem 0rem 1rem;
  box-sizing: border-box;
}

.info-inner {
  width: 100%;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-title {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
}

.info-text {
  margin-top: 1.6rem;
  width: 100%;
  display: flex;
  flex-direction: column;

}

/* Base resets for paragraphs within the text area */
.info-text p {
  margin: 0;
}

/* Links inherit the color and styling rules */
.info-text a {
  color: inherit;
  text-decoration: none;
}

.info-text a:hover {
opacity: 0.5;
}

/* ---------------- TYPOGRAPHY BLOCKS ---------------- */

/* Main Layout Size (Matches Nav) */
/* ---------------- TYPOGRAPHY BLOCKS ---------------- */

/* Main Layout Size */
.text-normal {
  margin-top: 1.5em; /* 👈 One full line space relative to normal text */
}
.text-normal,
.text-normal p,
.text-normal a {
  font-size: 1rem;
  line-height: 1.6;
}

/* Caption Size */
.text-caption {
  margin-top: 1.5em; /* 👈 One full line space relative to caption text (automatically smaller!) */
}
.text-caption,
.text-caption p,
.text-caption a {
font-family: 'Times New Roman', Times, serif;
  font-size: 0.8rem;
  font-weight: normal;
  line-height: 1.3;
}

/* Optional: Prevent an unwanted gap above the very first block on the page */
.info-text > div:first-child {
  margin-top: 0;
}

/* ---------------- ALIGNMENT ---------------- */

.info-page.is-centered .info-inner {
  align-items: center;
  text-align: center;
}

.info-page.is-left .info-inner {
  align-items: flex-start;
  text-align: left;
}

/* ---------------- RESPONSIVE ---------------- */

@media (min-width: 1200px) {
  .info-inner { max-width: 850px; }
  .info-title { font-size: 1.3rem; }
  /* Sizing rules flow naturally down to responsive breakpoints now */
}

@media (max-width: 600px) {
  .info-page { padding: 1rem 1rem; }
  .info-inner { max-width: 100%; }
}

/* ---------------- LIGHTBOX FULLSCREEN OVERRIDE ---------------- */

/* Stretch the media wrapper completely if fullscreen is active */
.lightbox-slide.is-fullscreen .lightbox-content {
  padding: 0;
}

/* Force the image or video to fill the screen space beautifully */
.lightbox-slide.is-fullscreen .lightbox-media {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
}


/* ---------------- LIGHTBOX EXTENDED INFO ANIMATION ---------------- */

/* The main content container must allow absolute children to clip/scroll safely */
.lightbox-content {
  overflow: hidden;
  position: relative;
}

/* A vertical flex container that houses both blocks */
.lightbox-slide-stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 200vh; /* Double height to hold both screens */
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth cinematic slide */
}

/* When active, push the whole stack up by exactly one full screen height */
.lightbox-slide.info-open .lightbox-slide-stack {
  transform: translateY(-100vh);
}

/* Upper Block: Fills the first viewport completely */
.lightbox-media-block {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Lower Block: Sits immediately below the first screen, centered text */
.lightbox-ext-info {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
  padding: 4rem 2rem;
}

/* Style your extended info text area */
.ext-info-text {
  max-width: 800px;
  width: 80vw;
font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

/* Force the lightbox caption container to behave as a single inline row */
.lightbox-caption {
  display: block !important; /* Overrides the column flex direction */
  white-space: nowrap;       /* Prevents the link from breaking to a new line */
  text-align: center;
}

/* Ensure the title string stays cleanly inline */
.lightbox-caption .caption-title {
  display: inline-block;
}

/* Style adjustments for triggers inside the caption line */
.lightbox-caption .more-info-trigger {
  display: inline-block;
  margin-left: 8px; /* Adds a clean spacing gap right next to your text */
  color: var(--theme-color);
  font-family: 'Times New Roman', Times, serif;

}

.less-info-trigger {
  color: var(--theme-color);
font-family: 'Times New Roman', Times, serif;
  font-size: 0.8rem;
}

/* Add a smooth fade transition to the caption wrapper */
.lightbox-caption {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🟢 HIDE CAPTION: When info panel is sliding up, fade the main caption out out completely */
.lightbox-slide.info-open .lightbox-caption {
  opacity: 0;
  pointer-events: none; /* Prevents accidentally clicking "more info" while invisible */
}

/* 🟢 Drop the opacity only on mouse hover */
.lightbox-caption .more-info-trigger:hover {
  opacity: 0.5;
}


/* 🟢 Drop the opacity to 70% only on mouse hover */
.less-info-trigger:hover {
  opacity: 0.5;
}