:root {
  color-scheme: light;
  --paper: #f3f7fa;
  --surface: #fff;
  --ink: #10263a;
  --muted: #587082;
  --accent: #1484a6;
  --line: #d7e3e9;
  --shadow: 0 16px 38px rgb(16 38 58 / 9%);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

.hero {
  min-height: 54vh;
  padding: 5rem 1.5rem;
  display: grid;
  place-content: center;
  justify-items: center;
  background:
    radial-gradient(ellipse at 50% 0, rgb(20 132 166 / 32%), transparent 58%),
    #10263a;
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8bd5e7;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.intro {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: #d4e4eb;
  font-size: 1.1rem;
}

.discover-link {
  margin-top: 2rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}

.discover-link:hover {
  background: rgb(255 255 255 / 12%);
}

.gallery {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.gallery-heading {
  max-width: 42rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.gallery-heading > p:last-child,
.album-heading p {
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-button,
.reveal-button {
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active,
.reveal-button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.album {
  margin-top: 3.5rem;
}

.album[hidden] {
  display: none;
}

.album-heading {
  margin-bottom: 1.25rem;
}

.album-heading h3 {
  margin: 0;
  font-size: 1.7rem;
}

.album-heading p {
  margin: 0.25rem 0 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

.photo-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 0;
  border: 0;
  background: #e4eef2;
  cursor: zoom-in;
}

.photo img {
  display: block;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.photo:hover img {
  transform: scale(1.035);
}

.photo--unavailable {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  cursor: default;
}

.photo-unavailable {
  font-size: 0.9rem;
  text-align: center;
}

.reveal-button {
  align-self: center;
  justify-self: start;
}

.empty-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem;
  border: 1px dashed #a9bfca;
  border-radius: 0.8rem;
  color: var(--muted);
}

.download-all-button {
  margin: 0 0 0.5rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.download-all-button:hover:not(:disabled) {
  background: var(--ink);
}

.download-all-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.download-status {
  min-height: 1.5em;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-all-button[hidden],
.download-status[hidden] {
  display: none;
}

.footer {
  padding: 1.5rem;
  background: #10263a;
  color: #d4e4eb;
  text-align: center;
}

.footer p {
  margin: 0;
}

.lightbox {
  position: fixed;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: rgb(5 15 24 / 94%);
  color: #fff;
}

.lightbox::backdrop {
  background: rgb(5 15 24 / 94%);
}

.lightbox-toolbar {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zoom-button,
.lightbox-close {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.zoom-level {
  min-width: 3.5rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  font-size: 1.7rem;
}

.lightbox-stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: auto;
}

.lightbox-image {
  max-width: min(90vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
  transform-origin: center;
  transition: transform 100ms ease;
}

@media (max-width: 600px) {
  .hero {
    min-height: 48vh;
    padding: 4rem 1rem;
  }

  .gallery {
    padding: 3.5rem 0;
  }

  .photo img {
    height: 220px;
  }

  .lightbox-toolbar {
    top: 0.7rem;
    left: 0.7rem;
  }

  .zoom-button,
  .lightbox-close {
    width: 2.4rem;
    height: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
