/* === Custom Block Styling === */
.galleryBlock{
    padding: var(--CB-padding-top) var(--CB-padding-right) var(--CB-padding-bottom) var(--CB-padding-left);
    margin: var(--CB-margin-top) var(--CB-margin-bottom);
    background-color: var(--CB-background-color);
    background-image: var(--CB-background-image);
    background-position: var(--CB-background-position);
    background-size: cover;
}

.gallery__copyRow{
    justify-content: center;
    padding-bottom: 64px;
}

.gallery__imageWrapper{
    /* height: 600px; */
    aspect-ratio: 6/9;
    cursor: pointer;
}

.gallery__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.gallery__bottomRow{
    justify-content: center;
    padding-top: 64px;
}

.gallery__swiperButtonWrapper .swiper-button-prev,
.gallery__swiperButtonWrapper .swiper-button-next{
    position: static;
    border: solid 1px var(--FC-black);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    aspect-ratio: 1/1;
}

.gallery__swiperButtonWrapper .swiper-button-next::after{
    content: '';
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'><path d='M12 4.3999L10.59 5.8099L16.17 11.3999H4V13.3999H16.17L10.59 18.9899L12 20.3999L20 12.3999L12 4.3999Z' fill='%23a86b4c'/></svg>");
    background-size: cover;
    background-position: center;
    width: 28px;
    height: 28px;
}

.gallery__swiperButtonWrapper .swiper-button-prev::after{
    content: '';
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'><path d='M20 11.3999H7.83L13.42 5.8099L12 4.3999L4 12.3999L12 20.3999L13.41 18.9899L7.83 13.3999H20V11.3999Z' fill='%23a86b4c'/></svg>");
    background-size: cover;
    background-position: center;
    width: 28px;
    height: 28px;
}

.gallery__swiperButtonWrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    height: 50px;
}

.gallery__bottomCopyWrapper{
    padding-top: 25px;
}
.gallery__bottomCopyWrapper .wp-block-buttons{
    padding-top: 25px;
    text-align: center;
}


/* Each slide should flex to auto width */
.gallerySwiper .swiper-slide {
  width: calc(100% / 5); /* 5 slides in view total */
}

/* Make first and last slides half width */
.gallerySwiper .swiper-slide:first-child,
.gallerySwiper .swiper-slide:last-child {
  width: calc(100% / 10); /* half of a normal slide */
}




/* Popup swiper styles */
.gallery__popupOuterWrapper{
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1029;
}
.gallery__popupOuterWrapper.active{
    opacity: 1;
    pointer-events: all;
}

.gallery__popupInnerWrapper{
    width: 100%;
    margin-bottom: 25px;
}
.gallery__popupClose{
    content: 'X';
    color: var(--FC-white);
    width: 40px;
    height: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

 .gallery__popupImage{
    max-height: 600px;
    width: auto;
    display: block;
    margin: auto;
    user-select: none;
 }

 .popupSlider::after{
    color: var(--FC-white);
 }

 .gallery__popupThumbnail{
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
 }

 .galleryPopupThumbnailSwiper .swiper-slide{
    max-width: 150px;
    max-height: 150px;
    aspect-ratio: 1/1;
 }