/* ============================================================
   ALEXIS ADLER — Gallery Series Pages
   Extends style.css — link both stylesheets
   ============================================================ */

/* ── Series Hero ──────────────────────────────────────────── */
.series-hero {
  position: relative;
  height: 62vh;
  min-height: 480px;
  background-color: var(--dark-bg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 80px; /* nav clearance */
}

.series-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
}

.series-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,12,16,0.95) 0%,
    rgba(8,12,16,0.65) 55%,
    rgba(8,12,16,0.2) 100%
  );
  z-index: 1;
}

.series-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 60px 64px;
  max-width: 860px;
  color: var(--white);
}

.series-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 44px;
  transition: color 0.4s ease;
  cursor: pointer;
}
.series-hero__back:hover { color: rgba(255,255,255,0.75); opacity: 1; }

.series-hero__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.series-hero__label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.series-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 108px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.9;
  margin-bottom: 36px;
  color: var(--white);
}
.series-hero__title em {
  font-style: italic;
  display: block;
}

.series-hero__meta {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.series-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.series-hero__meta-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.series-hero__meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
}

/* ── Series Statement ─────────────────────────────────────── */
.series-statement {
  padding: 100px 0;
  border-bottom: 1px solid rgba(14,14,14,0.07);
}

.series-statement__inner {
  max-width: 820px;
  margin: 0 auto;
}

.series-statement__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--near-black);
  letter-spacing: -0.01em;
  margin-bottom: 44px;
}

.series-statement__detail {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
}

/* ── Gallery Wall (asymmetric museum layout) ─────────────── */
.gallery-wall {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.wall-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.wall-row--center { justify-content: center; }
.wall-row--3col { gap: 40px; }
.wall-row--3col .photo-item { flex: 1; }
.wall-row--offset-right { justify-content: center; gap: 60px; }

.wall-item--35 { width: 35%; flex-shrink: 0; }
.wall-item--40 { width: 40%; flex-shrink: 0; }
.wall-item--45 { width: 45%; flex-shrink: 0; }
.wall-item--55 { width: 55%; flex-shrink: 0; }
.wall-item--65 { width: 60%; flex-shrink: 0; }
.wall-item--75 { width: 70%; flex-shrink: 0; }
.wall-item--85 { width: 80%; flex-shrink: 0; }
.wall-item--offset { margin-top: 80px; }

@media (max-width: 768px) {
  .gallery-wall { padding: 0 24px; gap: 64px; }
  .wall-row { flex-direction: column; gap: 64px; }
  .wall-item--35, .wall-item--40, .wall-item--45,
  .wall-item--55, .wall-item--65, .wall-item--75,
  .wall-item--85 { width: 100%; }
  .wall-item--offset { margin-top: 0; }
}

/* ── Photo Grid (CSS columns fallback for other pages) ───── */
.photo-section {
  padding: 72px 0 100px;
}

.photo-section--dark {
  background-color: var(--dark-bg);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 60px;
  max-width: var(--container);
  margin: 0 auto;
}

.photo-grid--4col { grid-template-columns: repeat(4, 1fr); }
.photo-grid--2col { grid-template-columns: repeat(2, 1fr); }

.photo-item {
  margin-bottom: 0;
}

.photo-item__link {
  display: block;
  overflow: hidden;
  position: relative;
  cursor: none;
}

.photo-item__frame {
  width: 100%;
  overflow: hidden;
  background-color: transparent;
  position: relative;
}
.photo-item__frame--dark {
  background-color: #0a1218;
}
.photo-item__frame--dark .photo-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-item__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Suppress alt text + broken icon appearance before images load */
  color: transparent;
  font-size: 0;
}
.photo-item__link:hover .photo-item__img { transform: scale(1.04); }

/* Hover dim */
.photo-item__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,12,16,0);
  transition: background 0.4s ease;
  pointer-events: none;
}
.photo-item__link:hover .photo-item__frame::after {
  background: rgba(8,12,16,0.15);
}

