/* Standalone work-process gallery. */
html {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html {
    overflow-x: clip;
  }
}

.gallery-page {
  --gallery-night: #111715;
  --gallery-night-soft: #171e1b;
  --gallery-cream: #ece8df;
  --gallery-stone: #c9c2b7;
  --gallery-ink: #1b2425;
  --gallery-orange: #cc6a3a;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--gallery-night);
  color: var(--gallery-cream);
}

@supports (overflow: clip) {
  .gallery-page {
    overflow-x: clip;
  }
}

.gallery-page main {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.gallery-page.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-page img {
  max-width: 100%;
}

.gallery-page button {
  font: inherit;
}

.gallery-overview a:focus-visible,
.gallery-section--cream a:focus-visible,
.gallery-section--stone a:focus-visible,
.gallery-contact a:focus-visible {
  outline-color: #151b1a;
}

.gallery-header {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  padding: 0 max(4vw, 48px);
  color: var(--gallery-cream);
}

.gallery-header::after {
  content: "";
  position: absolute;
  right: max(4vw, 48px);
  bottom: 0;
  left: max(4vw, 48px);
  height: 1px;
  background: rgba(236, 232, 223, 0.24);
}

.gallery-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}

.gallery-brand__mark {
  width: 27px;
  height: 24px;
  margin-right: 8px;
  fill: currentColor;
}

.gallery-brand__name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.gallery-brand__divider {
  width: 1px;
  height: 23px;
  margin: 0 16px 0 20px;
  background: rgba(236, 232, 223, 0.24);
}

.gallery-brand__role {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: 0.18em;
  color: rgba(236, 232, 223, 0.68);
}

.gallery-header__nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 42px);
  transform: translateX(-50%);
}

.gallery-header__nav a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.055em;
  color: rgba(236, 232, 223, 0.76);
  transition: color 180ms ease;
}

.gallery-header__nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--gallery-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease-out);
}

.gallery-header__nav a:hover,
.gallery-header__nav a[aria-current="page"] {
  color: var(--gallery-cream);
}

.gallery-header__nav a:hover::after,
.gallery-header__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.gallery-header__cta {
  width: 172px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  border-bottom: 1px solid rgba(236, 232, 223, 0.46);
  font-size: 11px;
  letter-spacing: 0.045em;
  transition: border-color 180ms ease;
}

.gallery-header__cta:hover {
  border-color: var(--gallery-cream);
}

.gallery-menu-button,
.gallery-mobile-nav {
  display: none;
}

.gallery-hero {
  position: relative;
  isolation: isolate;
  min-height: max(650px, 100svh);
  overflow: hidden;
  background: #202723;
}

.gallery-hero__image,
.gallery-hero__shade,
.gallery-hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gallery-hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.7) contrast(1.07) brightness(0.75);
  transform: scale(1.015);
  animation: gallery-hero-in 900ms var(--ease-out) both;
}

.gallery-hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 13, 12, 0.84) 0%, rgba(8, 14, 13, 0.38) 44%, rgba(8, 14, 13, 0.05) 76%),
    linear-gradient(180deg, rgba(7, 13, 12, 0.24) 0%, transparent 48%, rgba(7, 13, 12, 0.62) 100%);
}

.gallery-hero__grid {
  z-index: -1;
  opacity: 0.32;
  background:
    linear-gradient(90deg, transparent calc(25% - 0.5px), rgba(236, 232, 223, 0.16) 25%, transparent calc(25% + 0.5px)),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(236, 232, 223, 0.12) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(90deg, transparent calc(75% - 0.5px), rgba(236, 232, 223, 0.16) 75%, transparent calc(75% + 0.5px));
  pointer-events: none;
}

.gallery-hero__copy {
  position: absolute;
  z-index: 2;
  top: clamp(150px, 19vh, 210px);
  left: max(4vw, 48px);
  width: min(900px, calc(92vw - 96px));
}

.gallery-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.14em;
  color: var(--gallery-orange);
}

