/* ---------- Art Gallery ---------- */
body.gallery { padding-bottom: 60px; }
.gallery .page-head { padding-top: calc(var(--nav-h) + 4vh); }
.wall { position: relative; z-index: 2; padding: 6vh clamp(20px, 5vw, 72px) 4vh; }
.wall__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; align-items: end;
  gap: 11vh clamp(28px, 4vw, 72px); max-width: 1500px; margin: 0 auto;
}
.work { position: relative; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
/* --w is the width of the artwork itself; add each presentation's own border so every piece shows the same picture area */
.work { --fp: clamp(10px, 1.2vw, 18px); --mp: clamp(10px, 1.6vw, 26px); --sp: clamp(8px, .9vw, 14px); }
/* every piece shares one long side (--L); --k is its width as a fraction of that side */
.wall { --L: min(31vw, 60vh, 520px); }
.work { --w: calc(var(--L) * var(--k, 1)); width: var(--w); }
.work[data-display="frame"] { width: calc(var(--w) + 2 * (var(--fp) + var(--mp))); }
.work[data-display="video"] { width: calc(var(--w) + 2 * var(--sp)); }
.work[data-display="plinth"] { width: calc(var(--w) / .86); }
.work[data-display="vitrine"] { width: calc(var(--w) / .96); }
.work__hit { position: relative; width: 100%; display: block; text-align: left; transition: transform .6s var(--ease-out); }
.work__hit:hover { transform: translateY(-6px); }
.work__hit:focus-visible { outline: 2px solid var(--violet); outline-offset: 10px; }

/* picture light wash above each piece */
.work::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -16vh; height: 30vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 253, 240, .55), rgba(255, 253, 240, 0) 70%);
  opacity: .9;
}

/* framed works */
.frame-art {
  --fa: #E6CB8F; --fb: #B48C44;
  position: relative; padding: var(--fp, clamp(10px, 1.2vw, 18px)); border-radius: 3px;
  background: linear-gradient(135deg, var(--fa) 0%, var(--fb) 42%, var(--fa) 58%, var(--fb) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, .28), inset 0 0 0 5px rgba(0, 0, 0, .06),
    0 30px 50px -18px rgba(74, 61, 140, .5), 0 8px 18px -8px rgba(74, 61, 140, .3);
  transition: box-shadow .6s;
}
.work__hit:hover .frame-art { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34), inset 0 0 0 5px rgba(0, 0, 0, .06), 0 44px 60px -18px rgba(74, 61, 140, .55), 0 10px 20px -8px rgba(74, 61, 140, .3); }
.frame-art::before, .frame-art::after {
  content: ""; position: absolute; inset: 3px; pointer-events: none;
  background-repeat: no-repeat; background-size: 16px 16px;
}
.frame-art::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Crect width='5' height='5' fill='none'/%3E%3Cpath fill='%23FFFDF0' d='M0 0h3v1H1v2H0zM1 1h1v1H1zM2 2h1v1H2z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23FFFDF0' d='M5 5H2V4h2V2h1zM3 3h1v1H3zM2 2h1v1H2z'/%3E%3C/svg%3E"); background-position: 4px 4px, calc(100% - 4px) calc(100% - 4px); }
.frame-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23FFFDF0' d='M5 0H2v1h2v2h1zM3 1h1v1H3zM2 2h1v1H2z'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23FFFDF0' d='M0 5h3V4H1V2H0zM1 3h1v1H1zM2 2h1v1H2z'/%3E%3C/svg%3E"); background-position: calc(100% - 4px) 4px, 4px calc(100% - 4px); }
.frame-art__mat {
  background: var(--cream); padding: var(--mp, clamp(10px, 1.6vw, 26px));
  box-shadow: inset 0 0 0 1px rgba(201, 168, 106, .55), inset 0 2px 10px rgba(74, 61, 140, .14);
}
.frame-art__mat img { width: 100%; box-shadow: 0 0 0 1px rgba(43, 39, 64, .18), inset 0 0 20px rgba(0, 0, 0, .2); }
/* every frame is gold (client request) */

