/* The gallery stays complete without JavaScript; motion is a progressive enhancement. */
:root {
  --gallery-ease: cubic-bezier(.22, 1, .36, 1);
  --gallery-shadow: 0 28px 55px -20px #34281d55, 0 6px 15px #34281d16;
}
html { scroll-padding-top: 32px; }
.gallery-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 0 clamp(28px, 4vw, 72px);
  padding-top: 52px;
  padding-bottom: 0;
  min-height: 0;
  background: radial-gradient(ellipse at 76% 42%, #d7c6a848, transparent 56%);
}
.gallery-hero .hero-copy { padding-block: 34px 46px; z-index: 2; }
.gallery-hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex: none; }
.gallery-hero h1 { font-size: clamp(68px, 7.2vw, 122px); line-height: .94; margin-bottom: 30px; }
.gallery-hero .hero-intro { max-width: 440px; font-size: clamp(18px, 1.45vw, 22px); }
.gallery-hero .button-row { gap: 24px; }
.gallery-hero .hero-note { margin-top: 50px; line-height: 1.65; }
.gallery-hero .seal-mark { width: 48px; height: 48px; color: var(--clay); border-color: #a6422455; font-size: 16px; }
.gallery-showcase { min-width: 0; align-self: center; padding-bottom: 30px; }
.gallery-scene {
  position: relative;
  height: clamp(440px, 43vw, 680px);
  perspective: 1400px;
  perspective-origin: 50% 45%;
}
.gallery-halo {
  position: absolute;
  inset: 9% 3% 5% 1%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 35%, #e6d4b9aa, #d7c6a831 60%, transparent 72%);
  pointer-events: none;
}
.gallery-outline { position: absolute; inset: 10% 12% 12% 14%; border: 1px solid #8c735230; pointer-events: none; }
.gallery-edition {
  position: absolute; top: 0; inset-inline: 0;
  display: flex; justify-content: space-between; gap: 16px;
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted);
}
.gallery-edition span:first-child { color: var(--clay); }
.gallery-work { position: absolute; transform-style: preserve-3d; }
.gallery-work-main { width: 64%; height: 80%; top: 9%; left: 21%; --rest-angle: -4deg; z-index: 2; }
.gallery-work-side { width: 35%; height: 32%; top: 57%; left: -2%; --rest-angle: -8deg; z-index: 3; }
.gallery-work-detail { width: 26%; height: 31%; top: 17%; right: -3%; --rest-angle: 7deg; z-index: 4; }
.gallery-frame {
  position: relative; display: block; width: 100%; height: 100%; padding: 7px;
  background: var(--paper); box-shadow: var(--gallery-shadow);
  border: 1px solid #917f6626;
  transition: box-shadow .4s ease;
}
.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery-frame .image-unavailable { min-height: 0; height: 100%; font-size: 14px; text-align: center; }
.gallery-frame:hover { box-shadow: 0 36px 64px -20px #34281d66, 0 8px 18px #34281d22; }
.gallery-frame:focus-visible { outline: 3px solid var(--clay); outline-offset: 6px; }
.gallery-work-arrow {
  position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center;
  width: 32px; height: 32px; background: var(--paper); color: var(--ink); border-radius: 50%;
  font-size: 19px; box-shadow: 0 2px 8px #0001;
}
.gallery-mini-caption { display: block; font-size: 12px; padding-top: 10px; color: #545147; }
.gallery-side-note { position: absolute; bottom: 3%; right: 6%; font: italic 20px var(--serif); color: var(--clay); }
.gallery-caption { margin-left: 20%; margin-right: 8%; padding-top: 10px; border-top: 1px solid var(--line); align-items: center; }
.gallery-caption .art-title { font-size: 25px; }
.gallery-caption > div > p:not(.art-title) { font-size: 13px; }
.gallery-caption-price { text-align: right; flex-shrink: 0; }
.gallery-caption-price > span { font-size: 12px; color: var(--muted); }
.gallery-caption .price { font-size: 15px !important; }
.gallery-hero-bottom {
  grid-column: 1 / -1; border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0;
  color: var(--muted); font-size: 12px; letter-spacing: .08em;
}
.gallery-hero-bottom > a { display: inline-flex; gap: 12px; align-items: center; }
.gallery-hero-bottom > span { text-transform: uppercase; }
.gallery-scroll-mark { color: var(--clay); font-size: 22px; line-height: 1; }
.assurance-bar { background: var(--paper); }
.home #current-edit { background: linear-gradient(var(--paper), var(--ivory)); }
.home .art-card-title { font-size: 26px; }
.art-card-image, .catalog-image { box-shadow: 0 12px 28px -20px #34281d66; }
.gallery-tilt { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
.gallery-tilt:focus-within { --tilt-x: 0deg !important; --tilt-y: 0deg !important; }
[data-depth-layer] {
  transform: translate3d(var(--layer-x, 0px), var(--layer-y, 0px), var(--layer-z, 0px))
    rotateX(var(--layer-rx, 0deg)) rotateY(var(--layer-ry, 0deg)) rotateZ(var(--rest-angle, 0deg));
}
.gallery-work:focus-within { --layer-x: 0px !important; --layer-y: 0px !important; --layer-rx: 0deg !important; --layer-ry: 0deg !important; }
.gallery-parallax-image { transform: translate3d(0, var(--image-shift, 0px), 0) scale(1.12); transform-origin: center; }
.gallery-motion-active.gallery-tilt,
.gallery-motion-active .gallery-tilt,
.gallery-motion-active [data-depth-layer],
.gallery-motion-active .gallery-parallax-image { will-change: transform; }
.gallery-reveal-in { animation: gallery-arrive .8s var(--gallery-ease) both; }
@keyframes gallery-arrive { from { opacity: .25; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
.gallery-motion-toggle {
  position: fixed; bottom: 18px; left: 18px; z-index: 30;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 16px; border: 1px solid #7b705b42; border-radius: 30px;
  background: #fffdf8f5; color: var(--ink); box-shadow: 0 4px 20px #17181212;
  font-size: 12px; letter-spacing: .035em;
}
.gallery-motion-toggle:hover { background: var(--paper); border-color: var(--clay); }
.gallery-motion-toggle:disabled { opacity: 1; cursor: default; }
.gallery-motion-icon { display: block; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 50%; }
.gallery-motion-toggle[aria-pressed="true"] .gallery-motion-icon { border: 0; border-radius: 0; background: linear-gradient(to right, currentColor 0 3px, transparent 3px 8px, currentColor 8px 11px, transparent 11px); }
.site-footer { padding-bottom: 88px; }
html[data-gallery-motion="off"] { scroll-behavior: auto; }
html[data-gallery-motion="off"] .gallery-reveal-in { animation: none; }
html[data-gallery-motion="off"] .gallery-tilt { transform: none; }
html[data-gallery-motion="off"] .gallery-parallax-image { transform: none; }
html[data-gallery-motion="off"] [data-depth-layer] { transform: rotateZ(var(--rest-angle, 0deg)); }
html[data-gallery-motion="off"] .button:hover,
html[data-gallery-motion="off"] .art-card-image:hover img,
html[data-gallery-motion="off"] .catalog-image:hover img { transform: none; }
html[data-gallery-motion="off"] .button,
html[data-gallery-motion="off"] .art-card-image img,
html[data-gallery-motion="off"] .catalog-image img { transition: color .2s, background-color .2s; }
@media (min-width: 1600px) { .gallery-hero { padding-inline: max(96px, calc((100vw - 1510px) / 2)); } }
@media (max-width: 1080px) {
  .gallery-hero { gap: 0 28px; padding-top: 32px; }
  .gallery-hero h1 { font-size: clamp(60px, 7.7vw, 84px); }
  .gallery-scene { height: 460px; }
  .gallery-edition { font-size: 12px; letter-spacing: .06em; }
  .gallery-edition span:last-child { display: none; }
  .gallery-caption { margin-left: 10%; margin-right: 0; gap: 16px; }
  .gallery-caption .art-title { font-size: 23px; }
  .gallery-work-main { left: 15%; width: 71%; }
  .gallery-work-detail { right: -1%; }
  .gallery-hero .hero-note { margin-top: 32px; }
}
@media (max-width: 760px) {
  .gallery-hero { grid-template-columns: minmax(0, 1fr); padding-top: 44px; gap: 26px; }
  .gallery-hero .hero-copy { padding: 0; }
  .gallery-hero h1 { font-size: clamp(62px, 14.5vw, 94px); max-width: 600px; margin-bottom: 24px; }
  .gallery-hero .hero-intro { max-width: 520px; font-size: 19px; margin-bottom: 28px; }
  .gallery-hero .button-row { gap: 22px; }
  .gallery-hero .hero-note { margin-top: 30px; font-size: 13px; }
  .gallery-showcase { padding: 12px 4px 8px; }
  .gallery-scene { height: clamp(380px, 103vw, 620px); margin-inline: 6px; }
  .gallery-edition span:last-child { display: inline; }
  .gallery-work-main { width: 64%; left: 21%; top: 10%; height: 76%; }
  .gallery-work-side { left: 0; top: 58%; height: 30%; width: 34%; }
  .gallery-work-detail { right: 0; top: 20%; width: 25%; height: 28%; }
  .gallery-frame { padding: 5px; }
  .gallery-work-arrow { width: 26px; height: 26px; right: 10px; bottom: 10px; font-size: 17px; }
  .gallery-side-note { bottom: 4%; right: 4%; font-size: 18px; }
  .gallery-mini-caption { font-size: 12px; padding-top: 7px; }
  .gallery-caption { margin-inline: 0; padding-top: 16px; }
  .gallery-hero-bottom { padding-block: 16px 22px; }
  .gallery-hero-bottom > span { display: none; }
  .gallery-motion-toggle { left: 12px; bottom: 12px; padding-inline: 12px; }
  .uah-toast { bottom: 72px; }
}
@media (max-width: 380px) {
  .gallery-hero h1 { font-size: 16vw; }
  .gallery-hero .button { gap: 20px; font-size: 11px; padding-inline: 15px; }
  .gallery-edition span:last-child { display: none; }
  .gallery-caption .art-title { font-size: 22px; }
  .gallery-caption > div > p:not(.art-title) { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-tilt, .gallery-parallax-image { transform: none !important; }
  [data-depth-layer] { transform: rotateZ(var(--rest-angle, 0deg)) !important; }
  .gallery-reveal-in { animation: none !important; }
  .gallery-motion-active.gallery-tilt,
  .gallery-motion-active .gallery-tilt,
  .gallery-motion-active [data-depth-layer],
  .gallery-motion-active .gallery-parallax-image { will-change: auto; }
  .button:hover, .art-card-image:hover img, .catalog-image:hover img { transform: none !important; }
}
@media print {
  .gallery-motion-toggle, .gallery-hero-bottom { display: none !important; }
  .gallery-tilt, .gallery-parallax-image { transform: none !important; }
  [data-depth-layer] { transform: rotateZ(var(--rest-angle, 0deg)) !important; }
  .gallery-reveal-in { animation: none; }
}