.gallery-hero h1 {
  max-width: 980px;
  margin: 22px 0 0;
  font-size: clamp(62px, 6.6vw, 112px);
  line-height: 0.83;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.gallery-hero h1 span {
  display: block;
  animation: gallery-copy-in 520ms var(--ease-out) both;
}

.gallery-hero h1 span:nth-child(1) { animation-delay: 100ms; }
.gallery-hero h1 span:nth-child(2) { animation-delay: 170ms; }
.gallery-hero h1 span:nth-child(3) { animation-delay: 240ms; }

.gallery-hero__lead {
  max-width: 470px;
  margin: 29px 0 0;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.45;
  color: rgba(236, 232, 223, 0.78);
}

.gallery-hero__link {
  width: min(100%, 310px);
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 31px;
  padding: 0 16px;
  border: 1px solid rgba(236, 232, 223, 0.52);
  font-size: 12px;
  letter-spacing: 0.035em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.gallery-hero__link:hover {
  border-color: var(--gallery-orange);
  background: var(--gallery-orange);
  color: var(--gallery-night);
}

.gallery-hero__meta {
  position: absolute;
  z-index: 2;
  right: max(4vw, 48px);
  bottom: 26px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  color: rgba(236, 232, 223, 0.66);
}

.gallery-hero__meta i {
  width: 58px;
  height: 1px;
  margin: 0 11px;
  background: rgba(236, 232, 223, 0.5);
}

.gallery-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(70px, 10vw, 180px);
  padding: clamp(90px, 11vw, 176px) max(4vw, 48px);
  background: var(--gallery-cream);
  color: var(--gallery-ink);
}

.gallery-overview > *,
.gallery-overview__copy {
  min-width: 0;
  max-width: 100%;
}

.gallery-overview__copy h2 {
  margin: 22px 0 0;
  font-size: clamp(64px, 7vw, 118px);
  line-height: 0.84;
  font-weight: 400;
  letter-spacing: -0.065em;
}

.gallery-overview .gallery-eyebrow,
.gallery-section--cream .gallery-eyebrow,
.gallery-section--stone .gallery-eyebrow {
  color: #79300f;
}

.gallery-overview__copy > p:last-child {
  max-width: 560px;
  margin: 36px 0 0;
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
  color: rgba(27, 36, 37, 0.72);
}

.gallery-chapters {
  align-self: end;
  border-top: 1px solid rgba(27, 36, 37, 0.28);
}

.gallery-chapters a {
  min-height: 78px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid rgba(27, 36, 37, 0.28);
  transition: padding-left 180ms var(--ease-out), color 180ms ease;
}

.gallery-chapters a:hover {
  padding-left: 7px;
  color: var(--rust-dark);
}

.gallery-chapters span,
.gallery-chapters small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.gallery-chapters span {
  color: var(--rust-dark);
}

.gallery-chapters strong {
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
}

.gallery-chapters small {
  color: rgba(27, 36, 37, 0.72);
}

.gallery-section {
  --section-bg: #171e1b;
  --section-ink: #ece8df;
  --section-muted: rgba(236, 232, 223, 0.68);
  --section-line: rgba(236, 232, 223, 0.22);
  padding: 30px max(4vw, 48px) clamp(90px, 9vw, 152px);
  background: var(--section-bg);
  color: var(--section-ink);
  scroll-margin-top: 0;
}

.gallery-section--cream {
  --section-bg: #ddd7cc;
  --section-ink: #1b2425;
  --section-muted: rgba(27, 36, 37, 0.68);
  --section-line: rgba(27, 36, 37, 0.24);
}

.gallery-section--stone {
  --section-bg: #c4bdb2;
  --section-ink: #192223;
  --section-muted: rgba(25, 34, 35, 0.75);
  --section-line: rgba(25, 34, 35, 0.24);
}

.gallery-section--dark {
  --section-bg: #0e1413;
}

.gallery-section__header {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr) auto;
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding: 24px 0 36px;
  border-top: 1px solid var(--section-line);
  border-bottom: 1px solid var(--section-line);
}

.gallery-section__header h2 {
  margin: 17px 0 0;
  font-size: clamp(52px, 5.3vw, 90px);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.06em;
}

.gallery-section__header > p {
  max-width: 460px;
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  color: var(--section-muted);
}

.gallery-section__header > span {
  align-self: end;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--section-muted);
}

.gallery-grid {
  columns: 4 260px;
  column-gap: 12px;
  padding-top: 12px;
}

.gallery-grid--feature {
  columns: 3 320px;
}

.gallery-card {
  width: 100%;
  display: inline-block;
  break-inside: avoid;
  margin: 0 0 20px;
  vertical-align: top;
}

.gallery-card__link {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(127, 127, 127, 0.18);
}

.gallery-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 180ms ease;
}

.gallery-card__link:hover::after,
.gallery-card__link:focus-visible::after {
  border-color: var(--gallery-orange);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 360ms var(--ease-out), filter 250ms ease;
}

.gallery-card__link:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.015);
}

.gallery-card__open {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 232, 223, 0.6);
  background: rgba(15, 21, 20, 0.7);
  color: var(--gallery-cream);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

.gallery-card__link:hover .gallery-card__open,
.gallery-card__link:focus-visible .gallery-card__open {
  opacity: 1;
  transform: none;
}

.gallery-card figcaption {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--section-line);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.07em;
  color: var(--section-muted);
}

.gallery-contact {
  position: relative;
  min-height: min(80svh, 780px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 10vw, 170px) max(4vw, 48px);
  overflow: hidden;
  background: var(--gallery-orange);
  color: #151b1a;
}

