:root {
  --bg: #0a0a0b;
  --text: #eceae7;
  --muted: #7a7874;
  --accent: #b8a078;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hero {
  text-align: center;
  padding: clamp(3rem, 12vw, 6rem) 1.25rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0 1rem 2rem;
}

.filters__btn {
  font: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.filters__btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.filters__btn.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 0.75rem 4rem;
}

.gallery__status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.gallery__item[hidden] {
  display: none;
}

.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  background: #141416;
  aspect-ratio: 4 / 3;
}

.gallery__thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.gallery__thumb:hover img {
  transform: scale(1.04);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open:not([hidden]) {
  display: flex;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__img {
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-out;
}

body.lightbox-open {
  overflow: hidden;
}

.footer {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__line {
  margin: 0;
  font-size: 0.875rem;
}

.footer__line--muted {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
