:root {
  --dark: #010c32;
  --header: rgba(22, 36, 86, 0.7);
  --panel: #182a4c;
  --panel-border: #455170;
  --input-bg: #ffffff;
  --input-border: #babc91;
  --text: #ffffff;
  --muted: #cad5e2;
  --slate: #62748e;
  --gold-1: #bd8b57;
  --gold-2: #ffecb7;
  --gold-3: #f9c066;
  --container: 1506px;
  --radius: 10px;
  --font: "Lato", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gold-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(95.8deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
  box-shadow: 0 0 4px rgba(255, 234, 179, 0.75), inset 0 0 2px #fff;
  color: rgba(28, 25, 23, 0.8);
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gold-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(249, 192, 102, 0.23), inset 0 0 2px #fff;
}

/* Top line */
.topbar {
  position: relative;
  z-index: 20;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1;
}

.topbar__accessibility,
.topbar__right,
.topbar__right a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar__right {
  gap: 18px;
  margin-left: auto;
}

.topbar__search {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.topbar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 80px;
  background: var(--header);
  backdrop-filter: blur(8px);
  overflow: hidden;
  border-bottom: 1px solid transparent;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffecb7 0%, #bae3fe 25%, rgba(186, 227, 254, 0.75) 51%, #ffecb7 86%, #bae3fe 100%);
  filter: blur(1px);
}

.header-inner {
  position: relative;
  z-index: 2;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-glow {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: hard-light;
  filter: blur(16px);
  pointer-events: none;
}

.header-glow--one {
  width: 128px;
  height: 128px;
  left: 186px;
  bottom: -20px;
  background: rgba(186, 227, 254, 0.2);
}

.header-glow--two {
  width: 100px;
  height: 100px;
  right: 220px;
  top: 30px;
  background: rgba(255, 236, 183, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 280px;
  gap: 12px;
}

.brand__logo {
  width: 40px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7cc7f 0%, #f9eacf 25%, #f4d191 36.5%, #d9b169 56.5%, #dbbb82 71.5%, #f5e5c9 86.5%, #b6904c 100%);
  color: #10376d;
  font-weight: 900;
}

.brand__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand__text span {
  font-size: 14px;
  letter-spacing: 0.14px;
}

.brand__text strong {
  font-size: 16px;
  line-height: 1.15;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 26px);
  margin-left: auto;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a {
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.75;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.nav-toggle,
.burger {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 480px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #162456;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.08) 55%, rgba(0, 0, 0, 0) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/gallery-hero.png") center / cover no-repeat;
}

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

.hero h1 {
  max-width: 900px;
  margin: 112px 0 0 65px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  font-weight: 700;
}

.breadcrumbs {
  height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate);
  font-size: 14px;
}

.breadcrumbs a {
  font-weight: 700;
  text-decoration: underline;
}

/* Gallery page */
.gallery-page {
  position: relative;
  min-height: 2590px;
  padding: 25px 0 72px;
  background: var(--dark);
  overflow: hidden;
}

.bg-blur {
  position: absolute;
  border-radius: 999px;
  mix-blend-mode: hard-light;
  opacity: 0.1;
  filter: blur(64px);
  pointer-events: none;
}

.bg-blur--a {
  width: 374px;
  height: 374px;
  left: -96px;
  top: 40px;
  background: #ffecb7;
}

.bg-blur--b {
  width: 314px;
  height: 314px;
  left: 535px;
  top: -96px;
  background: #bae3fe;
}

.bg-blur--c {
  width: 598px;
  height: 598px;
  right: 250px;
  top: 350px;
  background: #bae3fe;
}

.bg-blur--d {
  width: 553px;
  height: 553px;
  right: -194px;
  top: 325px;
  background: #ffecb7;
}

.filter-panel {
  position: relative;
  z-index: 1;
  padding: 12px 10px;
  margin-bottom: 58px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: var(--panel);
}

.filter-panel__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) minmax(160px, 237px);
  gap: 14px;
  min-height: 76px;
  align-items: center;
  padding: 13px 11px;
  border: 1px solid #131e35;
  border-radius: 8px;
  background: #d8d9de;
}

.filter-panel select {
  width: 100%;
  height: 47px;
  padding: 0 42px 0 16px;
  border: 1px solid #babc91;
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--slate);
  font-size: 16px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #354058 50%),
    linear-gradient(135deg, #354058 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 20px,
    calc(100% - 14px) 20px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.filter-panel input {
  width: 100%;
  height: 47px;
  padding: 0 16px 0 16px;
  border: 1px solid #babc91;
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--slate);
  font-size: 16px;
  appearance: none;
}

.filter-panel__button {
  width: 100%;
  height: 47px;
}

.gallery-section {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-bottom: 44px;
}

.gallery-section + .gallery-section {
  margin-top: 36px;
}

.gallery-section h2 {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px 14px;
}

.photo-card {
  position: relative;
  min-height: 219px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(186, 227, 254, 0.16), rgba(255, 236, 183, 0.1));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 12, 50, 0) 45%, rgba(1, 12, 50, 0.65) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-card:hover::before {
  opacity: 1;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 219px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-card--flip img {
  transform: scaleX(-1);
}

.photo-card--flip:hover img {
  transform: scaleX(-1) scale(1.035);
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.photo-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.photo-card img[src$=".jpg"] {
  background: linear-gradient(135deg, rgba(186, 227, 254, 0.2), rgba(255, 236, 183, 0.16));
}


.footer-graphic {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 40px 0 0;
  display: block;
  opacity: 0.95;
  border-radius: 12px;
}

@media (max-width: 1500px) {
  .container {
    width: min(1180px, calc(100% - 40px));
  }

  .brand {
    min-width: 245px;
  }

  .main-nav {
    gap: 14px;
    font-size: 14px;
  }

  .header-actions .gold-button {
    padding-inline: 18px;
  }

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

@media (max-width: 1200px) {
  .topbar {
    padding-inline: 20px;
  }

  .topbar__accessibility span:last-child,
  .topbar__right a:nth-of-type(1) {
    display: none;
  }

  .header-inner {
    gap: 16px;
  }

  .burger {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    margin-left: auto;
    border-radius: 8px;
    cursor: pointer;
  }

  .burger span {
    width: 22px;
    height: 2px;
    display: block;
    background: #fff;
    border-radius: 2px;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 16px 16px;
    background: rgba(1, 12, 50, 0.96);
    white-space: normal;
  }

  .nav-toggle:checked ~ .main-nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

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

  .filter-panel__button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 640px);
  }

  .topbar {
    justify-content: center;
    gap: 14px;
    padding-inline: 14px;
  }

  .topbar__right {
    gap: 12px;
    margin-left: 0;
  }

  .topbar__right a:nth-of-type(2),
  .topbar__divider,
  .topbar__right a[aria-label] {
    display: none;
  }

  .site-header,
  .header-inner {
    min-height: 72px;
  }

  .brand {
    min-width: 0;
  }

  .brand__text span {
    font-size: 12px;
  }

  .brand__text strong {
    font-size: 13px;
  }

  .brand__logo {
    width: 34px;
    height: 48px;
    border-radius: 12px;
  }

  .header-actions .gold-button {
    display: none;
  }

  .main-nav {
    top: 72px;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    margin-left: 0;
    margin-top: 70px;
  }

  .breadcrumbs {
    height: 72px;
  }

  .gallery-page {
    padding-top: 16px;
  }

  .filter-panel {
    margin-bottom: 40px;
  }

  .filter-panel__inner {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .photo-card,
  .photo-card img {
    min-height: 170px;
  }
}

@media (max-width: 480px) {
  .topbar__accessibility,
  .topbar__search {
    display: none;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card img {
    min-height: 220px;
  }

  .gallery-section h2 {
    font-size: 21px;
  }
}
