:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#1e2d38;background:#f3f5f5}
*{box-sizing:border-box}
body{margin:0}
.gallery-header{min-height:175px;background:#122b49;color:#fff;padding:25px clamp(20px,5vw,70px);display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:20px}
.gallery-brand{display:flex;align-items:center;gap:11px;font-size:11px;letter-spacing:.15em;color:#d5e0e7}
.gallery-mark{width:37px;height:37px;border:1px solid #cdb477;border-radius:50%;display:grid;place-items:center;color:#e0c47f;font:14px Georgia,serif;letter-spacing:0}
.gallery-title{text-align:center}
.gallery-title small{font-size:10px;letter-spacing:.25em;color:#d3b976;text-transform:uppercase}
.gallery-title h1{font:36px Georgia,"Times New Roman",serif;font-weight:400;margin:8px 0 0}
.gallery-count{text-align:right;display:grid;gap:4px}
.gallery-count strong{font:36px Georgia,serif;color:#e0c47f}
.gallery-count span{font-size:10px;text-transform:uppercase;letter-spacing:.17em;color:#d0dde4}
main{max-width:1440px;margin:0 auto;padding:23px clamp(18px,4vw,55px) 60px}
.round-label{color:#72808a;font-size:11px;letter-spacing:.06em;margin:0 0 16px}
.gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:start;gap:15px}
.gallery-card{min-width:0;height:calc(var(--gallery-image-height,250px) + 142px);display:grid;grid-template-rows:var(--gallery-image-height,250px) minmax(0,1fr);background:#fff;border:1px solid #e0e6e8;border-radius:7px;overflow:hidden;box-shadow:0 4px 14px #1835480c}
.gallery-image{position:relative;width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:0;padding:12px;background:#f1f0eb;cursor:zoom-in}
.gallery-image img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.image-placeholder{color:#b4a77f;font:30px Georgia,serif}
.gallery-number{position:absolute;left:10px;top:10px;background:#122b49e8;color:#fff;padding:5px 7px;border-radius:3px;font:10px "Segoe UI",Arial,sans-serif}
.gallery-meta{min-height:0;padding:12px 13px 14px;display:grid;grid-template-rows:40px 40px 28px;gap:3px}
.gallery-meta strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#203a52;font:16px Georgia,serif;line-height:1.25;margin:0}
.gallery-meta span{display:block;color:#7a8790;font-size:10px;line-height:1.5}
.gallery-meta .gallery-artist{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#526675;font-size:13px;line-height:1.5}
.gallery-status-slot{display:flex;align-items:flex-end}
.gallery-status-slot .gallery-status{margin-top:0}
.gallery-card.taken .gallery-image img{filter:grayscale(1);opacity:.4}
.gallery-card.taken .gallery-image{background:#e2e5e6}
.gallery-card.taken .gallery-number{background:#64717b}
.gallery-status,.gallery-meta .gallery-status{display:inline-block;margin-top:8px;padding:3px 7px;border-radius:4px;font:10px "Segoe UI",Arial,sans-serif;line-height:1.4;font-weight:650}
.gallery-status[hidden]{display:none}
.gallery-status.taken{background:#e4e8eb;color:#606d77}
.dialog-copy .gallery-status{margin-top:9px}
.gallery-empty{text-align:center;padding:90px 10px;color:#74828c;grid-column:1/-1}
.artwork-dialog{position:fixed;width:min(920px,92vw);max-width:92vw;max-height:90vh;overflow:auto;border:1px solid #d9e0e4;border-radius:12px;padding:25px;background:#fff;color:#263746;box-shadow:0 25px 90px #102b3a66}
.artwork-dialog::backdrop{background:#061622bd;backdrop-filter:blur(3px)}
.dialog-close{position:sticky;top:0;float:right;width:38px;height:38px;border:1px solid #dfe5e8;border-radius:50%;background:#fff;color:#274358;font-size:25px;line-height:1;cursor:pointer;z-index:2}
.dialog-layout{clear:both;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);align-items:center;gap:28px;padding-top:5px}
.dialog-image-wrap{min-height:260px;max-height:70vh;display:flex;align-items:center;justify-content:center;background:#f1f0eb;border-radius:8px;padding:14px}
.dialog-image-wrap img{display:block;max-width:100%;max-height:66vh;width:auto;height:auto;object-fit:contain}
.dialog-copy .eyebrow{font-size:10px;font-weight:750;letter-spacing:.17em;color:#8a6e38}
.dialog-copy h2{margin:8px 0 18px;color:#122b49;font:32px Georgia,"Times New Roman",serif;font-weight:400}
.dialog-copy dl{margin:0;display:grid;gap:11px}
.dialog-copy dl div{border-bottom:1px solid #e8edef;padding-bottom:9px}
.dialog-copy dt{color:#7c8991;font-size:10px;text-transform:uppercase;letter-spacing:.12em}
.dialog-copy dd{margin:4px 0 0;color:#293f4d;font-size:13px;line-height:1.45}
.dialog-copy p{color:#61737e;font-size:13px;line-height:1.6;white-space:pre-line}
.artwork-preview:focus-visible,.dialog-close:focus-visible{outline:3px solid #caa45f;outline-offset:2px}
@media(max-width:1100px){.gallery-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-header{grid-template-columns:1fr 1fr}.gallery-brand{display:none}.gallery-title{text-align:left}.gallery-title h1{font-size:28px}}
@media(max-width:560px){.gallery-grid{--gallery-image-height:190px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gallery-header{min-height:145px}.gallery-title h1{font-size:23px}.gallery-meta{padding:12px 9px 14px}.gallery-meta strong{font-size:14px}.dialog-layout{grid-template-columns:1fr;gap:16px}.dialog-image-wrap{min-height:150px}.dialog-copy h2{font-size:26px}}
