.cdv-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2vw,24px);margin-top:24px}
.cdv-photo-grid .cdv-photo-tile{margin:0;min-width:0;background:#233b3d;overflow:hidden;border-radius:3px}
.cdv-photo-grid a{display:block;text-decoration:none;border:0;cursor:zoom-in}
.cdv-photo-grid img{display:block;width:100%;height:clamp(110px,30vw,340px);object-fit:contain}
.cdv-photo-grid figcaption{padding:12px;font-size:clamp(13px,1.6vw,20px);line-height:1.35;background:#eee8dc;color:#173b43}
.cdv-photo-details-title{margin-top:48px!important}
.cdv-photo-dialog{position:fixed;inset:0;margin:0;border:0;padding:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;background:#080e13;color:#fff;overflow:hidden}
.cdv-photo-dialog::backdrop{background:#080e13}
.cdv-photo-dialog [data-cdv-photo-close]{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:2;border:1px solid #ffffff88;border-radius:50%;background:#080e13cc;color:#fff;font-size:30px;width:48px;height:48px;cursor:pointer}
.cdv-photo-stage{width:100%;height:100%;padding:72px 12px 12px;overflow:auto;display:grid;place-items:center}
.cdv .cdv-photo-stage img{display:block;width:100%;height:100%;max-width:100%;max-height:calc(100dvh - 84px);object-fit:contain;cursor:zoom-in}
.cdv .cdv-photo-stage[data-zoomed] img{width:auto;height:auto;max-width:none;max-height:none;cursor:zoom-out}
.cdv-photo-stage[data-zoomed]{place-items:start}
.cdv-photo-dialog button:focus-visible{outline:3px solid #e9dfca;outline-offset:4px}
@media(max-width:700px){.cdv-photo-grid figcaption{padding:8px;font-size:12px}.cdv-photo-grid img{height:clamp(100px,30vw,210px)}}