.work__play { position: absolute; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; background: rgba(43, 39, 64, .85); color: var(--cream); display: grid; place-items: center; font-size: 15px; z-index: 3; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); padding-left: 3px; }
.screen-art { position: relative; padding: var(--sp, clamp(8px, .9vw, 14px)); background: #2B2740; border-radius: 8px; box-shadow: 0 30px 50px -18px rgba(43, 39, 64, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.screen-art img { width: 100%; border-radius: 3px; display: block; }
.screen-art::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 34%; height: 14px; margin-left: -17%; background: linear-gradient(#3A3550, #2B2740); border-radius: 0 0 6px 6px; }

/* unframed panel grid */
.panel-art img { width: 100%; box-shadow: 0 2px 0 rgba(255, 255, 255, .5) inset, 0 28px 40px -16px rgba(74, 61, 140, .5), 0 4px 10px rgba(74, 61, 140, .18); border-radius: 2px; }

/* objects on pedestals / in a vitrine */
.plinth-art { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.plinth-art__obj { position: relative; z-index: 2; width: 86%; margin-bottom: -6%; }
.plinth-art__obj img { width: 100%; border-radius: 6px; box-shadow: 0 30px 40px -20px rgba(74, 61, 140, .55), 0 0 0 1px rgba(255, 255, 255, .6); }
.plinth-art--vitrine .plinth-art__obj { width: 96%; }
.plinth-art--vitrine .plinth-art__obj::after {
  content: ""; position: absolute; inset: -3% -2% -2%; border-radius: 6px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .25));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 12px 30px -10px rgba(74, 61, 140, .35);
}
.plinth-art__base {
  position: relative; width: 74%; height: clamp(56px, 7vw, 96px); border-radius: 2px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F0FA 100%);
  box-shadow: 0 30px 40px -14px rgba(74, 61, 140, .45), inset 0 -8px 16px rgba(74, 61, 140, .08);
}
.plinth-art__base::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 12px; background: #FFFFFF; transform: skewX(-38deg); transform-origin: 0 100%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9); border-radius: 2px 2px 0 0; opacity: .95; }
.plinth-art--vitrine .plinth-art__base { width: 92%; }
.plinth-art--hang { padding-top: 7vh; }
.plinth-art--hang::before { content: ""; position: absolute; left: 50%; top: -12vh; height: 19vh; width: 1px; background: linear-gradient(to bottom, rgba(74, 61, 140, 0), rgba(74, 61, 140, .5)); }

.statement { position: relative; z-index: 2; margin: 3vh clamp(20px, 5vw, 72px) 0; max-width: 1040px; }
.statement summary { list-style: none; cursor: pointer; }
.statement summary::-webkit-details-marker { display: none; }
.statement__quote { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.28; color: var(--violet-ink); position: relative; padding-left: .9em; }
.statement__quote::before { content: "“"; position: absolute; left: 0; top: -.08em; color: var(--violet-soft); }
.statement__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--violet); }
.statement__more i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--violet); display: grid; place-items: center; font-style: normal; font-size: 14px; transition: transform .3s; }
.statement[open] .statement__more i { transform: rotate(45deg); }
.statement[open] .statement__more span::after { content: " ↑"; }
.statement__body { margin-top: 22px; padding: 26px clamp(20px, 2.6vw, 40px); background: var(--paper); border-radius: 4px; box-shadow: 0 24px 40px -24px rgba(74, 61, 140, .45), inset 0 0 0 1px rgba(201, 168, 106, .4); max-width: 78ch; }
.statement__body p { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--ink); }
.statement__body p + p { margin-top: 14px; }

