.gallery-crop { display:block; position:relative; width:100%; overflow:hidden; background:#fff; }
.gallery-crop.crop-0161-1 { aspect-ratio: 1440 / 638; }
.gallery-crop.crop-0161-3 { aspect-ratio: 1431 / 625; }
.gallery-figure .gallery-crop img, .gallery-tile-crop img { position:absolute; max-width:none; max-height:none; height:auto; object-fit:fill; }
.gallery-crop.crop-0161-1 img { width:125%; left:-6.9%; top:-31.4%; }
.gallery-crop.crop-0161-3 img { width:125.8%; left:-15.1%; top:-42%; }
.gallery-image-wrap:has(.gallery-crop) { width:100%; }
.wesi-review-showroom .gallery-project-tile .gallery-tile-crop { position:absolute; top:50%; left:0; transform:translateY(-50%); filter:grayscale(1); }

.gallery-crop.crop-0150-2 { aspect-ratio: 660 / 792; }
.gallery-crop.crop-0150-2 img { width:227.3%; left:-63.6%; top:-15.8%; }
.gallery-crop.crop-0150-3 { aspect-ratio: 1080 / 948; }
.gallery-crop.crop-0150-3 img { width:138.9%; left:-18.1%; top:-7.7%; }
.gallery-figure .gallery-crop.crop-0150-2 { width:min(100%, 46vh); margin:auto; }
.gallery-figure .gallery-crop.crop-0150-3 { width:min(100%, 63vh); margin:auto; }

/* Presentation-only crops retain original files and feedback identities. */
.gallery-model-frame { display:block; box-sizing:border-box; padding:12px; margin:auto; max-width:100%; background:#fff; }
.gallery-model-frame:not(.gallery-model-tile) { box-sizing:content-box; max-width:calc(100% - 24px); }
.gallery-model-viewport { display:block; position:relative; overflow:hidden; background:#fff; }
.gallery-figure .gallery-model-viewport img, .gallery-project-tile .gallery-model-viewport img { position:absolute; margin:0; right:auto; bottom:auto; max-width:none; max-height:none; height:auto; object-fit:fill; }
.gallery-model-mask { position:absolute; display:block; background:#fff; pointer-events:none; }
.gallery-image-wrap:has(.gallery-model-frame) { width:100%; }
.wesi-review-showroom .gallery-project-tile .gallery-model-tile { position:relative; width:100%; top:50%; transform:translateY(-50%); filter:grayscale(1); padding:6px; }
@media (max-width:600px) { .gallery-model-frame { padding:8px; } .gallery-model-frame:not(.gallery-model-tile) { max-width:calc(100% - 16px); } }
/* Size the watermark within the displayed crop, not the lightbox or viewport. */
.gallery-watermark { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:block; width:84%; height:auto; pointer-events:none; user-select:none; overflow:visible; }
.gallery-watermark text { font-family:Arial,sans-serif; font-weight:700; font-size:55px; fill:rgba(130,130,130,.14); }
.gallery-natural-image { display:block; position:relative; width:fit-content; max-width:100%; margin:auto; }

/* Keep captions on the image edges; narrow models may need a compact overhang. */
.gallery-image-caption { width:max-content; min-width:min(100%, var(--gallery-image-width, 0px)); max-width:max(var(--gallery-image-width, 0px), min(100%, 20rem)); width:max-content; box-sizing:border-box; margin-left:auto; margin-right:auto; gap:16px; }
.gallery-image-caption span:last-child { white-space:nowrap; }

#intro .wesi-mapped-project-total { margin:10px 0 0; font-size:14px; font-weight:400; letter-spacing:.03em; color:#756b6f; }

.gallery-privacy-link { text-align:center; padding:24px; font-size:13px; }

.wesi-approved-project { display:block; cursor:pointer; color:inherit; }
.wesi-approved-project .gallery-model-tile { position:relative; width:100%; top:50%; transform:translateY(-50%); filter:grayscale(1); padding:6px; }
.wesi-approved-project .gallery-model-tile .gallery-model-viewport { width:100%; }
.wesi-approved-project .portfolio-item-hover { z-index:3; }
.wesi-approved-project:focus-visible { outline:3px solid #5a434c; outline-offset:3px; }
.wesi-approved-lightbox { position:relative; max-width:1100px; width:calc(100vw - 140px); margin:35px auto; color:white; }
.wesi-approved-lightbox .gallery-figure { margin:0; width:100%; }
.wesi-approved-lightbox .gallery-image-wrap { display:flex; justify-content:center; align-items:center; width:100%; }
.wesi-approved-lightbox .gallery-natural-image img { display:block; max-width:100%; max-height:58vh; height:auto; width:auto; }
.wesi-approved-lightbox .wesi-project-name { margin:0 0 12px; color:white !important; text-align:center; font-size:16px; }
.wesi-approved-lightbox .mfp-close { color:white; right:-40px; top:-15px; }
.wesi-approved-caption { display:flex; justify-content:space-between; gap:16px; margin:10px auto 0; min-width:min(100%, var(--gallery-image-width, 0px)); max-width:max(var(--gallery-image-width, 0px), min(100%, 20rem)); width:max-content; box-sizing:border-box; color:#ddd; font-size:14px; }
.wesi-approved-caption span:last-child { white-space:nowrap; }
.wesi-map-project { color:#5a434c; text-decoration:underline; }
@media(max-width:600px) { .wesi-approved-lightbox { width:calc(100vw - 60px); } .wesi-approved-lightbox .mfp-close { right:-25px; } }
