/* Royal Institute of Black Curators — index-2 layout
   rioblackcurators.com */

:root {
  --white: #ffffff;
  --off-white: #f5f0ea;
  --light-gray: #e8e6e6;
  --mid-gray: #595959;
  --black: #000000;
  --orange-primary: #b85423;
  --orange-dark: #8c411b;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-fahkwang: 'Fahkwang', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --font-syne: 'Syne', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--light-gray);
  background: var(--white);
  color: var(--black);
  font-size: 2rem;
  line-height: 1;
  padding: 10px 14px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 160;
  touch-action: manipulation;
}

.nav-menu {
  margin-left: auto;
}

.nav-menu > summary {
  list-style: none;
  -webkit-tap-highlight-color: rgba(184, 84, 35, 0.15);
  user-select: none;
}

.nav-menu > summary::-webkit-details-marker {
  display: none;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Logos: true PNG/SVG transparency preferred; mix-blend-mode helps legacy white-box PNGs */
.site-logo {
  background: transparent;
  object-fit: contain;
}

img.site-logo[src$=".png"]:not([src*="transparent"]) {
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
  font-family: var(--font-poppins);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange-primary); }

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 56px;
  background: var(--white);
}

.hero-logo {
  width: 180px;
  max-width: 60vw;
  height: auto;
  margin-bottom: 28px;
  display: block;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 4vw, 22px);
  font-weight: 300;
  color: var(--mid-gray);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-mission {
  max-width: 720px;
  font-family: var(--font-fahkwang);
  font-size: clamp(1rem, 2.5vw, 18px);
  line-height: 1.75;
  color: var(--black);
  font-weight: 400;
  text-align: center;
}

/* GALLERY STRIP — fixed aspect ratio cells, images fit inside */
.gallery-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 24px 48px;
  max-width: 100%;
}

.gallery-strip .cell {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  min-height: 0;
}

.gallery-strip .cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-strip .cell:hover img { transform: scale(1.04); }

/* FEATURED EXHIBITION */
.featured-section {
  margin-top: 13px;
  background: var(--white);
}

.featured-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.featured-heading {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  color: var(--black);
  text-align: center;
}

/* THE CALL BANNER */
.call-banner {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
}

.call-banner img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* SECTIONS */
.section {
  padding: 72px clamp(16px, 5vw, 80px);
}

.section-alt {
  background: var(--off-white);
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--font-poppins);
}

.section-rule {
  width: 48px;
  height: 2px;
  background: var(--orange-primary);
  margin-bottom: 32px;
}

/* EXHIBITION DETAIL */
.exhibit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 16px;
}

.exhibit-grid-with-video {
  align-items: center;
}

.exhibit-grid-with-video .exhibit-video {
  max-width: 100%;
}

.exhibit-grid-with-video .video-placeholder {
  max-width: 100%;
}

.exhibit-card {
  border-left: 3px solid var(--orange-primary);
  padding-left: 24px;
}

.exhibit-card-name {
  font-family: var(--font-poppins);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 6px;
}

.exhibit-card-curator {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}

.exhibit-card-title {
  font-family: var(--font-syne);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--black);
  text-transform: none;
  margin-bottom: 10px;
}

.exhibit-card-title-fwts {
  margin-bottom: 1.5rem;
}

.schedule-block {
  margin-top: 24px;
  font-size: 15px;
  line-height: 2;
}

.schedule-label {
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-primary);
  display: block;
  margin-top: 12px;
  margin-bottom: 2px;
}

/* VIDEO PLACEHOLDER */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 2px;
  margin-bottom: 14px;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.video-label {
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.video-caption {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid-gray);
  text-align: left;
}

.video-caption-centered {
  text-align: center;
}

/* CURRENT EXHIBITIONS — split showcase + slider (reference layout) */
.exhibitions-showcase {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(320px, 3fr);
  align-items: stretch;
  min-height: 480px;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--light-gray);
  overflow: hidden;
}