.gallery-contact::after {
  content: "→";
  position: absolute;
  right: -0.04em;
  bottom: -0.32em;
  font-size: min(56vw, 760px);
  line-height: 1;
  color: rgba(21, 27, 26, 0.08);
  pointer-events: none;
}

.gallery-contact .gallery-eyebrow {
  color: #111715;
}

.gallery-contact h2 {
  position: relative;
  z-index: 1;
  margin: 22px 0 0;
  font-size: clamp(72px, 9vw, 150px);
  line-height: 0.82;
  font-weight: 400;
  letter-spacing: -0.07em;
}

.gallery-contact > a {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding: 0 18px;
  border: 1px solid rgba(21, 27, 26, 0.48);
  font-size: 13px;
  transition: background-color 180ms ease, color 180ms ease;
}

.gallery-contact > a:hover {
  background: #151b1a;
  color: var(--gallery-cream);
}

.gallery-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 12, 11, 0.98);
  color: var(--gallery-cream);
}

.gallery-lightbox::backdrop {
  background: rgba(8, 12, 11, 0.94);
}

.gallery-lightbox[open] {
  animation: gallery-lightbox-in 180ms ease both;
}

.gallery-lightbox__panel {
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr);
  padding: 0 max(18px, 2vw) max(18px, 2vw);
}

.gallery-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(236, 232, 223, 0.2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(236, 232, 223, 0.7);
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
  border: 1px solid rgba(236, 232, 223, 0.3);
  background: transparent;
  color: var(--gallery-cream);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__arrow:hover {
  border-color: var(--gallery-cream);
  background: var(--gallery-cream);
  color: var(--gallery-night);
}

.gallery-lightbox__close {
  width: 48px;
  height: 48px;
  font-size: 31px;
  line-height: 1;
}

.gallery-lightbox__stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 22px;
  align-items: center;
  padding-top: 20px;
  touch-action: pan-y;
}

.gallery-lightbox__arrow {
  width: 54px;
  height: 54px;
  font-size: 20px;
}

.gallery-lightbox__stage figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 38px;
  align-items: center;
  margin: 0;
}

.gallery-lightbox__stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery-lightbox__stage figcaption {
  display: flex;
  align-items: end;
  justify-content: center;
  padding-top: 8px;
  font-size: 12px;
  color: rgba(236, 232, 223, 0.72);
  text-align: center;
}

