.pps-gallery-archive{max-width:1200px;margin:32px auto;padding:0 20px}.pps-gallery-grid,.pps-album-grid{display:grid;grid-template-columns:repeat(var(--ppsg-cols,3),minmax(0,1fr));gap:var(--ppsg-gap,20px)}.pps-gallery-masonry{columns:var(--ppsg-cols,3);column-gap:var(--ppsg-gap,16px)}.pps-gallery figure{margin:0;break-inside:avoid}.pps-gallery-masonry figure{margin-bottom:var(--ppsg-gap)}.pps-gallery-photo{display:block}.pps-gallery-photo img{width:100%;height:auto;display:block;border-radius:var(--ppsg-radius)}.pps-gallery-grid img{aspect-ratio:4/3;object-fit:cover}.pps-gallery figcaption{font-size:.9em;margin-top:5px}.pps-album-card{border:1px solid #e5e0e8;border-radius:12px;overflow:hidden;background:#fff}.pps-album-card a{display:block;text-decoration:none;color:inherit}.pps-album-card img,.pps-album-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.pps-album-placeholder{background:#f3edf7;display:grid;place-items:center}.pps-album-card a>div{padding:16px}.pps-album-card h3{margin:0 0 6px}.pps-lightbox{border:0;background:#17131c;color:white;padding:0;width:96vw;max-width:1100px;max-height:95vh;border-radius:12px;overflow:auto}.pps-lightbox::backdrop{background:#000d}.pps-lightbox-inner{position:relative;padding:40px 48px 20px;display:grid;place-items:center}.pps-lightbox figure{margin:0;text-align:center}.pps-lightbox img{max-width:100%;max-height:75vh;object-fit:contain}.pps-lightbox button{position:absolute;color:white;background:#ffffff20;border:0;border-radius:8px;padding:4px 12px;font-size:32px;line-height:1.2;cursor:pointer}.pps-lightbox button:focus-visible{outline:2px solid #fff}.pps-lightbox-close{top:5px;right:8px}.pps-lightbox-prev{left:4px;top:45%}.pps-lightbox-next{right:4px;top:45%}.pps-lightbox-count{display:block;font-size:.85em;margin-top:5px}.pps-lightbox button[hidden]{display:none}@media(max-width:850px){.pps-gallery-grid,.pps-album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pps-gallery-masonry{columns:2}}@media(max-width:480px){.pps-album-grid{grid-template-columns:1fr}.pps-lightbox-inner{padding:40px 35px 15px}}
.pps-gallery-grid,.pps-gallery-uniform,.pps-gallery-square{display:grid;grid-template-columns:repeat(var(--ppsg-cols,3),minmax(0,1fr));gap:var(--ppsg-gap,16px);align-items:start}.pps-gallery-grid img{aspect-ratio:auto;object-fit:contain}.pps-gallery-uniform img{aspect-ratio:4/3;object-fit:cover}.pps-gallery-square img{aspect-ratio:1;object-fit:cover}.pps-album-card img{object-fit:contain;background:#f6f3f7}.pps-gallery-heading{margin:0 0 24px}.pps-gallery-heading.banner{padding:24px 18px;text-align:center;border-radius:12px}.pps-gallery-heading h1{color:inherit;margin:0}.pps-gallery-heading p{margin:8px 0 0}.pps-album-meta{font-size:.9rem;color:#615866;margin:8px 0 18px;line-height:1.7}.pps-album-card .pps-album-meta{margin:4px 0 0}.pps-gallery-back{display:inline-block;margin-bottom:12px}.pps-gallery-archive article>h1{margin:0 0 12px}@media(max-width:850px){.pps-gallery-grid,.pps-gallery-uniform,.pps-gallery-square{grid-template-columns:repeat(var(--ppsg-tablet,2),minmax(0,1fr))}.pps-gallery-masonry{columns:var(--ppsg-tablet,2)}}@media(max-width:480px){.pps-gallery-grid,.pps-gallery-uniform,.pps-gallery-square{grid-template-columns:repeat(var(--ppsg-mobile,1),minmax(0,1fr))}.pps-gallery-masonry{columns:var(--ppsg-mobile,1)}}

/* Isolate gallery figures from theme and block-editor layout rules. */
.pps-gallery.pps-gallery-grid,.pps-gallery.pps-gallery-uniform,.pps-gallery.pps-gallery-square{align-content:start;align-items:start;grid-auto-rows:auto;min-height:0;height:auto;margin:16px 0 0;padding:0}
.pps-gallery.pps-gallery-masonry{display:block;min-height:0;height:auto;margin:16px 0 0;padding:0;column-fill:balance}
.pps-gallery > figure{float:none;position:relative;min-height:0;height:auto;max-width:none;width:100%;margin:0;padding:0;align-self:start;break-inside:avoid}
.pps-gallery.pps-gallery-masonry > figure{display:inline-block;vertical-align:top;margin:0 0 var(--ppsg-gap,16px)}
.pps-gallery > figure > a.pps-gallery-photo{display:block;min-height:0;height:auto;margin:0;padding:0;line-height:0}
.pps-gallery > figure > a > img{display:block;margin:0;width:100%;height:auto;max-width:100%}
.pps-gallery-grid > figure > a > img,.pps-gallery-masonry > figure > a > img{aspect-ratio:auto;object-fit:contain}
.pps-album-description > :last-child{margin-bottom:0}
.pps-gallery-archive .pps-album-description{margin-bottom:0}

/* WordPress auto-sizes may reserve a 3000 x 1500 intrinsic placeholder
 * for lazy images. Use the image's real width/height ratio instead. */
.pps-gallery > figure > a.pps-gallery-photo > img {
    contain-intrinsic-size: none !important;
    width: 100%;
    height: auto;
}
.pps-gallery-grid > figure > a.pps-gallery-photo > img,
.pps-gallery-masonry > figure > a.pps-gallery-photo > img {
    aspect-ratio: auto var(--ppsg-photo-ratio, 4 / 3);
}