.exhibitions-showcase-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 480px;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 32px) clamp(52px, 8vw, 72px);
  background-color: #f7f6f3;
  background-image:
    radial-gradient(ellipse 80% 60% at 18% 22%, rgba(170, 170, 170, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 82% 78%, rgba(150, 150, 150, 0.18) 0%, transparent 50%),
    linear-gradient(140deg, #ffffff 0%, #efeeea 45%, #f8f7f4 70%, #e6e4df 100%);
}

.exhibitions-showcase-headline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 18rem;
  min-height: 220px;
  margin: 0 auto;
  padding: 64px 16px 0;
}

.exhibitions-showcase-logo {
  position: absolute;
  top: -32px;
  left: -40px;
  width: 88px;
  height: auto;
  display: block;
  background: none;
  object-fit: contain;
}

.exhibitions-slide-video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.exhibitions-slide-title em {
  font-style: italic;
  font-weight: 500;
}

.exhibitions-showcase-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--black);
  margin: 0;
  max-width: 15ch;
  text-align: center;
}

.exhibitions-showcase-btn {
  display: inline-block;
  padding: 12px 32px;
  margin-top: auto;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 0.2s ease;
  align-self: center;
}

.exhibitions-showcase-btn:hover {
  background: var(--orange-primary);
}

.exhibitions-showcase-slider {
  position: relative;
  background: #111;
  min-height: 480px;
  height: 100%;
}

.exhibitions-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.exhibitions-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.exhibitions-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.exhibitions-slide-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.exhibitions-slide-media {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #1a1a1a;
}

.exhibitions-slide-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, transparent 100%);
  color: #fff;
}

.exhibitions-slide-title {
  font-family: var(--font-poppins);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.exhibitions-slide-curator {
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.exhibitions-slider-nav {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.exhibitions-slider-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.exhibitions-slider-btn:hover {
  transform: scale(1.05);
  background: #fff;
}

/* GALLERY CARDS — fixed aspect ratio, images fit inside */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 28px;
  margin-top: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1/1;
  width: 100%;
  min-height: 320px;
  max-width: 320px;
  justify-self: center;
}

a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.card-link:focus-visible {
  outline: 2px solid var(--orange-primary);
  outline-offset: 3px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  color: white;
}

.card-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
}

.card-curator {
  font-family: var(--font-poppins);
  font-size: 11px;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* TCPX */
.tcpx-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 80px;
  align-items: center;
}

.tcpx-heading {
  font-size: 38px;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 20px;
}

.tcpx-body {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mid-gray);
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  padding: 13px 32px;
  background: var(--orange-primary);
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-poppins);
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--orange-dark); }

.tcpx-img {
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: none;
  min-height: 320px;
  object-fit: contain;
  object-position: center;
  display: block;
  justify-self: center;
}

/* FEATURES / LIVING EXHIBITS */
.living-exhibits-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.living-exhibits-content .features-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.living-exhibits-content .features-list {
  margin: 0;
  max-width: none;
}

.features-intro {
  font-family: var(--font-fahkwang);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 560px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 60px;
  max-width: 560px;
  margin: 0 auto;
}

.features-list li {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mid-gray);
  padding-left: 20px;
  position: relative;
  text-align: left;
}

.features-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--orange-primary);
  font-size: 14px;
}

.living-exhibits-quote {
  margin: 0;
  padding: 0;
  border: none;
  text-align: left;
}

.living-exhibits-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  margin: 0;
}

.living-exhibits-quote p::before {
  content: open-quote;
}

.living-exhibits-quote p::after {
  content: close-quote;
}

.artist-profile-btn {
  margin-top: 20px;
  display: inline-block;
}

/* ARTIST PROFILE PAGE */
.page-artist-profile {
  background: var(--white);
}

.artist-profile-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px clamp(16px, 5vw, 40px) 72px;
}

.artist-profile-loading,
.artist-profile-error {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  color: var(--mid-gray);
  text-align: center;
  padding: 48px 0;
}

