.bpg-gallery { --bpg-thumb-size:72px; --bpg-thumb-gap:10px; width:100%; }
.bpg-gallery__stage { position:relative; background:#f6f6f6; overflow:hidden; }
.bpg-gallery__main { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.bpg-gallery__main:not(button) { cursor:default; }
.bpg-gallery__image { display:block; width:100%; aspect-ratio:1/1; object-fit:contain; }
.bpg-gallery__arrow { box-sizing:border-box; position:absolute; z-index:2; top:50%; transform:translateY(-50%); display:flex; align-items:center; justify-content:center; padding:0; width:44px; height:44px; border:var(--bpg-arrow-border, 0px) solid currentColor; border-radius:var(--bpg-arrow-radius, 50%); background-color:rgba(0,0,0,.68); color:#fff; cursor:pointer; font-size:24px; line-height:1; }
.bpg-gallery__arrow > span { display:flex; align-items:center; justify-content:center; line-height:1; }
.bpg-gallery__arrow svg { display:block; width:1em; height:1em; fill:currentColor; }
.bpg-gallery__arrow:hover { background-color:#000; }
.bpg-no-arrow-bg .bpg-gallery__arrow:not(:hover) { background-color:transparent !important; }
.bpg-no-arrow-bg .bpg-gallery__arrow:hover { background-color:transparent; }
.bpg-gallery__arrow--prev { left:14px; }.bpg-gallery__arrow--next { right:14px; }
.bpg-gallery__thumbs { display:flex; gap:var(--bpg-thumb-gap); margin-top:var(--bpg-thumb-gap); overflow-x:auto; padding:2px; scrollbar-width:thin; }
.bpg-gallery__thumb { box-sizing:border-box; flex:0 0 var(--bpg-thumb-size); width:var(--bpg-thumb-size); height:var(--bpg-thumb-size); padding:0; overflow:hidden; border:0 solid transparent; background:#f3f3f3; cursor:pointer; opacity:.72; }
.bpg-align-center .bpg-gallery__thumb:first-child { margin-left:auto; }.bpg-align-center .bpg-gallery__thumb:last-child { margin-right:auto; }
.bpg-align-end .bpg-gallery__thumb:first-child { margin-left:auto; }.bpg-align-between .bpg-gallery__thumbs { justify-content:space-between; }
.bpg-gallery__thumb img { display:block; width:100%; height:100%; object-fit:cover; }.bpg-gallery__thumb:hover,.bpg-gallery__thumb:focus-visible,.bpg-gallery__thumb.is-active { opacity:1; }
.bpg-gallery__thumb.is-active { border-width:var(--bpg-border-width, 2px); border-color:currentColor; }
.bpg-gallery__thumb:not(.is-active):hover { border-width:var(--bpg-hover-border-width, 2px); border-color:currentColor; }
.bpg-lightbox { position:fixed; z-index:999999; inset:0; display:grid; place-items:center; padding:24px; background:rgba(0,0,0,.92); }.bpg-lightbox[hidden] { display:none; }
.bpg-lightbox__image { max-width:100%; max-height:calc(100vh - 48px); object-fit:contain; }.bpg-lightbox__close,.bpg-lightbox__arrow { position:absolute; border:0; color:#fff; background:rgba(0,0,0,.6); cursor:pointer; }.bpg-lightbox__close { top:16px; right:16px; width:44px; height:44px; font-size:30px; }.bpg-lightbox__arrow { top:50%; transform:translateY(-50%); width:48px; height:56px; font-size:30px; }.bpg-lightbox__arrow--prev { left:12px; }.bpg-lightbox__arrow--next { right:12px; }
.bpg-lightbox__close:focus-visible,.bpg-lightbox__arrow:focus-visible,.bpg-gallery button:focus-visible { outline:3px solid #1e90ff; outline-offset:3px; }
@media (max-width: 480px) { .bpg-gallery__arrow { width:40px; height:40px; }.bpg-gallery__arrow--prev { left:8px; }.bpg-gallery__arrow--next { right:8px; }.bpg-lightbox { padding:12px; }.bpg-lightbox__arrow { width:40px; }.bpg-lightbox__arrow--prev { left:4px; }.bpg-lightbox__arrow--next { right:4px; } }
