/* Preserve original aspect ratio. No square crops. */
.ps-gallery-grid{display:block!important;columns:4 225px;column-gap:9px}
.ps-gallery-tile{display:block;break-inside:avoid;margin:0 0 9px;border-radius:9px}
.ps-gallery-tile img{width:100%!important;height:auto!important;aspect-ratio:auto!important;object-fit:contain!important;display:block;background:#081719}
.ps-gallery-overlay{position:static!important;background:#153138;padding:7px 9px;display:flex;flex-wrap:wrap;gap:5px}
.ps-photo-focus{display:block;cursor:zoom-in}
.ps-photo-detail img{width:100%;height:auto;max-height:78vh;object-fit:contain;cursor:zoom-in}
.ps-photo-lightbox{position:fixed;inset:0;border:0;border-radius:0;padding:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;background:#061014;color:white;overflow:hidden}
.ps-photo-lightbox::backdrop{background:#020609ef}
.ps-lightbox-shell{display:flex;flex-direction:column;min-height:100dvh;max-height:100dvh}
.ps-lightbox-top,.ps-lightbox-bottom{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px max(12px,env(safe-area-inset-right))}
.ps-lightbox-top button,.ps-lightbox-body button{color:white;background:#21413e;border:1px solid #66857c;border-radius:9px;font-size:20px;cursor:pointer;min-width:42px;min-height:42px}
.ps-lightbox-body{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:0;padding:0 8px}
.ps-lightbox-body img{width:auto;height:auto;max-width:calc(100vw - 120px);max-height:calc(100dvh - 150px);object-fit:contain!important;min-width:0}
.ps-lightbox-bottom a{font-size:13px;color:#a5eccb}
.ps-lightbox-bottom span{font-size:12px;color:#d1e2dc;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){.ps-gallery-grid{columns:2 130px;column-gap:5px}.ps-gallery-tile{margin-bottom:5px}.ps-lightbox-body{gap:2px;padding:0 4px}.ps-lightbox-body img{max-width:calc(100vw - 102px);max-height:calc(100dvh - 152px)}.ps-lightbox-bottom{padding-bottom:max(10px,env(safe-area-inset-bottom))}}
