.mortis-gallery {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -15%, rgba(142, 182, 198, .12), transparent 36rem),
    linear-gradient(180deg, #07090d 0%, var(--ground) 36rem);
}

.gallery-masthead {
  min-height: min(78rem, 88svh);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-content: space-between;
  background:
    linear-gradient(90deg, rgba(4, 5, 8, .94), rgba(4, 5, 8, .3) 58%, rgba(4, 5, 8, .82)),
    radial-gradient(circle at 82% 24%, rgba(142, 182, 198, .2), transparent 23rem),
    radial-gradient(circle at 18% 77%, rgba(210, 170, 98, .16), transparent 28rem),
    linear-gradient(135deg, #050609 0%, #0d1119 55%, #050609 100%);
}

.gallery-masthead::before,
.gallery-masthead::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.gallery-masthead::before {
  content: "M";
  right: -.04em;
  bottom: -.32em;
  color: rgba(243, 239, 231, .025);
  font-family: var(--mortis-gothic);
  font-size: min(70vw, 64rem);
  line-height: 1;
}

.gallery-masthead::after {
  content: "";
  width: min(52rem, 76vw);
  aspect-ratio: 1;
  right: -23rem;
  top: -28rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 6rem rgba(255, 255, 255, .012),
    0 0 0 12rem rgba(255, 255, 255, .008);
}

.gallery-topbar {
  grid-column: 1 / -1;
  align-self: start;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.gallery-topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(.8rem, 2vw, 1.8rem);
}

.gallery-topbar-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}

.gallery-topbar-links a:hover {
  color: var(--ink);
}

.gallery-topbar-links .gallery-home-link {
  padding: .65rem 1rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: var(--ink);
}

.gallery-topbar-links .gallery-home-link:hover {
  border-color: var(--accent);
  background: rgba(210, 170, 98, .08);
}

.gallery-masthead h1 {
  max-width: 8.5ch;
  font-family: var(--mortis-gothic);
  font-size: clamp(5rem, 12vw, 13rem);
  line-height: .68;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.gallery-masthead h1 span {
  color: var(--accent);
}

.gallery-masthead .eyebrow {
  margin-bottom: 1.25rem;
}

.gallery-masthead .proof-note {
  max-width: 44ch;
  color: #d1cdc5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.gallery-masthead .page-link {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(5, 6, 9, .58);
  backdrop-filter: blur(10px);
}

.gallery-masthead .page-link:hover {
  border-color: var(--accent);
  background: rgba(210, 170, 98, .09);
}

.mortis-gallery .work-nav {
  gap: .6rem;
  padding-block: .85rem;
  border-color: rgba(210, 170, 98, .18);
  background: color-mix(in srgb, #06080c 92%, transparent);
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .2);
}

.mortis-gallery .work-nav button {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .015);
  color: #bbb7b0;
}

.mortis-gallery .work-nav button:hover {
  color: var(--ink);
  border-color: rgba(210, 170, 98, .56);
  background: rgba(210, 170, 98, .06);
}

.mortis-gallery .work-nav button[aria-current="page"] {
  color: #07090d;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 1.6rem rgba(210, 170, 98, .18);
}

.mortis-gallery .work-shell {
  position: relative;
}

.mortis-gallery .work-shell::before {
  content: attr(data-presentation-enhanced);
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  z-index: -1;
  max-width: 12ch;
  overflow: hidden;
  color: rgba(243, 239, 231, .018);
  font-family: var(--mortis-gothic);
  font-size: clamp(7rem, 18vw, 18rem);
  line-height: .75;
  text-transform: capitalize;
  pointer-events: none;
}

.mortis-gallery .work-heading {
  padding-top: clamp(2.5rem, 6vw, 6rem);
}

.mortis-gallery .work-heading h2,
.mortis-gallery .archive-heading h2,
.mortis-gallery .image-led-shell .image-led-heading h2 {
  font-family: var(--mortis-gothic);
  font-weight: 700;
  letter-spacing: -.015em;
}

.mortis-gallery .work-heading h2,
.mortis-gallery .archive-heading h2 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 8vw, 8.4rem);
  line-height: .8;
}

.mortis-gallery .image-led-shell .image-led-heading h2 {
  line-height: .69;
  letter-spacing: -.02em;
}

.mortis-gallery .metadata div {
  border-color: rgba(210, 170, 98, .22);
}

.mortis-gallery .metadata dt {
  color: var(--accent);
}

.mortis-gallery .hero,
.mortis-gallery .archive-card figure {
  border-color: rgba(210, 170, 98, .22);
  background:
    radial-gradient(circle at 50% 45%, rgba(142, 182, 198, .1), transparent 25rem),
    radial-gradient(circle at 50% 55%, rgba(210, 170, 98, .055), transparent 35rem),
    #03050a;
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, .28),
    inset 0 0 5rem rgba(255, 255, 255, .012);
}

