:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #6f6b64;
  --line: #ded9cf;
  --paper: #f8f5ef;
  --warm: #d8d0c3;
  --accent: #8f1f24;
  --charcoal: #0d0d0d;
  --max: 1180px;
  --nav-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.site-nav {
  min-height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, min-height .35s ease, backdrop-filter .35s ease;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition: color .35s ease, opacity .35s ease, transform .35s ease;
}

.navbar-brand span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
}

.navbar-brand small {
  color: rgba(255, 255, 255, .78);
  font-family: Inter, system-ui, sans-serif;
  font-size: .72rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, .88);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  margin-left: 1.8rem;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
  transition: color .35s ease, text-shadow .35s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: #fff;
}

.site-nav.is-scrolled,
.site-nav.nav-open {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(16, 16, 16, .08);
  backdrop-filter: blur(14px);
}

.site-nav.is-scrolled .navbar-brand,
.site-nav.nav-open .navbar-brand {
  color: var(--ink);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.site-nav.is-scrolled .navbar-brand small,
.site-nav.nav-open .navbar-brand small {
  color: var(--muted);
}

.site-nav.is-scrolled .nav-link,
.site-nav.nav-open .nav-link {
  color: #64615c;
  text-shadow: none;
}

.site-nav.is-scrolled .nav-link:hover,
.site-nav.is-scrolled .nav-link:focus,
.site-nav.nav-open .nav-link:hover,
.site-nav.nav-open .nav-link:focus {
  color: var(--accent);
}

.hero {
  height: 100vh;
  min-height: 520px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-slideshow,
.hero-frame,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-frame {
  background-position: center;
  background-size: cover;
  filter: grayscale(1);
  opacity: 0;
  transform: scale(1.16);
  animation: heroBurns 28s linear infinite;
}

.hero-frame:nth-child(2) {
  animation-delay: 7s;
}

.hero-frame:nth-child(3) {
  animation-delay: 14s;
}

.hero-frame:nth-child(4) {
  animation-delay: 21s;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 42%),
    rgba(22, 22, 22, .26);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  max-width: none;
  padding-bottom: clamp(2.3rem, 6vh, 4.25rem);
  color: #fff;
}

.eyebrow {
  margin-bottom: 1rem;
  color: #efe6d8;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
.section-heading h2,
.intro-section h2,
.portrait-panel h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.45rem, 5.2vw, 5.4rem);
  font-weight: 400;
  letter-spacing: .045em;
  overflow-wrap: break-word;
}

.hero-copy {
  max-width: 660px;
  margin: .9rem 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.85rem, 1.35vw, 1.15rem);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.btn {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
}

.intro-section,
.section-pad {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.intro-section {
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 1120px;
  margin: 0 auto;
}

.intro-section h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 5.8rem);
  max-width: 1060px;
}

.lead {
  color: #3d3934;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 300;
}

.bg-soft {
  background: var(--paper);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6rem);
}

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

.exhibition-item {
  display: grid;
  grid-template-columns: minmax(130px, 42%) 1fr;
  min-height: 230px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(16, 16, 16, .06);
}

.exhibition-item .image-button {
  height: 100%;
  min-height: 230px;
  background: #efebe4;
}

.image-button,
.gallery-item,
.footer-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.image-button {
  overflow: hidden;
}

.image-button img {
  width: 100%;
  height: 100%;
  filter: grayscale(1);
  transform: scale(1);
  transition: filter .4s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

.image-button img {
  padding: .9rem;
  object-fit: contain;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.image-button:hover img,
.image-button:focus-visible img {
  filter: grayscale(.1);
  transform: scale(1.08);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
}

.exhibition-item div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.exhibition-item h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 700;
}

.exhibition-item p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  margin-top: 1rem;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.read-more-link span {
  transition: transform .2s ease;
}

.read-more-link:hover,
.read-more-link:focus-visible {
  color: var(--accent);
}

.read-more-link:hover span,
.read-more-link:focus-visible span {
  transform: translateX(.25rem);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 2rem;
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem 1.05rem;
  background: #fff;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  height: auto;
  min-height: 220px;
}

.gallery-item.is-hidden {
  display: none;
}

.about-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.portrait-panel {
  position: sticky;
  top: 6rem;
  background: #e8e1d7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .15);
  text-align: center;
}

.portrait-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  filter: grayscale(1);
}

