:root {
  --canvas: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #ecece7;
  --ink: #1d1d1a;
  --ink-soft: #454540;
  --muted: #73736c;
  --line: #d8d8d1;
  --line-strong: #b9b9b1;
  --shadow: 0 18px 55px rgba(29, 29, 26, 0.08);
  --heading-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.lightboxOpen {
  overflow: hidden;
}

main {
  overflow: clip;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

figure,
blockquote,
p,
h1,
h2,
h3,
dl,
dd {
  margin-top: 0;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

:focus-visible {
  outline: 3px solid rgba(29, 29, 26, 0.45);
  outline-offset: 4px;
}

code {
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}

.container {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

.skipLink {
  position: fixed;
  z-index: 300;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

.skipLink:focus {
  transform: translateY(0);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--dark {
  background: var(--ink);
  color: var(--surface);
}

.button--dark:hover {
  background: #343430;
}

.button--light {
  border-color: var(--line-strong);
  background: transparent;
}

.button--light:hover {
  border-color: var(--ink);
  background: var(--surface);
}

/* Header */

.siteHeader {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 1px solid rgba(29, 29, 26, 0.1);
  background: rgba(245, 245, 242, 0.94);
  backdrop-filter: blur(16px);
}

.headerInner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
}

.brandMark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--heading-font);
  font-size: 1.2rem;
}

.brandText strong,
.brandText small {
  display: block;
}

.brandText strong {
  font-family: var(--heading-font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brandText small {
  margin-top: 0.06rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.desktopNav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.desktopNav a {
  position: relative;
  padding-block: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 650;
}

.desktopNav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--ink);
  content: "";
  transform-origin: right;
  transition: transform 160ms ease;
}

.desktopNav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobileNav {
  display: none;
  position: relative;
}

.mobileNav summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 720;
}

.mobileNav summary::-webkit-details-marker {
  display: none;
}

.mobileNav nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  min-width: 13rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mobileNav nav a {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.mobileNav nav a:last-child {
  border-bottom: 0;
}

/* Shared sections */

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section--bordered {
  border-top: 1px solid var(--line);
}

.section--soft {
  background: var(--surface-soft);
}

.sectionHeading {
  display: grid;
  max-width: 760px;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

.sectionHeading h2 {
  margin-bottom: 1rem;
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.sectionDescription {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.emptyState {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.emptyState h3 {
  margin-bottom: 0.75rem;
  font-family: var(--heading-font);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}

.emptyState p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

/* Home */

.homeHero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.homeHeroGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.homeHeroCopy h1,
.artistHeroCopy h1,
.collectionHero h1,
.notFound h1 {
  font-family: var(--heading-font);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.homeHeroCopy h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 8vw, 7.8rem);
}

.heroLead {
  max-width: 620px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.heroFacts,
.artistFacts,
.collectionFacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0;
}

.heroFacts div,
.artistFacts div,
.collectionFacts div {
  min-width: 7.5rem;
  border-left: 1px solid var(--line-strong);
  padding-inline: 1rem 2rem;
}

.heroFacts div:first-child,
.artistFacts div:first-child,
.collectionFacts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.heroFacts dt,
.artistFacts dt,
.collectionFacts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.heroFacts dd,
.artistFacts dd,
.collectionFacts dd {
  margin: 0.15rem 0 0;
  font-family: var(--heading-font);
  font-size: 1.45rem;
}

.homeHeroArtwork {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(0.7rem, 1.4vw, 1rem);
  box-shadow: var(--shadow);
}

.homeHeroArtwork img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--surface-soft);
}

.homeHeroArtwork figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.2rem 0.15rem;
}

.homeHeroArtwork figcaption strong {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  font-weight: 600;
}

.homeHeroArtwork figcaption span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Artists */

.artistGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.artistCard {
  min-width: 0;
}

.artistCard a {
  display: block;
  height: 100%;
}

.artistCard figure {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.45rem;
  aspect-ratio: 4 / 5;
  background: var(--surface-soft);
}

.artistCard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.artistCard a:hover img {
  transform: scale(1.025);
}

.artistCardBody h3 {
  margin-bottom: 0.65rem;
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.artistCardBody > p:not(.eyebrow) {
  margin-bottom: 1.25rem;
  color: var(--ink-soft);
}

.artistStats {
  display: flex;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

/* Collections */

.collectionGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.collectionCard {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.collectionCard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.collectionCard a {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.collectionCover {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
}

.collectionCover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.collectionCard:hover .collectionCover img {
  transform: scale(1.025);
}

.collectionCardBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.25rem, 2.3vw, 1.8rem);
}

.collectionCardBody h3 {
  margin-bottom: 0.65rem;
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.collectionCardBody > p:not(.eyebrow) {
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.collectionCardMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Artwork galleries */

.artworkGrid--masonry {
  columns: 3 280px;
  column-gap: clamp(0.9rem, 2vw, 1.5rem);
}

.artworkGrid--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

.artworkCard {
  width: 100%;
  break-inside: avoid;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

.artworkGrid--masonry .artworkCard {
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
}

.artworkCard figure {
  margin: 0;
}

.artworkCard img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: opacity 160ms ease, transform 220ms ease;
}

.artworkCard:hover img {
  opacity: 0.92;
  transform: translateY(-2px);
}

.artworkGrid--grid .artworkCard img {
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.artworkCard figcaption {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.7rem;
}

.artworkCard figcaption strong {
  font-family: var(--heading-font);
  font-size: 1rem;
  font-weight: 600;
}

.artworkCard figcaption span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* Artist page */

.artistHero {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.artistHeroGrid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.artistPortrait {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem;
}

.artistPortrait img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.backLink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.backLink:hover {
  color: var(--ink);
}

.artistHeroCopy h1 {
  margin-bottom: 2rem;
  font-size: clamp(4rem, 9vw, 8.5rem);
}

.artistIntro {
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.artistIntro p {
  margin-bottom: 0.8rem;
}

.artistPager,
.collectionPager {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.artistPagerGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.artistPagerGrid a {
  display: grid;
  gap: 0.3rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}

.artistPagerGrid a + a {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 4vw, 4rem);
  text-align: right;
}

.artistPagerGrid small,
.collectionPagerGrid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artistPagerGrid strong,
.collectionPagerGrid strong {
  font-family: var(--heading-font);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
}

/* Collection page */

.collectionHero {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--surface);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.collectionHeroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
}

.collectionHero h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.7rem, 9vw, 8rem);
}

.collectionLead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.collectionFacts {
  display: grid;
  gap: 1.15rem;
}

.collectionFacts div {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 0;
}

.collectionFacts div:first-child {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.collectionFacts dd {
  font-size: 1.15rem;
}

.collectionGallerySection {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.collectionPagerGrid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.collectionPagerGrid > a {
  display: grid;
  align-content: center;
  gap: 0.3rem;
  min-height: 8rem;
  padding-block: 1.75rem;
}

.collectionPagerGrid > a:last-child {
  text-align: right;
}

.collectionPagerAll {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding-inline: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Footer */

.siteFooter {
  padding-top: clamp(4rem, 8vw, 7rem);
  background: var(--ink);
  color: var(--surface);
}

.footerGrid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.footerName {
  margin-bottom: 0.8rem;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.footerGrid > div:first-child p:last-child {
  max-width: 480px;
  color: #bcbcb5;
}

.footerLabel {
  margin-bottom: 1rem;
  color: #96968f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footerGrid nav,
.footerGrid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footerGrid a {
  width: fit-content;
  color: #deded8;
  font-size: 0.9rem;
}

.footerGrid a:hover {
  color: var(--surface);
}

.footerBottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #3b3b37;
  padding-block: 1.35rem;
  color: #96968f;
  font-size: 0.72rem;
}

/* Lightbox */

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 250;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 11, 0.95);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.lightboxPanel {
  position: relative;
  width: min(100%, 1500px);
  height: min(100%, 980px);
}

.lightboxFigure {
  display: grid;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
}

.lightboxFigure > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightboxFigure figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 2rem;
  padding: 1rem 4.8rem 0.2rem;
  color: var(--surface);
}

.lightboxFigure figcaption strong {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 600;
}

.lightboxFigure figcaption p {
  margin: 0.15rem 0 0;
  color: #b8b8b1;
  font-size: 0.76rem;
}

.lightboxLinks {
  display: grid;
  gap: 0.2rem;
  text-align: right;
}

.lightboxLinks a {
  color: #d7d7d0;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.lightboxFigure figcaption > small {
  color: #a8a8a1;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.lightboxClose,
.lightboxArrow {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
}

.lightboxClose:hover,
.lightboxArrow:hover {
  background: rgba(255, 255, 255, 0.13);
}

.lightboxClose {
  top: 0;
  right: 0;
}

.lightboxArrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightboxArrow--previous {
  left: 0;
}

.lightboxArrow--next {
  right: 0;
}

/* 404 */

.notFound {
  display: grid;
  min-height: 65vh;
  place-items: center;
  padding-block: 5rem;
}

.notFoundInner {
  text-align: center;
}

.notFound h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.notFound p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 1000px) {
  .desktopNav {
    display: none;
  }

  .mobileNav {
    display: block;
  }

  .homeHeroGrid,
  .artistHeroGrid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

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

  .collectionHeroGrid {
    grid-template-columns: 1fr 280px;
  }

  .footerGrid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 3rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.5rem, 1240px);
  }

  .headerInner {
    min-height: 4.5rem;
  }

  .brandText small {
    display: none;
  }

  .homeHeroGrid,
  .artistHeroGrid,
  .collectionHeroGrid {
    grid-template-columns: 1fr;
  }

  .homeHeroCopy h1 {
    font-size: clamp(3.3rem, 16vw, 5.8rem);
  }

  .homeHeroArtwork {
    order: -1;
  }

  .homeHeroArtwork img {
    max-height: 60vh;
  }

  .artistHeroCopy h1,
  .collectionHero h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .artistPortrait {
    max-width: 520px;
  }

  .backLink {
    margin-bottom: 2.5rem;
  }

  .artistGrid,
  .collectionGrid {
    grid-template-columns: 1fr;
  }

  .artistCard figure {
    aspect-ratio: 4 / 4.8;
  }

  .artworkGrid--masonry {
    columns: 2 220px;
  }

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

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

  .collectionPagerAll {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: auto !important;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 1rem !important;
    text-align: center;
  }

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

  .footerGrid > div:first-child {
    grid-column: 1 / -1;
  }

  .lightboxFigure figcaption {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    padding: 0.85rem 0.2rem 0.1rem;
  }

  .lightboxLinks {
    display: none;
  }

  .lightboxArrow {
    top: auto;
    bottom: 0.2rem;
    transform: none;
  }

  .lightboxArrow--previous {
    left: auto;
    right: 3.5rem;
  }
}

@media (max-width: 520px) {
  .section {
    padding-block: 4.5rem;
  }

  .heroActions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .heroFacts,
  .artistFacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .heroFacts div,
  .artistFacts div {
    min-width: 0;
    padding-inline: 0.8rem;
  }

  .heroFacts div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    padding-left: 0;
  }

  .artworkGrid--masonry {
    columns: 1;
  }

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

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

  .artistPagerGrid a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

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

  .collectionPagerGrid > a:last-child {
    border-top: 1px solid var(--line);
  }

  .collectionPagerAll {
    grid-column: auto;
    grid-row: auto;
  }

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

  .footerGrid > div:first-child {
    grid-column: auto;
  }

  .footerBottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 0.5rem;
  }

  .lightboxClose,
  .lightboxArrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .lightboxFigure figcaption {
    padding-right: 6.5rem;
  }

  .lightboxFigure figcaption > small {
    display: none;
  }
}

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

/* Små samlinger står side om side i stedet for at danne en lang første kolonne. */
.artworkGrid--few {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  columns: auto;
}

.artworkGrid--few .artworkCard {
  margin-bottom: 0;
}

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

.artworkGrid--count-1 {
  grid-template-columns: minmax(0, 430px);
}

@media (max-width: 760px) {
  .artworkGrid--few,
  .artworkGrid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artworkGrid--count-1 {
    grid-template-columns: minmax(0, 430px);
  }
}

@media (max-width: 520px) {
  .artworkGrid--few,
  .artworkGrid--count-2,
  .artworkGrid--count-1 {
    grid-template-columns: 1fr;
  }
}
