.page-head {
  padding-block: clamp(56px, 7vw, 100px) clamp(40px, 5vw, 64px);
}

.page-head__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-head__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
}

.page-head__title em { font-style: italic; color: var(--accent); font-weight: 400; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.filter {
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: all var(--transition);
}

.filter:hover { color: var(--ink); border-color: var(--ink); }

.filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Gallery — CSS columns masonry, admin-friendly: each <li> is one image */
.gallery-section { padding-block: 0 clamp(80px, 10vw, 120px); }

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 16px;
}

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

.gallery__item {
  break-inside: avoid;
  margin-bottom: 16px;
  transition: opacity 300ms ease, transform 300ms ease;
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
  overflow: hidden;
  position: relative;
  line-height: 0;
}

.gallery__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery__btn:hover::after { opacity: 0.06; }
.gallery__btn:hover { transform: scale(1.01); }

.gallery__img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery__btn--img {
  background: var(--ink);
  border: 0;
  cursor: zoom-in;
}

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

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

.lightbox__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.lightbox__media {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #2a2622 0%, #3a3530 100%);
}

.lightbox__placeholder .placeholder__label {
  background: rgba(245,241,237,0.08);
  color: rgba(245,241,237,0.7);
  border-color: rgba(245,241,237,0.12);
}

.lightbox__counter {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(245,241,237,0.5);
  letter-spacing: 0.16em;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(245,241,237,0.08);
  color: var(--bg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  transition: all var(--transition);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--accent);
}

.lightbox__close { top: 32px; right: 32px; }
.lightbox__nav--prev { left: 32px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 32px; top: 50%; transform: translateY(-50%); }

@media (max-width: 720px) {
  .lightbox { padding: 64px 16px; }
  .lightbox__close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
}

.page-cta {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--card);
  border-block: 1px solid var(--line);
}

.page-cta__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 720px;
}

.page-cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
