/* === Custom Block Styling === */
.popupGrid{
    padding-top: var(--CB-padding-top);
    padding-right: var(--CB-padding-right);
    padding-bottom: var(--CB-padding-bottom);
    padding-left: var(--CB-padding-left);
    margin-top: var(--CB-margin-top);
    margin-bottom: var(--CB-margin-bottom);
}

.popupGrid__categoryTitle{
    font-size: var(--FC-font-size-24);
    text-align: center;
}

.popupGrid__categoryWrapper{
    background-size: cover;
    background-position: center;
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.popupGrid__category{
    text-align: center;
    color: var(--FC-white);
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px 32px;
    opacity: 0;
    position: relative;
    transition: var(--FC-default-transition);
}
.popupGrid__category::after{
    content: '';
    background-color: var(--FC-black);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -10;
    transition: var(--FC-default-transition);
}

.popupGrid__categoryWrapper:hover .popupGrid__category{
    opacity: 1;
}
.popupGrid__categoryWrapper:hover .popupGrid__category::after{
    opacity: .75;
}










/* Popup swiper styles */
.popupGrid__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;
}
.popupGrid__popupOuterWrapper.active{
    opacity: 1;
    pointer-events: all;
}

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

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

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

 .popupGrid__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;
 }





 .popupGridThumbnailSwiper {
    width: 100%;
}

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

.popupGrid__thumbActive {
    outline: 2px solid var(--FC-white);
}