@keyframes gallery-hero-in {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes gallery-copy-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes gallery-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .gallery-brand__divider,
  .gallery-brand__role {
    display: none;
  }

  .gallery-header__nav {
    gap: 18px;
  }

  .gallery-header__cta {
    width: 145px;
    font-size: 10px;
  }

  .gallery-page .site-footer__nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  .gallery-header {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    min-height: 54px;
    padding: 0 8px 0 12px;
    border: 1px solid rgba(236, 232, 223, 0.2);
    background: rgba(15, 22, 21, 0.74);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .gallery-header::after,
  .gallery-brand__divider,
  .gallery-brand__role,
  .gallery-header__nav,
  .gallery-header__cta {
    display: none;
  }

  .gallery-brand__mark {
    width: 21px;
    height: 19px;
  }

  .gallery-brand__name {
    font-size: 16px;
  }

  .gallery-menu-button {
    position: absolute;
    z-index: 51;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gallery-cream);
    cursor: pointer;
  }

  .gallery-menu-button span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .gallery-menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .gallery-menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .gallery-mobile-nav {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(96px + env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    background:
      linear-gradient(135deg, rgba(204, 106, 58, 0.08), transparent 36%),
      rgba(15, 21, 20, 0.99);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .gallery-mobile-nav::before {
    content: "BUILDCORE / MENU";
    display: block;
    margin-bottom: 28px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(236, 232, 223, 0.56);
  }

  .gallery-mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.gallery-menu-open {
    overflow: hidden;
  }

  .gallery-mobile-nav a {
    min-height: 58px;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(236, 232, 223, 0.18);
    font-size: clamp(26px, 8vw, 35px);
    letter-spacing: -0.035em;
    color: rgba(236, 232, 223, 0.9);
  }

  .gallery-mobile-nav a[aria-current="page"] {
    color: #d98a62;
  }

  .gallery-mobile-nav a:last-child {
    min-height: 54px;
    justify-content: space-between;
    margin-top: 24px;
    padding: 0 16px;
    border: 0;
    background: var(--gallery-orange);
    color: #151b1a;
    font-size: 16px;
    font-weight: 500;
  }

  .gallery-mobile-nav a:last-child::after {
    content: "→";
  }

  .gallery-hero {
    min-height: max(620px, 100svh);
  }

  .gallery-hero__copy {
    top: auto;
    bottom: max(34px, env(safe-area-inset-bottom));
    left: 18px;
    width: calc(100% - 36px);
  }

  .gallery-hero h1 {
    margin-top: 17px;
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 78px);
    line-height: 0.86;
  }

  .gallery-hero__lead {
    max-width: 38ch;
    margin-top: 23px;
    font-size: 16px;
  }

  .gallery-hero__link {
    min-height: 50px;
    margin-top: 23px;
  }

  .gallery-hero__meta {
    display: none;
  }

  .gallery-hero__image {
    object-position: 62% center;
  }

  .gallery-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 62px;
    padding: 82px 18px;
  }

  .gallery-overview__copy h2 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(30px, 9.5vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .gallery-section {
    padding: 18px 18px 78px;
  }

  .gallery-section__header {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 32px 18px;
    padding: 20px 0 30px;
  }

  .gallery-section__header > p {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 48ch;
  }

  .gallery-section__header > span {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-section__header h2 {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 74px);
  }

  .gallery-grid,
  .gallery-grid--feature {
    columns: 3 210px;
    column-gap: 10px;
  }

  .gallery-card {
    margin-bottom: 16px;
  }

  .gallery-contact {
    min-height: 620px;
    padding: 90px 18px;
  }

  .gallery-contact h2 {
    max-width: 100%;
    font-size: clamp(38px, 11.5vw, 90px);
  }
}

@media (max-width: 620px) {
  .gallery-hero__grid {
    background:
      linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(236, 232, 223, 0.14) 50%, transparent calc(50% + 0.5px));
  }

  .gallery-hero h1 {
    font-size: clamp(38px, 11.5vw, 68px);
  }

  .gallery-hero__lead {
    max-width: 31ch;
    font-size: 15px;
  }

  .gallery-overview {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .gallery-overview__copy h2 {
    font-size: clamp(30px, 9.5vw, 60px);
  }

  .gallery-chapters a {
    min-height: 72px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .gallery-chapters strong {
    font-size: 14px;
  }

  .gallery-chapters small {
    font-size: 8px;
  }

  .gallery-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .gallery-section__header {
    margin-right: 6px;
    margin-left: 6px;
  }

  .gallery-section__header h2 {
    font-size: clamp(38px, 11.5vw, 66px);
  }

  .gallery-grid,
  .gallery-grid--feature {
    columns: 2 138px;
    column-gap: 8px;
    padding-top: 8px;
  }

  .gallery-card {
    margin-bottom: 12px;
  }

  .gallery-card figcaption {
    min-height: 26px;
    padding-top: 6px;
    font-size: 7px;
  }

  .gallery-card figcaption span:first-child {
    display: none;
  }

  .gallery-card__open {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
    opacity: 1;
    transform: none;
  }

  .gallery-contact {
    min-height: 560px;
  }

  .gallery-contact h2 {
    font-size: clamp(38px, 11.5vw, 72px);
  }

  .gallery-lightbox__panel {
    grid-template-rows: 62px minmax(0, 1fr);
    padding: 0 12px 12px;
  }

  .gallery-lightbox__close {
    width: 44px;
    height: 44px;
  }

  .gallery-lightbox__stage {
    position: relative;
    display: block;
    padding: 14px 0 72px;
  }

  .gallery-lightbox__stage figure {
    height: 100%;
    grid-template-rows: minmax(0, 1fr) 46px;
  }

  .gallery-lightbox__arrow {
    position: absolute;
    z-index: 2;
    bottom: 4px;
    width: 48px;
    height: 48px;
  }

  .gallery-lightbox__arrow--prev {
    left: 0;
  }

  .gallery-lightbox__arrow--next {
    right: 0;
  }

  .gallery-lightbox__stage figcaption {
    padding-right: 58px;
    padding-left: 58px;
    font-size: 10px;
  }
}

@media (max-height: 700px) and (max-width: 820px) and (orientation: landscape) {
  .gallery-mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 0 20px;
    padding: 72px 20px 18px;
  }

  .gallery-mobile-nav::before {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }

  .gallery-mobile-nav a {
    min-height: 46px;
    font-size: clamp(20px, 4vw, 28px);
  }

  .gallery-mobile-nav a:last-child {
    min-height: 46px;
    margin-top: 10px;
    font-size: 14px;
  }
}

@media (max-height: 700px) and (max-width: 820px) {
  .gallery-hero__lead {
    display: none;
  }

  .gallery-hero__link {
    margin-top: 18px;
  }

  .gallery-hero h1 {
    font-size: clamp(43px, 11.5vw, 62px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-page {
    scroll-behavior: auto;
  }

  .gallery-page *,
  .gallery-page *::before,
  .gallery-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