.mortis-gallery .hero img,
.mortis-gallery .archive-card img,
.mortis-gallery .supporting img {
  filter: drop-shadow(0 2.3rem 3.5rem rgba(0, 0, 0, .46));
}

.mortis-gallery .hero figcaption {
  border-color: rgba(210, 170, 98, .18);
  background: rgba(5, 6, 9, .7);
}

.mortis-gallery .copy-grid {
  position: relative;
}

.mortis-gallery .copy-grid::before {
  content: "From the canvas";
  position: absolute;
  left: 0;
  top: 1.3rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.mortis-gallery .copy-grid h3,
.mortis-gallery .supporting h3,
.mortis-gallery .archive-card h3 {
  color: var(--ink);
}

.mortis-gallery details,
.mortis-gallery .supporting,
.mortis-gallery .archive-card,
.mortis-gallery .work-switcher {
  border-color: rgba(210, 170, 98, .18);
}

.mortis-gallery summary:hover {
  color: var(--accent);
}

.mortis-gallery .supporting {
  position: relative;
}

.mortis-gallery .supporting-group {
  border-top: 1px solid rgba(210, 170, 98, .18);
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.mortis-gallery .supporting-group-header {
  max-width: 56rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.mortis-gallery .supporting-group-header h3 {
  margin: .35rem 0 0;
  color: var(--ink);
  font-family: var(--mortis-gothic);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.015em;
}

.mortis-gallery .supporting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.mortis-gallery .supporting-grid .supporting {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
  padding: 0;
  border-top: 0;
}

.mortis-gallery .supporting-grid .supporting figure {
  order: -1;
  min-height: clamp(20rem, 32vw, 32rem);
  margin: 0;
  padding: clamp(.75rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  border: 1px solid rgba(210, 170, 98, .2);
  background:
    radial-gradient(circle at 50% 45%, rgba(142, 182, 198, .08), transparent 18rem),
    #03050a;
}

.mortis-gallery .supporting-grid .supporting img {
  width: auto;
  max-width: 100%;
  max-height: 30rem;
  object-fit: contain;
}

.mortis-gallery .supporting-grid .supporting h3 {
  margin: 0 0 .8rem;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
}

.mortis-gallery .supporting-details {
  margin: -.35rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}

.mortis-gallery .supporting-group .supporting-description {
  display: none;
}

.mortis-gallery .editorial-card {
  border-color: rgba(210, 170, 98, .24);
  background:
    radial-gradient(circle at 90% 10%, rgba(210, 170, 98, .07), transparent 15rem),
    #10131a;
}

.mortis-gallery .work-switcher button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.mortis-gallery .work-switcher button:hover {
  color: var(--accent);
}

.gallery-footer {
  align-items: center;
  background:
    radial-gradient(circle at 10% 0%, rgba(210, 170, 98, .09), transparent 18rem),
    #06080c;
}

.gallery-footer-brand {
  display: grid;
  gap: .15rem;
}

.gallery-footer-brand strong {
  color: var(--ink);
  font-family: var(--mortis-gothic);
  font-size: 2rem;
  line-height: .9;
}

.gallery-footer-brand span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
}

.gallery-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 780px) {
  .mortis-gallery .supporting-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mortis-gallery .supporting-grid .supporting figure {
    min-height: 0;
  }
  .gallery-masthead {
    min-height: auto;
    align-content: start;
  }

  .gallery-topbar {
    align-items: flex-start;
  }

  .gallery-topbar-links {
    gap: .35rem .8rem;
  }

  .gallery-topbar-links a:not(.gallery-home-link) {
    display: none;
  }

  .gallery-masthead h1 {
    font-size: clamp(4.5rem, 23vw, 7.8rem);
  }

  .mortis-gallery .work-heading h2,
  .mortis-gallery .archive-heading h2 {
    font-size: clamp(3.5rem, 17vw, 6.6rem);
  }

  .mortis-gallery .copy-grid {
    padding-top: 5rem;
  }

  .gallery-footer {
    align-items: flex-start;
  }

  .gallery-footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-contrast: more) {
  .gallery-masthead,
  .mortis-gallery .hero,
  .mortis-gallery .archive-card figure,
  .mortis-gallery .editorial-card,
  .gallery-footer {
    background: var(--ground);
  }
}

@media (forced-colors: active) {
  .gallery-masthead::before,
  .gallery-masthead::after,
  .mortis-gallery .work-shell::before {
    display: none;
  }
}