.portrait {
  width: 180px;
  height: 180px;
  margin: -90px auto 1.4rem;
  border: 10px solid #e8e1d7;
  object-fit: cover;
  filter: grayscale(1);
}

.portrait-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.portrait-panel p {
  margin: .75rem auto 0;
  color: #514b43;
}

.social-actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin: 1.5rem 0;
}

.social-actions a {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(16, 16, 16, .18);
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.social-actions a:hover,
.social-actions a:focus-visible {
  background: var(--ink);
  color: #fff;
}

.credit {
  padding: 0 1.5rem 1.6rem;
  color: rgba(81, 75, 67, .62) !important;
  font-size: .68rem;
  font-weight: 300;
  font-style: italic;
}

.bio-accordion .accordion-item {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
}

.bio-accordion .accordion-item:first-child {
  border-top: 1px solid var(--line);
}

.bio-accordion .accordion-button {
  padding: 1.25rem 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bio-accordion .accordion-button:focus {
  box-shadow: none;
}

.bio-accordion .accordion-body {
  padding: 0 0 1.5rem;
  color: #3f3a35;
  font-size: 1.02rem;
}

.site-footer {
  padding: 2rem 0;
  background: var(--charcoal);
  color: rgba(255, 255, 255, .74);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}

.footer-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .96);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
}

.lightbox-dialog img {
  max-height: 86vh;
  width: auto;
  margin: 0 auto;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
}

.lightbox-dialog figcaption {
  margin-top: .8rem;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(16, 16, 16, .2);
  background: #fff;
  color: var(--ink);
}

#tarteaucitronRoot,
#tarteaucitronAlertBig {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

#tarteaucitronAlertBig {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding-inline: .75rem !important;
}

#tarteaucitronAlertBig button {
  max-width: 100% !important;
  white-space: normal !important;
}

#tarteaucitronIcon {
  filter: grayscale(1) saturate(0) brightness(.72) contrast(1.25) !important;
  opacity: .78 !important;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease !important;
}

#tarteaucitronIcon:hover,
#tarteaucitronIcon:focus-within {
  filter: grayscale(1) saturate(0) brightness(.95) contrast(1.2) !important;
  opacity: 1 !important;
  transform: translateY(-1px);
}

@keyframes heroBurns {
  0% {
    opacity: 0;
    transform: scale(1.16);
  }
  4%,
  25% {
    opacity: 1;
  }
  30%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 1199px) {
  .masonry-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  :root {
    --nav-height: 78px;
  }

  .navbar-brand {
    gap: .1rem;
  }

  .site-nav .nav-link {
    margin-left: 0;
  }

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

  .portrait-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-height: 72px;
  }

  .hero,
  .hero-content {
    height: 100svh;
    min-height: 460px;
  }

  h1 {
    font-size: clamp(2.1rem, 8.5vw, 3.1rem);
    letter-spacing: .025em;
  }

  .hero-content {
    padding-bottom: 2.2rem;
  }

  .hero-copy {
    font-size: .72rem;
    letter-spacing: .2em;
  }

  .navbar-brand span {
    font-size: 1.18rem;
  }

  .navbar-brand small {
    font-size: .56rem;
  }

  .exhibition-item {
    grid-template-columns: 1fr;
  }

  .exhibition-item .image-button {
    aspect-ratio: 16 / 11;
    min-height: 0;
  }

  .masonry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .gallery-item {
    margin: 0;
  }

  .gallery-item img {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .masonry-gallery {
    grid-template-columns: 1fr;
  }

  .navbar-brand span {
    font-size: .85rem;
  }
}

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