/* EASEL 2026-10-07: one owner for responsive artwork layout and inquiry UI. */
:root{--easel-gap:24px;--easel-gutter:clamp(16px,3vw,48px)}
body .hero,body #gallery,body .auction-inner{width:min(1440px,calc(100% - 2 * var(--easel-gutter)))!important;max-width:1440px!important;margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important;min-width:0!important}
body #gallery{padding-top:24px!important}
body #homeAuctionCards{width:min(1440px,calc(100% - 2 * var(--easel-gutter)))!important;margin-inline:auto!important}
body #artGrid,body #auctionGrid,body #homeAuctionCards{
  display:grid!important;
  grid-template-columns:repeat(var(--easel-columns,1),minmax(0,1fr))!important;
  gap:var(--easel-gap)!important;align-items:start!important;min-width:0!important
}
body #artGrid.one{grid-template-columns:minmax(0,900px)!important;justify-content:center!important}
body #artGrid.list{grid-template-columns:1fr!important;gap:16px!important}
body .toolbar .view-btn{
  display:grid!important;place-items:center!important;
  width:38px!important;height:38px!important;flex:0 0 38px!important;
  border:1px solid #dedede!important;border-radius:10px!important;
  background:#fff!important;color:#222!important;font-size:17px!important
}
body .toolbar .view-btn.active{background:#171717!important;color:#fff!important;border-color:#171717!important}
body #artGrid .art-card,body #heroRail .hero-card,body #homeAuctionCards .art-card,body #auctionGrid .auction-card{min-width:0!important;width:auto!important;display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;border-radius:0!important}
body #artGrid .art-card .art-thumb,body #heroRail .hero-card .hero-img,body #homeAuctionCards .art-card .art-image-box,body #auctionGrid .auction-card .auction-image-box{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:var(--easel-ratio,4/3)!important;border-radius:16px!important;overflow:hidden!important;background:#f4f3f0!important;position:relative!important}
body #artGrid .art-thumb img,body #heroRail .hero-img img,body #homeAuctionCards .art-image-box img,body #auctionGrid .auction-image-box img{position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;border-radius:inherit!important;display:block!important}
body #artGrid .art-info,body #heroRail .hero-info,body #homeAuctionCards .art-info,body #auctionGrid .auction-card-info{position:static!important;display:block!important;margin-top:12px!important;padding:14px 16px!important;border-radius:14px!important;background:#fff!important;border:1px solid #e8e8e8!important;overflow-wrap:anywhere;min-width:0}
body #heroRail .hero-info strong,body #heroRail .hero-info span{display:block!important}
body #heroRail{display:flex!important;gap:var(--easel-gap)!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;touch-action:pan-x pan-y pinch-zoom!important;cursor:grab!important;align-items:flex-start!important;scroll-behavior:smooth!important}
body #heroRail .hero-card{flex:0 0 var(--easel-hero-card,100%)!important;scroll-snap-align:start!important;cursor:pointer!important}
body #heroRail.dragging{cursor:grabbing!important;scroll-snap-type:none!important;scroll-behavior:auto!important}
body #heroRail .hero-card .hero-img{max-height:560px!important}
body .hero-carousel-wrap{position:relative!important;background:none!important}
body .hero-carousel-wrap .hero-nav{display:block!important;position:absolute!important;inset:0!important;pointer-events:none!important;background:none!important;z-index:3!important}
body .hero-carousel-wrap #heroPrev,body .hero-carousel-wrap #heroNext{position:absolute!important;top:var(--easel-arrow-y,180px)!important;transform:translateY(-50%)!important;width:44px!important;height:64px!important;padding:8px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#fff!important;pointer-events:auto!important;display:grid!important;place-items:center!important;font-size:0!important}
body .hero-carousel-wrap #heroPrev{left:8px!important;right:auto!important}body .hero-carousel-wrap #heroNext{right:8px!important;left:auto!important}
body .hero-nav button::before,body .hero-nav button::after{content:none!important;display:none!important}
body .hero-nav button svg{display:block!important;width:24px!important;height:40px!important;filter:drop-shadow(0 1px 3px #333)!important}
body .hero-nav button:hover{background:transparent!important;opacity:1!important}body .hero-nav button:disabled{opacity:.2!important}
body .hero-nav button:focus-visible,body [data-easel-open]:focus-visible{outline:2px solid #777!important;outline-offset:3px!important}
body .hero[hidden],body #gallery[hidden],body #auctionPage[hidden]{display:none!important}
body #detailModal .detail-media{padding:clamp(12px,2vw,28px)!important;min-height:0!important;display:grid!important;place-items:center!important}
body #detailImg{width:100%!important;height:auto!important;max-height:78dvh!important;object-fit:contain!important;transform:none!important}
body #roomArtImg{object-fit:contain!important;object-position:center!important}
body #workVideo,body #videoDownloadBtn,body [data-speed],body #speedLabel{display:none!important}
.easel-video-frame{position:relative;width:100%;aspect-ratio:16/9;margin:12px 0;border-radius:12px;overflow:hidden;background:#111}
.easel-video-frame iframe{width:100%;height:100%;border:0;display:block}
.easel-video-note{font-size:13px;line-height:1.6;color:#626262;overflow-wrap:anywhere}
.easel-video-link{display:inline-block;margin:8px 0;text-decoration:underline;text-underline-offset:3px}
.easel-inquiry{position:fixed;inset:0;z-index:30000;display:grid;place-items:center;background:rgba(0,0,0,.55);padding:20px}
.easel-inquiry[hidden]{display:none!important}
.easel-inquiry-card{width:min(840px,100%);max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain;background:#fff;border-radius:20px;padding:clamp(20px,4vw,36px);position:relative;box-shadow:0 24px 80px #0003}
.easel-inquiry h2{font-size:26px;font-weight:600;margin:0 48px 8px 0}.easel-inquiry p{margin:8px 0;line-height:1.6}
.easel-inquiry-close{position:absolute;right:18px;top:16px;min-width:40px;min-height:40px;border:0;background:transparent;font-size:28px}
.easel-inquiry-context{padding:12px 14px;border-radius:12px;background:#f6f5f2;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.easel-inquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.easel-inquiry-field{display:grid;gap:7px;min-width:0;font-size:14px}.easel-inquiry-field.full{grid-column:1/-1}
.easel-inquiry input,.easel-inquiry textarea{width:100%;min-width:0;padding:12px;border:1px solid #d5d5d5;border-radius:10px;background:#fff;font-size:16px;line-height:1.5}
.easel-inquiry textarea{min-height:240px;resize:vertical}.easel-inquiry input:focus,.easel-inquiry textarea:focus{outline:2px solid #8c8c8c;outline-offset:2px}
.easel-inquiry-consent{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:18px 0}
.easel-inquiry-consent input{width:18px;height:18px;flex:0 0 18px;margin:2px 0 0;padding:0}
.easel-inquiry-submit{width:100%;min-height:50px;border:0;border-radius:12px;background:#171717;color:#fff;font-size:16px}
.easel-inquiry-submit:disabled{opacity:.55;cursor:wait}.easel-inquiry-error{color:#ad2424;font-size:14px;white-space:pre-wrap}.easel-inquiry-success{text-align:center;padding:32px 0}
.easel-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.easel-request-card{border:1px solid #e3e3e3;border-radius:12px;padding:16px;margin:12px 0;background:#fff;overflow-wrap:anywhere}
.easel-request-card pre{font:inherit;white-space:pre-wrap;line-height:1.7}.easel-request-note{padding:12px;background:#f7f3e9;border-radius:10px;font-size:14px;line-height:1.6}
body [data-easel-open].is-pressed{transform:scale(.988)!important;transition:transform .12s ease!important}
@media(max-width:600px){:root{--easel-gap:16px}.easel-inquiry{padding:10px}.easel-inquiry-card{max-height:calc(100dvh - 20px);border-radius:16px}.easel-inquiry-grid{grid-template-columns:1fr;gap:14px}.easel-inquiry textarea{min-height:200px}body #detailImg{max-height:60dvh!important}}
@media(prefers-reduced-motion:reduce){body #heroRail{scroll-behavior:auto!important}body [data-easel-open]{transition:none!important}}

body .hero-carousel-wrap #heroPrev{top:var(--easel-prev-y,180px)!important}body .hero-carousel-wrap #heroNext{top:var(--easel-next-y,180px)!important}
body #chatFab{width:56px!important;min-height:44px!important;white-space:nowrap!important;font-size:14px!important;line-height:1!important;padding:0!important;display:grid!important;place-items:center!important}
body #heroRail .hero-info strong,body #artGrid .art-title{font-weight:600!important}

/* 2026-10-07.3 — restore gallery view controls and compact responsive hero rail */
body #artGrid.list .art-card{
  display:grid!important;
  grid-template-columns:minmax(150px,260px) minmax(0,1fr)!important;
  gap:0!important;align-items:stretch!important
}
body #artGrid.list .art-card .art-thumb{
  height:100%!important;min-height:160px!important;aspect-ratio:auto!important;
  border-radius:14px 0 0 14px!important
}
body #artGrid.list .art-card .art-info{
  margin-top:0!important;border-radius:0 14px 14px 0!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important
}
body #artGrid.one .art-card{width:100%!important}
body #artGrid.one .art-card .art-thumb{max-height:72dvh!important}
body #heroRail .hero-card .hero-img{max-height:420px!important}
@media(max-width:760px){
  body #artGrid.list .art-card{grid-template-columns:120px minmax(0,1fr)!important}
  body #artGrid.list .art-card .art-thumb{min-height:120px!important}
  body #heroRail .hero-card .hero-img{max-height:360px!important}
}
@media(max-width:480px){
  body #artGrid.list .art-card{grid-template-columns:100px minmax(0,1fr)!important}
  body .toolbar .view-btn{width:36px!important;height:36px!important;flex-basis:36px!important}
}
