:root {
  --ink: #142c2b;
  --ink-soft: #445754;
  --paper: #f4f0e8;
  --paper-light: #fbfaf6;
  --mint: #cfe4dc;
  --coral: #e96d54;
  --line: rgba(20, 44, 43, 0.18);
  --shell: min(1380px, calc(100% - 96px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper-light);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px max(48px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(18px);
}

.back-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.back-link > span:first-child {
  font-size: 18px;
  transition: transform 180ms ease;
}

.back-link:hover > span:first-child {
  transform: translateX(-4px);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 14px;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.language-toggle {
  justify-self: end;
  min-width: 54px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-light);
  color: var(--ink);
  cursor: pointer;
}

.language-toggle:hover {
  border-color: var(--ink);
  background: var(--mint);
}

.language-flag {
  display: block;
  width: 28px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 44, 43, 0.1);
  object-fit: cover;
}

main,
.gallery-footer {
  width: var(--shell);
  margin-inline: auto;
}

.gallery-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px 80px;
  align-items: end;
  padding-block: clamp(58px, 7vw, 96px) clamp(42px, 5vw, 68px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  width: 38px;
  height: 1px;
  background: currentColor;
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(55px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.gallery-intro > p {
  max-width: 510px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 18px;
}

.temporary-note {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding-bottom: clamp(68px, 8vw, 110px);
}

.gallery-tile {
  position: relative;
  grid-column: span 4;
  height: 390px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--mint);
  cursor: zoom-in;
}

.gallery-tile--wide {
  grid-column: span 8;
}

.gallery-tile--half {
  grid-column: span 6;
}

.gallery-tile--full {
  grid-column: 1 / -1;
  height: clamp(440px, 68vw, 920px);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.gallery-tile img.is-contain {
  object-fit: contain;
  background: #101010;
}

.gallery-tile:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-tile span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(20, 44, 43, 0.72);
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.gallery-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.gallery-footer p {
  margin: 0;
}

.gallery-footer a:hover {
  color: var(--coral);
}

.lightbox {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #0d1a1a;
  color: white;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 68px;
  align-items: center;
}

.lightbox::backdrop {
  background: rgba(5, 14, 14, 0.9);
  backdrop-filter: blur(8px);
}

.lightbox figure {
  min-width: 0;
  margin: 0;
}

.lightbox-image {
  width: 100%;
  height: min(76vh, 780px);
  object-fit: contain;
}

.lightbox figcaption {
  min-height: 52px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  font-size: 25px;
}

.lightbox-nav {
  width: 46px;
  height: 46px;
  justify-self: center;
  font-size: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 15px;
  right: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 40px, 1380px); }
  .gallery-header { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .brand { display: none; }
  .gallery-hero { grid-template-columns: 1fr; gap: 28px; }
  .gallery-tile,
  .gallery-tile--wide,
  .gallery-tile--half { grid-column: span 6; height: 340px; }
  .gallery-tile--full { grid-column: 1 / -1; height: min(78vw, 720px); }
}

@media (max-width: 600px) {
  :root { --shell: calc(100% - 28px); }
  .gallery-header { min-height: 74px; padding-inline: 14px; gap: 10px; }
  .back-link { font-size: 9px; letter-spacing: 0.08em; }
  .language-toggle { min-width: 52px; min-height: 40px; padding-inline: 10px; }
  .gallery-hero { padding-block: 44px 36px; }
  h1 { font-size: clamp(48px, 15vw, 70px); }
  .gallery-tile,
  .gallery-tile--wide,
  .gallery-tile--half { grid-column: 1 / -1; height: 300px; }
  .gallery-tile--full { grid-column: 1 / -1; height: min(92vw, 520px); }
  .gallery-footer { min-height: 130px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
  .lightbox { width: calc(100% - 18px); }
  .lightbox[open] { grid-template-columns: 48px minmax(0, 1fr) 48px; }
  .lightbox-image { height: min(70vh, 650px); }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-counter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
