.jbp-gallery { display: grid; grid-template-columns: repeat(var(--jbp-columns, 4), minmax(0, 1fr)); gap: 12px; }
.jbp-gallery-shell { position: relative; }
.jbp-gallery-item { position: relative; margin: 0; overflow: hidden; background: #111; }
.jbp-gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.jbp-gallery-open img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .25s ease; }
.jbp-gallery-open:hover img { transform: scale(1.025); }
.jbp-gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 10px 8px; color: #fff; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.72)); pointer-events: none; }
.jbp-like { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 48px; height: 36px; padding: 0 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 20px; background: rgba(0,0,0,.58); color: #fff; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.jbp-like:hover { transform: scale(1.05); background: rgba(0,0,0,.82); }
.jbp-like:disabled { cursor: wait; opacity: .65; }
.jbp-like .jbp-heart { color: #fff; font-size: 19px; line-height: 1; }
.jbp-like.is-liked { background: #e62b47; border-color: #e62b47; }
.jbp-gallery-like { position: absolute; z-index: 2; top: 9px; right: 9px; }
.jbp-carousel { --jbp-gap: 12px; --jbp-visible: var(--jbp-visible-desktop, 4); padding: 0 34px; }
.jbp-carousel-viewport { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.jbp-carousel-viewport::-webkit-scrollbar { display: none; }
.jbp-carousel .jbp-gallery { display: flex; gap: var(--jbp-gap); }
.jbp-carousel .jbp-gallery-item { flex: 0 0 calc((100% - (var(--jbp-visible) - 1) * var(--jbp-gap)) / var(--jbp-visible)); scroll-snap-align: start; }
.jbp-carousel .jbp-gallery-open img { aspect-ratio: 1 / 1; }
.jbp-carousel-prev, .jbp-carousel-next { position: absolute; z-index: 4; top: 50%; width: 46px; height: 46px; margin-top: -23px; padding: 0; border: 0; border-radius: 50%; background: #111; color: #fff; font-size: 40px; line-height: 38px; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.28); transition: transform .15s ease, background .15s ease; }
.jbp-carousel-prev:hover, .jbp-carousel-next:hover { transform: scale(1.06); background: #e62b47; }
.jbp-carousel-prev { left: 3px; }
.jbp-carousel-next { right: 3px; }
.jbp-lightbox[hidden] { display: none; }
.jbp-lightbox { position: fixed; z-index: 999999; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px 20px 20px; background: rgba(0,0,0,.92); }
.jbp-lightbox img { max-width: min(94vw, 1600px); max-height: 82vh; object-fit: contain; }
.jbp-lightbox-info { display: flex; align-items: center; gap: 18px; margin-top: 10px; color: white; }
.jbp-lightbox-info p { margin: 0; }
.jbp-lightbox-count { opacity: .72; }
.jbp-lightbox-close { position: absolute; top: 8px; right: 18px; border: 0; background: none; color: white; font-size: 42px; line-height: 1; cursor: pointer; }
.jbp-lightbox-prev, .jbp-lightbox-next { position: absolute; top: 50%; width: 58px; height: 78px; margin-top: -39px; padding: 0; border: 0; border-radius: 4px; background: rgba(0,0,0,.38); color: white; font-size: 64px; line-height: 64px; cursor: pointer; transition: background .2s ease; }
.jbp-lightbox-prev:hover, .jbp-lightbox-next:hover { background: rgba(0,0,0,.75); }
.jbp-lightbox-prev { left: 14px; }
.jbp-lightbox-next { right: 14px; }
body.jbp-lightbox-open { overflow: hidden; }
@media (max-width: 900px) {
    .jbp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jbp-carousel { --jbp-visible: 2; }
}
@media (max-width: 520px) {
    .jbp-gallery { grid-template-columns: 1fr; }
    .jbp-carousel { --jbp-visible: 1; padding-inline: 28px; }
    .jbp-carousel-prev, .jbp-carousel-next { width: 40px; height: 40px; margin-top: -20px; font-size: 35px; line-height: 33px; }
    .jbp-carousel-prev { left: 0; }
    .jbp-carousel-next { right: 0; }
    .jbp-lightbox { padding-inline: 8px; }
    .jbp-lightbox-prev, .jbp-lightbox-next { top: auto; bottom: 52px; width: 52px; height: 52px; margin: 0; border-radius: 50%; font-size: 48px; line-height: 45px; background: rgba(0,0,0,.68); }
    .jbp-lightbox-info { padding: 0 64px; text-align: center; }
}