/* plaque */
.plaque {
  position: relative; margin-top: 26px; padding: 12px 42px 12px 16px; border-radius: 2px;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 10px 20px -8px rgba(74, 61, 140, .35), inset 0 0 0 1px rgba(201, 168, 106, .45);
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; text-align: left;
  transition: transform .5s var(--ease-out);
}
.work__hit:hover + .plaque, .plaque:hover { transform: translateY(-3px); }
.plaque__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--violet); font-weight: 700; grid-row: 1 / 3; align-self: center; }
.plaque__title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.2; color: var(--violet-ink); }
.plaque--bare { grid-template-columns: auto; padding-right: 44px; }
.plaque--bare .plaque__num { font-size: 13px; }
.plaque__meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); max-width: 34ch; }
.plaque__plus { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--violet); color: var(--violet); display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; }

/* signature */
.wall__sign { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding: 2vh clamp(20px, 6vw, 90px) 0; }
.wall__sign .hand { font-size: clamp(26px, 2.6vw, 38px); color: var(--violet); transform: rotate(-3deg); }
.wall__sign .pf { position: static; width: 26px; }

/* ---------- lightbox / intro window ---------- */
.lb { position: fixed; inset: 0; z-index: 300; display: none; }
.lb.is-open { display: block; }
.lb__bg { position: absolute; inset: 0; background: rgba(230, 225, 249, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.lb.is-in .lb__bg { opacity: 1; }
.lb__wrap { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 0; padding: 0; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 6vh 3vw 6vh 5vw; min-width: 0; }
.lb__img { max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 70px -24px rgba(74, 61, 140, .6); background: var(--cream); padding: 10px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.lb.is-in .lb__img { opacity: 1; transform: none; }
.lb__video { width: 100%; max-width: 980px; max-height: 60vh; height: auto; background: #000; box-shadow: 0 40px 70px -24px rgba(74, 61, 140, .6); border-radius: 4px; display: none; }
.lb.is-video .lb__video { display: block; } .lb.is-video .lb__img { display: none; }
.lb__lead { font-family: var(--font-hand); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--violet-soft); margin-bottom: 14px; }
.lb.is-video .lb__stage { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; overflow-y: auto; }
.lb.is-video .lb__stage .lb__strip { width: 100%; max-width: 980px; margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.lb.is-video .lb__stage .lb__strip img[data-wide] { grid-column: span 4; max-height: 30vh; }
.lb__strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.lb__sidevideo { width: 100%; margin-top: 26px; border-radius: 4px; background: #000; box-shadow: 0 16px 30px -14px rgba(74, 61, 140, .5); display: none; }
.lb.has-side .lb__sidevideo { display: block; }
.lb__strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(74, 61, 140, .5); background: #fff; }
.lb__strip img[data-wide] { grid-column: span 2; aspect-ratio: auto; object-fit: contain; }
.lb__panel {
  position: relative; background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 10px) clamp(24px, 3vw, 48px) 48px; box-shadow: -20px 0 50px -30px rgba(74, 61, 140, .4);
  transform: translateX(40px); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s;
}
.lb.is-in .lb__video { width: 100%; max-width: 980px; max-height: 60vh; height: auto; background: #000; box-shadow: 0 40px 70px -24px rgba(74, 61, 140, .6); border-radius: 4px; display: none; }
.lb.is-video .lb__video { display: block; } .lb.is-video .lb__img { display: none; }
.lb__lead { font-family: var(--font-hand); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--violet-soft); margin-bottom: 14px; }
.lb.is-video .lb__stage { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; overflow-y: auto; }
.lb.is-video .lb__stage .lb__strip { width: 100%; max-width: 980px; margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.lb.is-video .lb__stage .lb__strip img[data-wide] { grid-column: span 4; max-height: 30vh; }
.lb__strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.lb__sidevideo { width: 100%; margin-top: 26px; border-radius: 4px; background: #000; box-shadow: 0 16px 30px -14px rgba(74, 61, 140, .5); display: none; }
.lb.has-side .lb__sidevideo { display: block; }
.lb__strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(74, 61, 140, .5); background: #fff; }
.lb__strip img[data-wide] { grid-column: span 2; aspect-ratio: auto; object-fit: contain; }
.lb__panel { transform: none; opacity: 1; }
.lb__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .24em; color: var(--violet); font-weight: 700; }
.lb__title { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; color: var(--violet-ink); margin: 10px 0 18px; }
.lb__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid rgba(74, 61, 140, .2); }
.lb__facts dt { text-transform: uppercase; letter-spacing: .18em; font-size: 10px; color: var(--violet); font-weight: 700; padding-top: 2px; }
.lb__facts dd { margin: 0; color: var(--ink); }
.lb__text { font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85; color: var(--ink); }
.lb__text em { font-style: italic; }
.lb__text p + p { margin-top: 14px; }
.lb__title em { font-style: italic; }
.lb__title .d-year { font-family: var(--font-mono); font-style: normal; font-weight: 700; font-size: .38em; letter-spacing: .14em; color: var(--violet); vertical-align: middle; white-space: nowrap; }
.lb__close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--violet); color: var(--violet); display: grid; place-items: center; font-size: 22px; line-height: 1; background: var(--paper); transition: background .3s, color .3s; }
.lb__close:hover { background: var(--violet); color: var(--cream); }
.lb__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: var(--violet); background: rgba(255, 253, 240, .85); box-shadow: 0 8px 20px -8px rgba(74, 61, 140, .4); transition: transform .3s var(--ease-out), background .3s, color .3s; }
.lb__nav:hover { background: var(--violet); color: var(--cream); transform: scale(1.06); }
.lb__nav--prev { left: 18px; } .lb__nav--next { right: 18px; }
.lb__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--violet); font-weight: 700; }
body.lb-open { overflow: hidden; }

