@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
  color-scheme: light;
  --paper: #fcfbf8;
  --ink: #191a18;
  --muted: #898982;
  --line: #e7e6e0;
  --fuchsia: #b13d78;
  --teal: #3c8580;
  --fuchsia-wash: #f3e5ec;
  --teal-wash: #e5efec;
  --serif: 'Playfair Display', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', 'Avenir Next', Avenir, sans-serif;
  --page-pad: clamp(22px, 3.7vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; }
::selection { background: var(--fuchsia-wash); color: var(--ink); }

.skip-link { position: absolute; z-index: 100; top: -4rem; left: 1rem; padding: .75rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 1rem; }
.site-header { height: 57px; padding: 0 var(--page-pad); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 30; background: var(--paper); }
.brand { text-decoration: none; }
.brand-copy { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.menu-toggle { appearance: none; border: 0; background: transparent; padding: 8px 0 8px 8px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; }
.menu-icon { width: 17px; height: 13px; display: grid; align-content: center; gap: 4px; }
.menu-icon i { display: block; height: 1px; width: 16px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.archive-menu { position: fixed; z-index: 25; top: 101px; right: 0; width: min(490px, 100vw); max-height: calc(100dvh - 101px); overflow-y: auto; padding: clamp(25px, 4vw, 48px); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 24px 45px rgba(0,0,0,.07); }
.archive-menu:not([hidden]) { display: block; }
.menu-kicker { margin: 0 0 18px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .16em; }
.archive-link { padding: 12px 0; display: grid; grid-template-columns: 38px 1fr 20px; align-items: baseline; border-bottom: 1px solid var(--line); text-decoration: none; }
.archive-link span:first-child { color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.archive-link strong { font: 500 clamp(22px, 3vw, 31px)/1.18 var(--serif); letter-spacing: -.025em; }
.archive-link > span:last-child { color: var(--muted); text-align: right; font-size: 13px; transition: transform .18s ease; }
.archive-link:hover > span:last-child { transform: translate(3px, -3px); }
.archive-link[aria-current="page"] strong { color: var(--teal); font-style: italic; }
.menu-secondary { display: flex; justify-content: space-between; gap: 18px; padding-top: 24px; }
.menu-secondary a { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.menu-secondary a:hover { color: var(--ink); }

#main { min-height: 62vh; outline: none; }
.page-shell { padding-right: var(--page-pad); padding-left: var(--page-pad); }
.eyebrow { margin: 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .17em; }
.serif { font-family: var(--serif); }

/* The home page: an artwork archive set against a quiet wordmark. */
body.home-layout { background: var(--paper); }
body.home-layout .site-header { position: relative; inset: auto; width: 100%; height: 60px; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--paper); }
body.home-layout .archive-menu { top: 101px; }
.home-cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: max(680px, calc(100svh - 104px)); }
.home-collage { width: 100%; height: auto; min-height: max(620px, calc(100svh - 104px)); max-height: 900px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--paper); }
.home-image { display: block; min-height: 0; min-width: 0; overflow: hidden; background: #efeee9; }
.home-image:nth-child(1) { grid-column: 1; grid-row: 1; }
.home-image:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.home-image:nth-child(3) { grid-column: 1; grid-row: 2; }
.home-image:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }
.home-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.home-image:hover img { transform: scale(1.025); }
.home-identity { width: 100%; min-height: 100%; padding: clamp(28px, 3.5vw, 48px) clamp(30px, 4.2vw, 66px) 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; position: relative; }
.home-title { margin: 0; font: 500 clamp(63px, 8.3vw, 107px)/.88 var(--serif); letter-spacing: -.065em; }
.home-title span { display: block; }
.home-description { max-width: 380px; margin: 31px 0 0; color: #676761; font-size: 10px; line-height: 1.85; letter-spacing: .105em; text-transform: uppercase; }
.home-divider { width: 33px; height: 1px; margin: 26px 0 0; background: var(--teal); }
.home-tagline { max-width: 345px; margin: 15px 0 25px; color: var(--muted); font: italic 500 14px/1.6 var(--serif); }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.outline-link { min-height: 35px; padding: 0 16px; border: 1px solid #dbdad4; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.outline-link:hover { border-color: var(--fuchsia); background: var(--fuchsia); color: #fff; }
.home-bottom { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: clamp(40px, 8vh, 83px); padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.home-bottom a { color: var(--ink); text-decoration: none; }
.home-bottom a:hover { color: var(--fuchsia); text-decoration: underline; text-underline-offset: 3px; }
.home-tail { padding-top: 90px; padding-bottom: 95px; display: grid; grid-template-columns: .55fr 1.45fr; gap: 7vw; border-top: 1px solid var(--line); }
.home-tail h2 { max-width: 720px; margin: 0; font: 500 clamp(33px, 5.2vw, 67px)/1.05 var(--serif); letter-spacing: -.055em; }
.home-tail h2 em { font-weight: 500; }
.home-tail p:last-child { max-width: 480px; margin: 23px 0 0; color: #686963; font-size: 12px; line-height: 1.9; }
.home-tail .about-copy { max-width: 820px; }
.home-tail .about-copy p { max-width: 760px; margin: 0 0 20px; color: #686963; font-size: 12px; line-height: 1.85; }
.home-tail .about-copy p:last-child { margin: 0; }

/* Medium-specific archive pages. */
.collection-intro { padding-top: clamp(64px, 10vw, 122px); padding-bottom: 32px; }
.collection-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.collection-heading { margin: 20px 0 0; font: 500 clamp(63px, 11vw, 144px)/.88 var(--serif); letter-spacing: -.07em; }
.collection-count { padding-bottom: 9px; color: var(--muted); text-align: right; text-transform: uppercase; font-size: 9px; letter-spacing: .13em; white-space: nowrap; }
.collection-bottom { display: flex; justify-content: space-between; gap: 30px; align-items: end; padding: 25px 0 14px; border-bottom: 1px solid var(--line); }
.collection-description { max-width: 455px; margin: 0; color: #686963; font-size: 12px; line-height: 1.85; }
.collection-label { color: var(--muted); text-align: right; text-transform: uppercase; font-size: 8px; letter-spacing: .15em; white-space: nowrap; }
.artwork-list { padding-bottom: clamp(80px, 12vw, 155px); }
.archive-item { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr); gap: clamp(32px, 8vw, 112px); align-items: center; padding: clamp(29px, 4vw, 53px) 0; border-bottom: 1px solid var(--line); }
.archive-item:first-child { padding-top: 34px; }
.archive-item:nth-child(even) .archive-photo-link { order: 2; }
.archive-item:nth-child(even) .archive-details { order: 1; padding-left: min(2vw, 27px); }
.archive-photo-link { display: block; min-width: 0; text-decoration: none; }
.archive-photo { min-height: 240px; width: 100%; aspect-ratio: 1.14 / 1; display: block; object-fit: cover; background: #efeee9; }
.archive-item[data-category="film"] .archive-photo { aspect-ratio: 1.35 / 1; }
.archive-details { max-width: 390px; padding: 20px 0; }
.archive-number { color: var(--muted); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.archive-title { margin: 20px 0 13px; font: italic 500 clamp(30px, 4.2vw, 51px)/1.02 var(--serif); letter-spacing: -.045em; }
.archive-description { max-width: 335px; margin: 0; color: #6b6c66; font-size: 11px; line-height: 1.85; }
.archive-facts { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 17px; color: var(--muted); text-transform: uppercase; font-size: 8px; letter-spacing: .09em; }
.archive-view { margin-top: 25px; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.archive-view span { transition: transform .2s ease; }
.archive-view:hover { color: var(--fuchsia); }
.archive-view:hover span { transform: translate(3px, -3px); }
.archive-photo-wrap { position: relative; }
.archive-play { position: absolute; inset: 50% auto auto 50%; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(252,251,248,.84); transform: translate(-50%,-50%); font-size: 11px; }

/* Individual artwork details. */
.detail-page { padding-top: 35px; padding-bottom: clamp(80px, 12vw, 150px); }
.detail-back { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 36px; color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(40px, 8vw, 114px); align-items: center; }
.detail-artwork { width: 100%; max-height: min(78vh, 930px); min-height: 300px; object-fit: contain; display: block; background: #efeee9; }
.detail-copy { max-width: 425px; }
.detail-number { color: var(--muted); text-transform: uppercase; font-size: 9px; letter-spacing: .15em; }
.detail-title { margin: 22px 0 18px; font: italic 500 clamp(42px, 6vw, 75px)/.97 var(--serif); letter-spacing: -.06em; }
.detail-description { margin: 0; max-width: 380px; color: #686963; font-size: 12px; line-height: 1.9; }
.detail-rule { height: 1px; border: 0; background: var(--line); margin: 29px 0 16px; }
.detail-facts { margin: 0; }
.detail-fact { display: grid; grid-template-columns: 94px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-fact dt { color: var(--muted); text-transform: uppercase; font-size: 8px; letter-spacing: .13em; }
.detail-fact dd { margin: 0; font-size: 10px; }
.detail-contact { margin-top: 25px; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .15em; }
.detail-contact:hover, .related-topline a:hover, .signoff-link:hover { color: var(--fuchsia); }
.related-section { margin-top: clamp(75px, 9vw, 120px); padding-top: 18px; border-top: 1px solid var(--line); }
.related-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; }
.related-topline h2 { margin: 0; font: 500 clamp(31px, 4vw, 45px)/1.1 var(--serif); letter-spacing: -.04em; }
.related-topline a { text-decoration: none; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.related-section .archive-item { border-bottom: 0; padding: 0; gap: 26px; }
.related-section .archive-item:nth-child(even) .archive-photo-link { order: 0; }
.related-section .archive-item:nth-child(even) .archive-details { order: 0; }
.related-section .archive-item .archive-details { padding: 10px 0; }
.related-section .archive-item .archive-photo { aspect-ratio: 1.25/1; }

/* Quiet archive sign-off, used on interior pages. */
.archive-signoff { padding: clamp(43px, 7vw, 76px) var(--page-pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.signoff-title { margin: 12px 0 0; font: 500 clamp(34px, 5.2vw, 64px)/1.02 var(--serif); letter-spacing: -.055em; }
.signoff-title em { font-weight: 500; }
.signoff-link { display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--teal); text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .15em; white-space: nowrap; }
.site-footer { padding: 14px var(--page-pad) 23px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.footer-bottom p { margin: 0; }
.footer-note { text-align: right; }
.fade-in { animation: appear .4s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (min-width: 1600px) { .collection-intro, .artwork-list, .home-tail, .detail-page { max-width: 1600px; margin-right: auto; margin-left: auto; } }
@media (max-width: 800px) {
  :root { --page-pad: 28px; }
  .home-cover { display: flex; flex-direction: column; min-height: auto; }
  body.home-layout .site-header { width: 100%; padding: 0 24px; }
  .home-collage { order: 1; min-height: 380px; height: 62svh; max-height: 700px; }
  .home-image:nth-child(1) { grid-column: 1; grid-row: 1; }
  .home-image:nth-child(2) { grid-column: 2; grid-row: 1; }
  .home-image:nth-child(3) { grid-column: 1; grid-row: 2; }
  .home-image:nth-child(4) { grid-column: 2; grid-row: 2; }
  .home-identity { order: 2; min-height: 0; padding: 43px var(--page-pad) 36px; justify-content: flex-start; }
  .home-title { font-size: clamp(59px, 11vw, 89px); }
  .home-description { margin-top: 19px; }
  .home-divider { margin-top: 17px; }
  .home-tagline { margin: 12px 0 17px; }
  .home-bottom { margin-top: 30px; }
  .archive-item { grid-template-columns: minmax(0, 1.05fr) minmax(215px, .95fr); gap: 30px; }
  .archive-title { font-size: clamp(28px, 4.6vw, 40px); }
  .detail-layout { grid-template-columns: 1.05fr .95fr; gap: 28px; }
  .detail-title { font-size: clamp(41px, 7vw, 59px); }
  .home-tail { grid-template-columns: .6fr 1.4fr; gap: 30px; padding-top: 67px; padding-bottom: 68px; }
}
@media (max-width: 560px) {
  :root { --page-pad: 21px; }
  .site-header { height: 53px; }
  .archive-menu { top: 94px; width: 100%; max-height: calc(100dvh - 94px); border-left: 0; }
  body.home-layout .site-header { height: 55px; padding-right: 20px; background: rgba(252,251,248,.97); border-bottom: 1px solid var(--line); }
  body.home-layout .archive-menu { top: 94px; }
  .home-cover { min-height: 100svh; display: flex; flex-direction: column; }
  .home-collage { height: 56svh; min-height: 290px; max-height: 520px; order: 1; }
  .home-identity { min-height: auto; flex: 1 0 auto; order: 2; padding: 23px var(--page-pad) 25px; }
  .home-title { font-size: clamp(60px, 16vw, 83px); }
  .home-description { max-width: 330px; margin-top: 16px; font-size: 8px; }
  .home-divider { margin-top: 14px; }
  .home-tagline { margin: 10px 0 14px; font-size: 13px; }
  .home-actions { gap: 8px; }
  .outline-link { min-height: 33px; padding: 0 12px; font-size: 7px; }
  .home-bottom { margin-top: 25px; padding-top: 11px; font-size: 8px; }
  .home-tail { display: block; padding-top: 49px; padding-bottom: 51px; }
  .home-tail h2 { margin-top: 25px; font-size: 43px; }
  .home-tail p:last-child { font-size: 11px; }
  .collection-intro { padding-top: 53px; padding-bottom: 20px; }
  .collection-heading-row { align-items: end; gap: 12px; }
  .collection-heading { margin-top: 18px; font-size: clamp(57px, 15vw, 82px); }
  .collection-count { max-width: 70px; font-size: 7px; line-height: 1.6; white-space: normal; }
  .collection-bottom { display: block; padding-top: 16px; }
  .collection-description { max-width: none; font-size: 11px; }
  .collection-label { display: block; max-width: none; margin-top: 11px; text-align: left; font-size: 7px; line-height: 1.5; white-space: normal; }
  .artwork-list { padding-bottom: 72px; }
  .archive-item { grid-template-columns: 1fr; gap: 11px; padding: 22px 0 26px; }
  .archive-item:first-child { padding-top: 22px; }
  .archive-item:nth-child(even) .archive-photo-link, .archive-item:nth-child(even) .archive-details { order: initial; }
  .archive-item:nth-child(even) .archive-details { padding-left: 0; }
  .archive-photo { min-height: 0; aspect-ratio: 1.08 / 1; }
  .archive-item[data-category="film"] .archive-photo { aspect-ratio: 1.22 / 1; }
  .archive-details { max-width: 100%; padding: 9px 0 0; }
  .archive-title { margin: 11px 0 8px; font-size: 32px; }
  .archive-description { max-width: 400px; font-size: 10px; }
  .archive-facts { margin-top: 12px; font-size: 7px; }
  .archive-view { margin-top: 14px; }
  .detail-page { padding-top: 26px; }
  .detail-back { margin-bottom: 24px; }
  .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .detail-artwork { max-height: none; min-height: 0; }
  .detail-title { margin: 13px 0; font-size: 53px; }
  .detail-description { font-size: 11px; }
  .related-topline h2 { font-size: 30px; }
  .related-section .archive-item { grid-template-columns: 1fr; gap: 10px; }
  .related-section .archive-item .archive-details { padding-top: 6px; }
  .related-section .archive-item .archive-photo { aspect-ratio: 1.1/1; }
  .archive-signoff { padding-top: 39px; padding-bottom: 38px; display: block; }
  .signoff-link { margin-top: 22px; }
  .footer-bottom { flex-wrap: wrap; gap: 7px 16px; }
  .footer-note { text-align: left; }
}

/* The supplied portrait replaces the home-page image mosaic; contain it without cropping. */
.home-collage.home-portrait-panel { position: relative; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.home-collage.home-portrait-panel::after { position: absolute; top: 0; right: 0; bottom: 0; width: 36%; background: linear-gradient(to right, rgba(252,251,248,0) 0%, rgba(252,251,248,.34) 38%, rgba(252,251,248,.78) 76%, var(--paper) 100%); content: ""; pointer-events: none; }
.home-portrait { display: block; width: auto; max-width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
@media (max-width: 800px) {
  .home-collage.home-portrait-panel::after { top: auto; right: 0; bottom: 0; left: 0; width: 100%; height: 36%; background: linear-gradient(to bottom, rgba(252,251,248,0) 0%, rgba(252,251,248,.34) 38%, rgba(252,251,248,.78) 76%, var(--paper) 100%); }
}


/* Persistent, horizontally scrollable gallery tabs. */
.medium-tabs { position: relative; z-index: 20; display: flex; align-items: stretch; justify-content: space-between; gap: clamp(18px, 4vw, 56px); padding: 0 var(--page-pad); overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper); scrollbar-width: thin; scrollbar-color: var(--teal-wash) transparent; }
.medium-tabs a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; color: #6f706a; text-decoration: none; text-transform: uppercase; font-size: 9px; letter-spacing: .14em; white-space: nowrap; transition: color .18s ease; }
.medium-tabs a:hover { color: var(--fuchsia); }
.medium-tabs a[aria-current="page"] { color: var(--teal); }
.medium-tabs a[aria-current="page"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--teal); content: ""; }
.medium-tabs a:focus-visible, .gallery-image-button:focus-visible, .lightbox button:focus-visible, .lightbox-detail:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; }

/* Placeholder artwork grids use the existing sample works and open in a lightbox. */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 74px) clamp(22px, 3.5vw, 52px); padding-bottom: clamp(80px, 12vw, 155px); }
.gallery-card { min-width: 0; }
.gallery-image-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #f0efeb; cursor: zoom-in; text-align: left; }
.gallery-image { display: block; width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .25s ease; }
.gallery-image-button:hover .gallery-image { transform: scale(1.025); filter: saturate(1.05); }
.gallery-open { position: absolute; right: 13px; bottom: 13px; padding: 9px 11px; background: rgba(252,251,248,.94); color: var(--ink); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.gallery-image-button:hover .gallery-open, .gallery-image-button:focus-visible .gallery-open { opacity: 1; transform: translateY(0); }
.gallery-play { position: absolute; inset: 50% auto auto 50%; display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(177,61,120,.88); color: #fff; transform: translate(-50%,-50%); font-size: 13px; pointer-events: none; }
.gallery-caption { padding-top: 17px; }
.gallery-caption-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 8px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.gallery-caption-meta span:last-child { text-align: right; }
.gallery-caption h2 { margin: 11px 0 7px; font: italic 500 clamp(27px, 3.1vw, 40px)/1.08 var(--serif); letter-spacing: -.04em; }
.gallery-caption h2 a { text-decoration: none; }
.gallery-caption h2 a:hover { color: var(--fuchsia); }
.gallery-caption > p { max-width: 520px; margin: 0; color: #686963; font-size: 10px; line-height: 1.8; }

/* Native dialog provides focus trapping and Escape-to-close behavior. */
.lightbox { width: min(1100px, 94vw); max-width: none; max-height: min(94dvh, 1050px); padding: clamp(16px, 3vw, 34px); overflow: auto; border: 1px solid rgba(255,255,255,.25); background: var(--paper); color: var(--ink); box-shadow: 0 24px 90px rgba(0,0,0,.28); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(18, 12, 17, .82); backdrop-filter: blur(3px); }
.lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lightbox-counter { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.lightbox-close, .lightbox-step { border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.lightbox-close { padding: 8px 11px; text-transform: uppercase; font-size: 8px; letter-spacing: .12em; }
.lightbox-close span { margin-left: 6px; color: var(--fuchsia); font-size: 16px; vertical-align: -1px; }
.lightbox-stage { min-height: 220px; height: min(68dvh, 720px); margin: 16px 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: clamp(8px, 2vw, 24px); }
.lightbox-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-step { width: 40px; height: 40px; border-color: var(--teal); color: var(--teal); font-size: 19px; transition: background .2s ease, color .2s ease; }
.lightbox-step:hover:not(:disabled) { background: var(--teal); color: white; }
.lightbox-step:disabled { opacity: .35; cursor: not-allowed; }
.lightbox-caption { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.lightbox-caption h2 { margin: 7px 0 0; font: italic 500 clamp(27px, 4vw, 43px)/1.05 var(--serif); letter-spacing: -.04em; }
.lightbox-detail { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
.lightbox-detail:hover { color: var(--fuchsia); }
@media (max-width: 560px) {
  .medium-tabs { justify-content: flex-start; gap: 26px; margin-right: 0; padding-right: 21px; padding-left: 21px; }
  .medium-tabs a { min-height: 41px; font-size: 8px; letter-spacing: .11em; }
  .gallery-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 72px; }
  .gallery-image { aspect-ratio: 1.12 / 1; }
  .gallery-open { opacity: 1; transform: none; }
  .gallery-caption-meta { font-size: 7px; }
  .gallery-caption h2 { font-size: 31px; }
  .lightbox { width: 100vw; max-width: 100vw; max-height: 100dvh; min-height: 100dvh; margin: 0; padding: 16px 14px max(16px, env(safe-area-inset-bottom)); border: 0; }
  .lightbox-stage { flex: 1; min-height: 200px; height: auto; grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 7px; margin: 14px 0; }
  .lightbox-step { width: 32px; height: 36px; }
  .lightbox-caption { align-items: start; flex-direction: column; gap: 13px; }
}

/* Supplied Collage artworks: preserve the complete portrait and landscape compositions. */
.gallery-card[data-category="collage"] .gallery-image { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper); }
.gallery-card[data-category="collage"] .gallery-image-button { background: var(--paper); }
.gallery-card[data-category="collage"] .gallery-image-button:hover .gallery-image { transform: none; filter: none; }
.archive-item[data-category="collage"] .archive-photo { object-fit: contain; }

/* Supplied Sculpture photographs: show the full work without cropping. */
.gallery-card[data-category="sculpture"] .gallery-image { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper); }
.gallery-card[data-category="sculpture"] .gallery-image-button { background: var(--paper); }
.gallery-card[data-category="sculpture"] .gallery-image-button:hover .gallery-image { transform: none; filter: none; }
.archive-item[data-category="sculpture"] .archive-photo { object-fit: contain; }

/* Uploaded painting photographs: retain the complete artwork composition. */
.gallery-card[data-category="paintings"] .gallery-image { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper); }
.gallery-card[data-category="paintings"] .gallery-image-button { background: var(--paper); }
.gallery-card[data-category="paintings"] .gallery-image-button:hover .gallery-image { transform: none; filter: none; }
.archive-item[data-category="paintings"] .archive-photo { object-fit: contain; }

/* Uploaded printmaking originals: preserve complete scans and photographs. */
.gallery-card[data-category="printmaking"] .gallery-image { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper); }
.gallery-card[data-category="printmaking"] .gallery-image-button { background: var(--paper); }
.gallery-card[data-category="printmaking"] .gallery-image-button:hover .gallery-image { transform: none; filter: none; }
.archive-item[data-category="printmaking"] .archive-photo { object-fit: contain; }

/* Supplied film still links directly to its video rather than opening a lightbox. */
.gallery-card[data-external-film="true"] .gallery-image-button { cursor: pointer; text-decoration: none; background: var(--paper); }
.gallery-card[data-external-film="true"] .gallery-image { height: auto; aspect-ratio: auto; object-fit: contain; }
.gallery-card[data-external-film="true"] .gallery-image-button:hover .gallery-image { transform: none; filter: none; }
.gallery-card[data-external-film="true"] .archive-view { margin-top: 9px; }

/* Uploaded stop-motion film plays inline at its original frame proportions. */
.gallery-video, .detail-video { display: block; width: 100%; height: auto; min-width: 0; object-fit: contain; background: var(--paper); }
.gallery-video { aspect-ratio: 1814 / 1278; }
.detail-video { max-height: 78vh; }
.gallery-video:focus-visible, .detail-video:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; }
.gallery-card[data-inline-film="true"] .archive-view { margin-top: 9px; }

/* Film sequence uses one full-width column at every screen size. */
.gallery-grid[aria-label="Film artwork grid"] { grid-template-columns: minmax(0, 1fr); }

/* Keep Film media at half the previous full-column size. */
.gallery-grid[aria-label="Film artwork grid"] > .gallery-card { width: 50%; justify-self: center; }

/* Display the supplied BRC mural photo without cropping or hover zoom. */
.gallery-image-button[data-lightbox="brc-womens-shelter-mural-2025"] { background: var(--paper); }
.gallery-image-button[data-lightbox="brc-womens-shelter-mural-2025"] .gallery-image { height: auto; aspect-ratio: auto; object-fit: contain; transform: none; filter: none; }
.archive-item[data-category="murals"] .archive-photo[src="/manus-storage/jonelleaustin1_e4dfa4ba.jpg"] { object-fit: contain; }

/* Detail views stay grouped beneath their main artwork photo. */
.artwork-detail-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1.5vw, 18px); margin-top: 14px; }
.detail-image-button { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; }
.detail-image-button img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.detail-image-button:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; }
.detail-media { min-width: 0; }

/* Murals use a single main column; grouped detail photographs remain side by side. */
.gallery-grid[aria-label="Murals artwork grid"] { grid-template-columns: minmax(0, 1fr); }

/* Reduce the mural image group by 30% while preserving its internal proportions. */
.gallery-grid[aria-label="Murals artwork grid"] > .gallery-card { width: 70%; justify-self: center; }