.artist-profile-header {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 36px;
}

.artist-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.artist-profile-name {
  font-family: var(--font-poppins);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.artist-exhibit-name {
  font-family: var(--font-fahkwang);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  margin-bottom: 6px;
}

.artist-exhibit-dates,
.artist-exhibit-location {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
  margin-bottom: 4px;
}

.artist-profile-bio {
  margin-bottom: 40px;
}

.artist-profile-bio p {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 16px;
}

.artist-artwork-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.artist-artwork-card {
  margin: 0;
}

.artist-artwork-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--light-gray);
}

.artist-artwork-title {
  font-family: var(--font-serif);
  font-size: 15px;
  margin-top: 12px;
  margin-bottom: 4px;
  text-align: center;
}

.artist-artwork-medium,
.artist-artwork-dimensions {
  font-family: var(--font-fahkwang);
  font-size: 13px;
  line-height: 1.5;
  color: var(--mid-gray);
  text-align: center;
  margin: 0;
}

.artist-contact-section {
  border-top: 1px solid var(--light-gray);
  padding-top: 36px;
  margin-bottom: 32px;
}

.artist-contact-title {
  font-family: var(--font-poppins);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.artist-contact-email {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  margin-bottom: 24px;
}

.artist-contact-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.artist-contact-form label,
.artist-edit-form label {
  display: grid;
  gap: 6px;
  font-family: var(--font-poppins);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.artist-contact-form input,
.artist-contact-form textarea,
.artist-edit-form input,
.artist-edit-form textarea {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 2px;
  text-transform: none;
  letter-spacing: normal;
}

.artist-profile-back {
  text-align: center;
}

.artist-login-trigger {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  padding: 10px 16px;
  border: 1px solid var(--light-gray);
  background: var(--white);
  font-family: var(--font-poppins);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.artist-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.artist-modal[hidden] {
  display: none;
}

.artist-modal-panel {
  background: var(--white);
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  position: relative;
  border-radius: 2px;
}

.artist-modal-panel--wide {
  width: min(100%, 640px);
  max-height: 90vh;
  overflow: auto;
}

.artist-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.artist-modal-title {
  font-family: var(--font-poppins);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.artist-modal-note {
  font-family: var(--font-fahkwang);
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid-gray);
  margin-bottom: 16px;
}

.artist-edit-form {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.artist-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.artist-logout-btn,
.artist-publish-btn {
  border: none;
  background: transparent;
  font-family: var(--font-poppins);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--mid-gray);
  text-decoration: underline;
}

.artist-edit-status {
  font-family: var(--font-fahkwang);
  font-size: 14px;
  color: var(--orange-primary);
  margin-top: 12px;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--white);
  padding: 52px clamp(16px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.footer-domain {
  font-size: 13px;
  color: var(--mid-gray);
  margin-top: 4px;
}

.footer-contact {
  font-family: var(--font-poppins);
  font-size: 13px;
  margin-top: 10px;
  color: var(--light-gray);
}

.footer-contact a {
  color: var(--light-gray);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--orange-primary);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--light-gray);
  text-decoration: none;
  font-family: var(--font-poppins);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--orange-primary); }

.footer-copy {
  font-size: 12px;
  color: var(--mid-gray);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  text-align: center;
  letter-spacing: 0.06em;
  font-family: var(--font-poppins);
}

/* RESPONSIVE — fit all platforms including mobile */
@media (max-width: 900px) {
  .section { padding: 52px 24px; }
  .exhibit-grid { grid-template-columns: 1fr; gap: 40px; }
  .tcpx-grid { grid-template-columns: 1fr; gap: 40px; }
  .tcpx-heading { font-size: clamp(1.5rem, 5vw, 2rem); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .gallery-strip { padding: 24px 24px; }
  .card { max-width: none; }
  nav { padding: 14px 20px; }
}

@media (max-width: 900px) {
  nav {
    position: relative;
    padding: 14px 16px;
    z-index: 200;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: relative;
    margin-left: auto;
    overflow: visible;
    isolation: isolate;
  }
  /* Closed: keep menu off-screen and non-interactive */
  .nav-menu:not([open]) .nav-links {
    display: none !important;
  }
  .nav-links {
    position: fixed;
    /* Android Chrome: clear sticky bar + status bar / notch */
    top: max(5.25rem, calc(env(safe-area-inset-top, 0px) + 4.25rem));
    right: max(12px, env(safe-area-inset-right, 0px));
    left: 12px;
    max-width: min(320px, calc(100vw - 24px - env(safe-area-inset-right, 0px)));
    margin-left: auto;
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    list-style: none;
    z-index: 2147483646;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
  }
  .nav-links li {
    display: block;
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 8px;
    font-size: 13px;
  }
  .nav-menu[open] .nav-links {
    display: flex !important;
  }
}

@media (max-width: 720px) {
  .exhibitions-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .exhibitions-showcase-copy {
    min-height: 320px;
    padding-bottom: 48px;
  }
  .exhibitions-showcase-headline {
    min-height: 180px;
    padding-top: 52px;
  }
  .exhibitions-showcase-logo {
    width: 68px;
    top: -20px;
    left: -26px;
  }
  .exhibitions-showcase-slider,
  .exhibitions-slides {
    min-height: 320px;
  }
  .exhibitions-slide-media {
    min-height: 320px;
  }
  .exhibitions-showcase-headline {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .living-exhibits-layout {
    grid-template-columns: 1fr;
  }
  .artist-artwork-grid {
    grid-template-columns: 1fr;
  }
  .artist-profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .section { padding: 32px 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; gap: 12px 0; }
  footer { padding: 32px 16px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-brand { font-size: 1.25rem; }
  .gallery-strip { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .hero { padding: 32px 16px 40px; }
  .hero-logo { width: 140px; margin-bottom: 20px; }
  .featured-heading { font-size: 1.5rem; }
  .call-banner img { width: 100%; }
}

@media (max-width: 380px) {
  nav { padding: 12px 16px; }
  .nav-logo { font-size: 0.9rem; }
  .section { padding: 24px 12px; }
  .hero { padding: 24px 12px 32px; }
  .hero-logo { width: 120px; }
}

/* CURRENT EXHIBITIONS PAGE + HOME GALLERY CTA */
.nav-links a[aria-current="page"] {
  color: var(--orange-primary);
}

.page-exhibitions-hero {
  padding-top: 32px;
  padding-bottom: 40px;
}

.exhibitions-page-title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  max-width: 640px;
}

.exhibitions-lede {
  font-family: var(--font-fahkwang);
  font-size: clamp(1rem, 2.2vw, 1.05rem);
  line-height: 1.75;
  color: var(--mid-gray);
  max-width: 640px;
  text-align: center;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 56px;
  scroll-margin-top: 5.5rem;
}

.showcase-row:last-of-type {
  margin-bottom: 0;
}

.showcase-row--flip .showcase-visual {
  order: 2;
}

.showcase-row--flip .showcase-copy {
  order: 1;
}

.showcase-visual {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--light-gray);
}

.showcase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.showcase-visual--blank {
  background: var(--light-gray);
  min-height: 200px;
}

.card-img--blank {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2e2a27 0%, #5a3f2f 55%, #7a4f37 100%);
  min-height: 100%;
}

.showcase-body {
  font-family: var(--font-fahkwang);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mid-gray);
  margin-top: 12px;
}

.exhibitions-back {
  text-align: center;
  margin-top: 48px;
}

.gallery-see-all {
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-poppins);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-see-all a {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.gallery-see-all a:hover {
  color: var(--orange-dark);
  border-bottom-color: var(--orange-dark);
}

@media (max-width: 900px) {
  .showcase-row,
  .showcase-row--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase-row--flip .showcase-visual,
  .showcase-row--flip .showcase-copy {
    order: unset;
  }
}
