/* La Pahi Palace main Weddings & Events gallery · v1.1.0 */
.lpwed-photo-gallery{padding:64px 0 70px;background:#f7f8f4;color:#193d2e}
.lpwed-photo-gallery *{box-sizing:border-box}
.lpwed-gallery-header{display:flex;align-items:end;justify-content:space-between;gap:26px;margin-bottom:23px}
.lpwed-gallery-header h2{font:400 clamp(32px,3.6vw,48px)/1.1 Georgia,serif;letter-spacing:-.034em;color:#143c2b;margin:10px 0 12px}
.lpwed-gallery-header p{max-width:770px;font-size:13px;color:#536e5f;line-height:1.7;margin:0}
.lpwed-gallery-actions{display:flex;flex-shrink:0;gap:9px;padding-bottom:6px}
.lpwed-gallery-actions button{width:43px;height:43px;border:1px solid #cbd9cf;border-radius:50%;background:white;color:#173e32;font-size:23px;line-height:1;cursor:pointer;display:grid;place-items:center}
.lpwed-gallery-actions button:hover:not(:disabled){background:#173e32;color:white}
.lpwed-gallery-actions button:disabled{opacity:.32;cursor:default}
.lpwed-gallery-window{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;outline-offset:5px}
.lpwed-gallery-window::-webkit-scrollbar{display:none}
.lpwed-gallery-track{display:flex;gap:14px;align-items:stretch}
.lpwed-gallery-card{flex:0 0 calc((100% - 42px)/4);min-width:0;border:1px solid #e1e8dd;background:white;border-radius:12px;padding:0;overflow:hidden;text-align:left;cursor:pointer;scroll-snap-align:start;box-shadow:0 2px 8px #0c2d190b;color:#163e2e}
.lpwed-gallery-card img{width:100%;aspect-ratio:5/4;object-fit:cover;display:block;transition:transform .3s}
.lpwed-gallery-card .lpwed-gallery-thumb{position:relative}
.lpwed-gallery-card .lpwed-gallery-badge{position:absolute;left:10px;bottom:10px;background:rgba(11,40,30,.82);color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;letter-spacing:.04em}
.lpwed-lightbox-body>video{display:block;max-height:calc(94vh - 100px);max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto;border-radius:6px;background:#000}

.lpwed-gallery-card:hover img{transform:scale(1.035)}
.lpwed-gallery-card span{display:block;font-size:13px;font-weight:700;padding:13px 14px 15px;line-height:1.3}
.lpwed-gallery-card:focus-visible{outline:3px solid #d1a451;outline-offset:3px}
.lpwed-gallery-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:17px}
.lpwed-gallery-bottom p{font-size:11px;color:#6a7e70;margin:0}
.lpwed-gallery-bottom a{font-size:12px;color:#226d49;font-weight:700;border-bottom:1px solid #a1c3a9;padding:4px 0}
.lpwed-lightbox{max-width:min(1100px,94vw);width:100%;max-height:94vh;border:0;border-radius:13px;background:#102b22;color:#fff;padding:12px;box-shadow:0 15px 80px #0007}
.lpwed-lightbox::backdrop{background:#03110cdd}
.lpwed-lightbox-body{position:relative;text-align:center}
.lpwed-lightbox-body>img{display:block;max-height:calc(94vh - 100px);max-width:100%;width:auto;height:auto;object-fit:contain;margin:auto;border-radius:6px}
.lpwed-lightbox-close{position:absolute;right:8px;top:8px;border:0;border-radius:50%;background:#fffffff5;color:#153a28;width:35px;height:35px;font-size:25px;cursor:pointer}
.lpwed-lightbox-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px}
.lpwed-lightbox-footer span{font-size:12px;text-align:center}
.lpwed-lightbox-footer button{border:1px solid #68917c;background:transparent;color:#fff;border-radius:8px;min-width:38px;height:35px;font-size:20px;cursor:pointer}
@media(max-width:1050px){.lpwed-gallery-card{flex-basis:calc((100% - 28px)/3)}}
@media(max-width:730px){.lpwed-photo-gallery{padding:42px 0 48px}.lpwed-gallery-header{align-items:flex-end;gap:9px}.lpwed-gallery-header h2{font-size:33px}.lpwed-gallery-header p{font-size:12px}.lpwed-gallery-actions button{width:37px;height:37px}.lpwed-gallery-card{flex-basis:calc((100% - 14px)/2)}.lpwed-gallery-card span{font-size:12px;padding:12px}.lpwed-gallery-bottom{align-items:flex-start;gap:8px}}
@media(max-width:480px){.lpwed-gallery-header h2{font-size:29px}.lpwed-gallery-header p{font-size:11px}.lpwed-gallery-card{flex-basis:82%}.lpwed-gallery-bottom{display:block}.lpwed-gallery-bottom a{display:inline-block;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.lpwed-gallery-card img{transition:none}}

/* v1.2.1: reliable video previews without requiring a CRM poster upload */
.lpwed-gallery-card .lpwed-gallery-thumb{display:block;position:relative;padding:0;overflow:hidden}
.lpwed-gallery-card .lpwed-gallery-thumb>img{display:block;width:100%;aspect-ratio:5/4;object-fit:cover}
.lpwed-gallery-card .lpwed-card-video{display:block;position:absolute;inset:0;width:100%;height:100%;aspect-ratio:5/4;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .2s}
.lpwed-gallery-card .lpwed-card-video.is-ready{opacity:1}
.lpwed-gallery-card .lpwed-gallery-badge{position:absolute;left:10px;bottom:10px;z-index:2;display:block;width:auto;padding:6px 9px;background:rgba(10,41,30,.9);color:#fff;font-size:10px;font-weight:800;line-height:1.2;border-radius:999px}
.lpwed-lightbox-body>video[hidden],.lpwed-lightbox-body>img[hidden]{display:none!important}
