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

body {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: #111;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
}

.site-name {
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  color: #111;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: #555;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #111;
}

/* ── Hero ── */

.hero {
  padding: 60px 48px 40px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #111;
  max-width: 680px;
}

/* ── Filter bar ── */

.filter-bar {
  display: flex;
  gap: 28px;
  padding: 0 48px 48px;
  justify-content: flex-start;
}

.filter-bar a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: #aaa;
  transition: color 0.2s;
  cursor: pointer;
}

.filter-bar a:hover {
  color: #555;
}

.filter-bar a.active {
  color: #111;
}

/* ── Projects dropdown ── */

.projects-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.projects-trigger {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  color: #aaa;
  transition: color 0.2s;
  cursor: pointer;
}

.projects-trigger:hover {
  color: #555;
}

.projects-trigger.active {
  color: #111;
}

.projects-menu {
  display: none;
  align-items: center;
  gap: 20px;
  padding-left: 36px;
  margin-left: 12px;
  border-left: 1px solid #ddd;
}

.projects-dropdown.open .projects-menu {
  display: flex;
}

.projects-menu a {
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  color: #aaa;
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.projects-menu a:hover {
  color: #555;
}

.projects-menu a.active {
  color: #111;
}

/* ── Gallery ── */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 48px 80px;
  align-items: start;
}

@media (min-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1800px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.5s ease;
}

.gallery-item img.loaded {
  opacity: 1;
}

.gallery-item:hover img {
  transform: scale(1.015);
}

/* ── Text blocks ── */

.gallery-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
}

.gallery-text p {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  font-style: italic;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 480px;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 72vw;
  max-height: 76vh;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 32px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 12px;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #000;
}

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 88vw;
  max-height: 88vh;
}

.lightbox-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.33%;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
}

.lightbox-zone--left {
  left: 0;
  cursor: w-resize;
}

.lightbox-zone--center {
  left: 33.33%;
  cursor: pointer;
}

.lightbox-zone--right {
  right: 0;
  cursor: e-resize;
}

/* ── Footer ── */

footer {
  text-align: center;
  padding: 40px 48px;
  font-size: 12px;
  color: #ccc;
  letter-spacing: 0.03em;
}

/* ── Empty state ── */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 40px;
  color: #bbb;
  font-size: 14px;
}

.empty-state p:first-child {
  font-size: 16px;
  color: #999;
  margin-bottom: 8px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  nav {
    padding: 24px 24px;
  }
  .hero {
    padding: 40px 24px 56px;
  }
  .filter-bar {
    padding: 0 24px 32px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 0 24px 56px;
  }
  .nav-links {
    gap: 20px;
  }
}