/* Zoom icon on hover */
.photo-item__zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%) scale(0.85);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  pointer-events: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-item__zoom::before {
  content: '+';
  color: rgba(255,255,255,0.9);
  font-size: 20px;
  font-weight: 300;
  font-family: var(--font-ui);
  line-height: 1;
}
.photo-item__link:hover .photo-item__zoom {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.photo-item__caption {
  padding: 16px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: none;
}

.photo-section--dark .photo-item__caption {
  border-bottom-color: rgba(255,255,255,0.06);
}

.photo-item__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: var(--near-black);
  line-height: 1.45;
  flex: 1;
  letter-spacing: 0.005em;
}
.photo-section--dark .photo-item__title { color: rgba(255,255,255,0.65); }

.photo-item__year {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.photo-section--dark .photo-item__year { color: rgba(255,255,255,0.25); }

/* ── Series Info Strip ────────────────────────────────────── */
.series-info {
  padding: 72px 0;
  background-color: var(--cream-alt);
  border-top: 1px solid rgba(14,14,14,0.06);
  border-bottom: 1px solid rgba(14,14,14,0.06);
}

.series-info__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}

/* reuse .meta-label / .meta-value from style.css */

/* ── Series Navigation ────────────────────────────────────── */
.series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.series-nav__item {
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.4s ease;
  position: relative;
}
.series-nav__item:hover { background-color: rgba(14,14,14,0.025); opacity: 1; }
.series-nav__item + .series-nav__item {
  border-left: 1px solid rgba(14,14,14,0.07);
}

.series-nav__direction {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.series-nav__item--next .series-nav__direction { flex-direction: row-reverse; }

.series-nav__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 300;
  font-style: italic;
  color: var(--near-black);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.series-nav__item--next { text-align: right; }

/* ── Lightbox ─────────────────────────────────────────────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lb.active {
  opacity: 1;
  pointer-events: all;
}

.lb__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4,6,8,0.97);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lb__backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.lb__stage {
  position: relative;
  z-index: 501;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 160px);
}

.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.28s ease;
  /* Placeholder tint while loading */
  background-color: transparent;
}
.lb__img.loaded { opacity: 1; }

.lb__close {
  position: fixed;
  top: 28px;
  right: 40px;
  z-index: 502;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.lb__close:hover { color: var(--white); }
.lb__close::before {
  content: '×';
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1;
  font-family: var(--font-display);
}

.lb__prev,
.lb__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 502;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 36px;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s ease;
  line-height: 1;
  font-size: 24px;
  font-weight: 200;
  font-family: var(--font-display);
}
.lb__prev:hover, .lb__next:hover { color: var(--white); }
.lb__prev { left: 0; }
.lb__next { right: 0; }

.lb__info {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 502;
  padding: 40px 60px 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(4,6,8,0.75) 0%, transparent 100%);
}

.lb__caption {}

.lb__title {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}

.lb__year {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.lb__counter {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── Gallery footer ───────────────────────────────────────── */
.gallery-footer {
  background-color: var(--dark-bg);
  padding: 44px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.gallery-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-footer__logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
  transition: color 0.4s ease;
}
.gallery-footer__logo:hover { color: rgba(255,255,255,0.8); opacity: 1; }
.gallery-footer__copy {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.15);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .photo-grid, .photo-grid--4col { grid-template-columns: repeat(2, 1fr); padding: 0 40px; }
  .series-hero__content { padding: 0 40px 56px; }
  .series-info__grid { grid-template-columns: 1fr 1fr; }
  .series-nav__item { padding: 52px 40px; }
}

@media (max-width: 768px) {
  .photo-grid, .photo-grid--4col { grid-template-columns: 1fr; padding: 0 20px; }
  .photo-grid--2col { columns: 1; }
  .series-hero { height: auto; min-height: 75vh; }
  .series-hero__content { padding: 120px 24px 52px; }
  .series-hero__title { font-size: clamp(38px, 11vw, 64px); }
  .series-statement { padding: 64px 0; }
  .series-info { padding: 52px 0; }
  .series-info__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .series-nav { grid-template-columns: 1fr; }
  .series-nav__item + .series-nav__item { border-left: none; border-top: 1px solid rgba(14,14,14,0.07); }
  .series-nav__item--next { text-align: left; }
  .series-nav__item--next .series-nav__direction { flex-direction: row; }
  .series-nav__item { padding: 40px 24px; }
  .lb__stage { max-width: 100vw; max-height: calc(100vh - 130px); }
  .lb__info { padding: 28px 24px 24px; }
  .lb__prev { padding: 20px 16px; }
  .lb__next { padding: 20px 16px; }
  .lb__close { right: 16px; top: 20px; }
}
