/* =============================================
   Lanthimos-Style Album Page
   ============================================= */

/* Full-page layout: sidebar left + main right */
.lanthimos-page {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
}

/* Left sidebar: list of album titles */
.lanthimos-nav-projects {
  flex: 0 0 200px;
  width: 200px;
  padding-right: 2rem;
  padding-top: 0.25rem;
}

.lanthimos-nav-projects ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lanthimos-nav-projects li {
  margin-bottom: 0.6rem;
}

.lanthimos-nav-projects a {
  font-size: 0.82rem;
  color: var(--color-grey);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  transition: color 0.2s;
}

.lanthimos-nav-projects a:hover,
.lanthimos-nav-projects li.on a {
  color: var(--color-black);
}

/* Main content area */
.lanthimos-main {
  flex: 1 1 0;
  min-width: 0;
}

/* Slider wrapper */
.lanthimos-slider {
  width: 100%;
}

/* Slide container:
   - caps at 600×600px on large screens
   - shrinks fluidly as the column narrows
   - always stays square via aspect-ratio     */
.lanthimos-slides-wrap {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 1 / 1;
}

/* Individual slides — crossfade via opacity */
.lanthimos-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

/* Image: scales to fit the container, never crops */
.lanthimos-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  user-select: none;
}

/* Previous / Next text controls */
.lanthimos-controls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

.lanthimos-controls button {
  all: unset;
  font-size: 0.82rem;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.lanthimos-controls button:hover {
  color: var(--color-black);
}

/* Caption below controls */
.lanthimos-caption-text {
  font-size: 0.82rem;
  color: var(--color-grey);
  padding-bottom: 0.75rem;
  min-height: 1.2em;
}

body[data-show-captions="false"] .lanthimos-caption-text {
  display: none !important;
}

/* Album description */
.lanthimos-description {
  margin-top: 2rem;
}

/* Stack vertically when sidebar + slider no longer fits */
@media screen and (max-width: 840px) {
  .lanthimos-page {
    flex-direction: column;
    gap: 1.5rem;
  }

  .lanthimos-nav-projects {
    flex: none;
    width: 100%;
    padding-right: 0;
  }

  .lanthimos-nav-projects ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
  }

  /* On mobile, slider fills full width and stays square */
  .lanthimos-slides-wrap {
    width: 100%;
  }
}
