:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #111111;
  --surface-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.7);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body.is-lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a,
button {
  color: inherit;
}

button {
  font: inherit;
}

kbd {
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9em;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.04)),
    var(--hero-image, none) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, rgba(0, 0, 0, 0.14) 100%);
  pointer-events: none;
}

.nav,
.hero__content {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  align-self: start;
}

.nav a {
  text-decoration: none;
}

.nav__brand,
.nav__links a {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.24);
  backdrop-filter: blur(10px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.nav__brand:hover,
.nav__brand:focus-visible,
.nav__links a:hover,
.nav__links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 10, 0.42);
}

.hero__content {
  align-self: center;
  text-align: center;
  width: min(100%, 58rem);
  margin: 0 auto;
}

.hero__breed,
.section-heading__label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.section-heading__label {
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0.3rem 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.88;
  font-weight: 600;
}

.hero__subtitle {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 2.2rem);
}

.hero__breed {
  margin-top: 1rem;
  font-size: 0.82rem;
}

.gallery-section {
  padding: clamp(3.5rem, 8vw, 6rem) 1rem 4rem;
}

.section-heading {
  width: min(100%, 72rem);
  margin: 0 auto 2rem;
}

.section-heading h2 {
  margin: 0.5rem 0 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.96;
  font-weight: 600;
}

.section-heading__text {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.7;
}

.gallery {
  width: min(100%, 72rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--surface);
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

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

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.24) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery__item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after {
  opacity: 1;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #090909;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--text);
  text-underline-offset: 0.2em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 90rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox__close {
  position: absolute;
  top: -3.5rem;
  right: 0;
  padding: 0.8rem 1rem;
}

.lightbox__nav {
  padding: 0.95rem 1rem;
}

.lightbox__figure {
  margin: 0;
}

.lightbox__image {
  max-height: min(80vh, 58rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.lightbox__caption {
  margin-top: 0.9rem;
  text-align: center;
  color: var(--muted);
}

@media (min-width: 700px) {
  .hero {
    padding: 1.5rem;
  }

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

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

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

@media (max-width: 699px) {
  .lightbox__dialog {
    grid-template-columns: 1fr;
  }

  .lightbox__close {
    top: -3.25rem;
  }

  .lightbox__nav {
    justify-self: center;
  }

  .lightbox__nav--prev {
    order: 2;
  }

  .lightbox__figure {
    order: 1;
  }

  .lightbox__nav--next {
    order: 3;
  }
}