@media (max-width: 1100px) {
  .wall { --L: min(38vw, 56vh); }
  .wall__grid { gap: 9vh 5vw; }
}
@media (max-width: 1100px) and (min-width: 681px) {
  .lb__wrap { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); }
}
@media (max-width: 680px) {
  .wall { padding-top: 4vh; }
  .wall { --L: 80vw; }
  .wall__grid { grid-template-columns: 1fr; gap: 8vh; }
  .plinth-art--hang { padding-top: 5vh; }
  .lb__wrap { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lb__stage { padding: 76px 20px 16px; }
  .lb__img { max-height: 56vh; }
  .lb__video { width: 100%; max-width: 980px; max-height: 60vh; height: auto; background: #000; box-shadow: 0 40px 70px -24px rgba(74, 61, 140, .6); border-radius: 4px; display: none; }
.lb.is-video .lb__video { display: block; } .lb.is-video .lb__img { display: none; }
.lb__lead { font-family: var(--font-hand); font-weight: 700; font-size: 21px; line-height: 1.3; color: var(--violet-soft); margin-bottom: 14px; }
.lb.is-video .lb__stage { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; overflow-y: auto; }
.lb.is-video .lb__stage .lb__strip { width: 100%; max-width: 980px; margin-top: 0; grid-template-columns: repeat(4, 1fr); }
.lb.is-video .lb__stage .lb__strip img[data-wide] { grid-column: span 4; max-height: 30vh; }
.lb__strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.lb__sidevideo { width: 100%; margin-top: 26px; border-radius: 4px; background: #000; box-shadow: 0 16px 30px -14px rgba(74, 61, 140, .5); display: none; }
.lb.has-side .lb__sidevideo { display: block; }
.lb__strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 20px -10px rgba(74, 61, 140, .5); background: #fff; }
.lb__strip img[data-wide] { grid-column: span 2; aspect-ratio: auto; object-fit: contain; }
.lb__panel { padding: 24px 22px 90px; transform: translateY(30px); box-shadow: 0 -20px 40px -30px rgba(74, 61, 140, .4); }
  .lb__nav { top: auto; bottom: 18px; margin-top: 0; position: fixed; }
  .lb__count { position: fixed; }
  .lb__close { position: fixed; top: 14px; right: 14px; }
}
