.bcg-gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 8px;
margin: 1.75em 0;
}
@media (min-width: 700px) {
.bcg-gallery {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 10px;
}
}
.bcg-gallery .bcg-gallery__item {
display: block;
aspect-ratio: 3 / 2;
overflow: hidden;
border-radius: 4px;
background: rgba(128, 128, 128, 0.14);
line-height: 0;
}
.bcg-gallery .bcg-gallery__item img {
display: block;
width: 100%;
max-width: none;
height: 100%;
margin: 0;
border-radius: 0;
object-fit: cover;
transition: transform 0.25s ease;
}
.bcg-gallery .bcg-gallery__item:hover img,
.bcg-gallery .bcg-gallery__item:focus-visible img {
transform: scale(1.04);
}
.bcg-gallery .bcg-gallery__item:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}
.bcg-figure {
margin: 1.75em 0;
text-align: center;
}
.bcg-figure img {
max-width: 100%;
height: auto;
border-radius: 4px;
}
.bcg-figure figcaption {
margin-top: 0.5em;
font-size: 0.875em;
opacity: 0.75;
}
.bcg-figure .bcg-zoom {
cursor: zoom-in;
}
.bcg-source-note {
margin-top: 2em;
padding-top: 1em;
border-top: 1px solid rgba(128, 128, 128, 0.32);
font-size: 0.9em;
opacity: 0.85;
} .bcg-lightbox-open {
overflow: hidden;
}
.bcg-lightbox {
position: fixed;
inset: 0;
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.93);
}
.bcg-lightbox[hidden] {
display: none;
}
.bcg-lightbox .bcg-lightbox__img {
max-width: 94vw;
max-height: 84vh;
width: auto;
height: auto;
border-radius: 2px;
object-fit: contain;
}
.bcg-lightbox .bcg-lightbox__counter {
position: absolute;
right: 0;
bottom: 14px;
left: 0;
margin: 0;
color: #fff;
font-size: 14px;
line-height: 1.4;
text-align: center;
opacity: 0.8;
}
.bcg-lightbox .bcg-lightbox__counter[hidden] {
display: none;
}
.bcg-lightbox .bcg-lightbox__btn {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
width: 48px;
height: 48px;
margin: 0;
padding: 0 0 4px;
border: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.14);
box-shadow: none;
color: #fff;
font: 400 32px/1 Arial, Helvetica, sans-serif;
cursor: pointer;
}
.bcg-lightbox .bcg-lightbox__btn[hidden] {
display: none;
}
.bcg-lightbox .bcg-lightbox__btn:hover,
.bcg-lightbox .bcg-lightbox__btn:focus {
background: rgba(255, 255, 255, 0.3);
color: #fff;
}
.bcg-lightbox .bcg-lightbox__btn:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
.bcg-lightbox .bcg-lightbox__close {
top: 14px;
right: 14px;
}
.bcg-lightbox .bcg-lightbox__prev {
top: 50%;
left: 14px;
transform: translateY(-50%);
}
.bcg-lightbox .bcg-lightbox__next {
top: 50%;
right: 14px;
transform: translateY(-50%);
}
@media (max-width: 600px) {
.bcg-lightbox .bcg-lightbox__prev,
.bcg-lightbox .bcg-lightbox__next {
top: auto;
bottom: 44px;
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
.bcg-gallery .bcg-gallery__item img {
transition: none;
}
}