:root {
  --bg: #fbf8f2;
  --bg-soft: #f3ede3;
  --paper: #fffdf9;
  --text: #2b2520;
  --muted: #7a6f64;
  --accent: #b86442;
  --accent-deep: #7f3f26;
  --line: #e6dbcd;
  --shadow: 0 16px 36px rgba(53, 33, 19, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(184, 100, 66, 0.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(127, 63, 38, 0.12), transparent 35%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 30%, #fffdf9 100%);
  font-family: "Manrope", sans-serif;
}

.hero {
  padding: 4.5rem 1.5rem 3.5rem;
}

.hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  animation: rise 700ms ease-out both;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  margin-top: 0.45rem;
}

.hero__logo {
  width: clamp(150px, 21vw, 270px);
  height: auto;
  flex: 0 0 auto;
  display: block;
  border-radius: 999px;
  filter: drop-shadow(0 18px 28px rgba(53, 33, 19, 0.18));
}

.hero__kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-size: 0.74rem;
  margin: 0;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 0.95;
}

.hero__lead {
  max-width: 700px;
  margin: 1.1rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
}

.category {
  margin-bottom: 2.7rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: var(--shadow);
}

.category__heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 1.3rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
}

.category__heading p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.8rem;
}

.card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transform: translateY(8px);
  opacity: 0;
  animation: reveal 540ms ease-out forwards;
}

.card:hover {
  border-color: var(--accent);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(44px, 1fr) minmax(0, 1100px) minmax(44px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(28, 20, 16, 0.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  grid-column: 2;
  margin: 0;
  justify-self: center;
  max-width: min(100%, 1100px);
  transform: scale(0.97);
  transition: transform 180ms ease;
}

.lightbox.is-open .lightbox__content {
  transform: scale(1);
}

.lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  object-fit: contain;
  background: #17110e;
}

.lightbox__caption {
  margin-top: 0.85rem;
  color: #fff8ef;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 248, 239, 0.34);
  background: rgba(255, 253, 249, 0.14);
  color: #fff8ef;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 253, 249, 0.26);
  transform: translateY(-1px);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  width: 52px;
  height: 64px;
  border-radius: 999px;
  font-size: 3rem;
  line-height: 0.8;
}

.lightbox__nav--prev {
  grid-column: 1;
  justify-self: end;
}

.lightbox__nav--next {
  grid-column: 3;
  justify-self: start;
}

body.lightbox-open {
  overflow: hidden;
}

.empty {
  margin: 0;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: var(--bg-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero {
    padding-top: 3.5rem;
  }

  .hero__brand {
    flex-direction: column;
  }

  .hero__logo {
    width: clamp(132px, 42vw, 190px);
  }

  .category {
    padding: 1rem;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card img {
    height: 180px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 0.75rem;
  }

  .lightbox__content {
    grid-column: 1 / -1;
  }

  .lightbox__image {
    max-height: 76vh;
    border-radius: 16px;
  }

  .lightbox__nav {
    width: 100%;
    height: 48px;
    font-size: 2.3rem;
  }

  .lightbox__nav--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;
  }

  .lightbox__nav--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
  }
}
