* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: #000;
  color: #fff;
}

body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---------- header / logo ---------- */

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 32px;
}

.logo {
  width: 240px;
  height: auto;
  color: #fff; /* svg paths use fill: currentColor */
}

.logo path {
  fill: currentColor;
}

@media (max-width: 600px) {
  .site-header {
    padding: 28px 16px 20px;
  }
  .logo {
    width: 240px;
  }
}

/* ---------- landing page ---------- */

.landing-body {
  height: 100vh;
  overflow: hidden;
}

.landing {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.landing.leaving {
  opacity: 0;
}

.logo--intro {
  width: 320px;
}

.enter-btn {
  display: inline-block;
  padding: 14px 46px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.enter-btn:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 600px) {
  .logo--intro {
    width: 220px;
  }
  .landing {
    gap: 34px;
  }
}

/* ---------- loader (after Enter) ---------- */

.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 200;
}

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

.loader-count {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  font-variant-numeric: tabular-nums;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: #fff;
}

/* ---------- gallery (masonry, no cropping, native ratio) ---------- */

.gallery {
  column-count: 4;
  column-gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.ph {
  break-inside: avoid;
  margin: 0;
  cursor: zoom-in;
}

.ph img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.ph:hover img {
  opacity: 0.85;
}

.ph {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery.loaded .ph {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1300px) {
  .gallery {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .gallery {
    column-count: 1;
  }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 30px;
}

.lightbox.open {
  display: flex;
}

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

.lb-close,
.lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lb-close:hover,
.lb-nav:hover {
  opacity: 1;
}

.lb-close {
  top: 14px;
  right: 18px;
  font-size: 2.6rem;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
}

.lb-prev {
  left: 8px;
}

.lb-next {
  right: 8px;
}

@media (max-width: 640px) {
  .lb-nav {
    font-size: 2.4rem;
    padding: 8px;
  }
  .lightbox {
    padding: 10px;
  }
}
