@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');

body.photo-page {
  margin: 0;
  background: #0c0c0c;
  color: #e6e2dc;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.photo-page a {
  color: #c4bfb6;
  text-decoration: none;
  transition: color 0.25s ease;
}

body.photo-page a:hover {
  color: #fff;
}

.gallery-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.gallery-brand:hover {
  color: #fff;
  opacity: 0.85;
}

.gallery-nav {
  display: flex;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-hero {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.gallery-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 12px;
  color: #fff;
  line-height: 1.15;
}

.gallery-hero p {
  margin: 0;
  color: #8a857c;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.photo-source {
  display: none;
}

.photo-gallery {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 12px 80px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.photo-gallery.is-ready {
  opacity: 1;
}

.gallery-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.gallery-cell {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
  position: relative;
  line-height: 0;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.35s ease;
}

.gallery-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.gallery-cell:hover img {
  transform: scale(1.03);
}

.gallery-cell:hover::after {
  opacity: 1;
}

.gallery-loading {
  text-align: center;
  padding: 80px 24px;
  color: #6a665e;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.gallery-footer {
  text-align: center;
  padding: 0 24px 48px;
  color: #5a5650;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.96);
}

.photo-lightbox.is-open {
  display: flex;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 72px;
  min-height: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}

.lightbox-chrome {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  pointer-events: auto;
}

.lightbox-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #9a958c;
  text-transform: uppercase;
}

.lightbox-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

@media (max-width: 700px) {
  .gallery-bar {
    padding: 14px 16px;
  }

  .gallery-nav {
    gap: 16px;
    font-size: 10px;
  }

  .gallery-hero {
    padding: 40px 20px 28px;
  }

  .photo-gallery {
    padding: 0 4px 48px;
  }

  .gallery-row {
    gap: 3px;
    margin-bottom: 3px;
  }

  .lightbox-stage {
    padding: 56px 12px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
