/* === Custom Block Styling === */
.popupImageGallery{
    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);
}


.popupImageGallery__image{
    width: 100%;
}

/* Layout */
.popupImageGallery__imageWrapper {
    cursor: pointer;
}

.popupImageGallery__popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.popupImageGallery__popup_active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupImageGallery__popupOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.85;
}

.popupImageGallery__popupInner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70%;
    padding: 40px;
    box-sizing: border-box;
}

/* Modules */
.popupImageGallery__popupImage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.popupImageGallery__popupClose {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.popupImageGallery__popupNav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    font-size: 60px;
    line-height: 1;
    cursor: pointer;
    padding: 10px 20px;
}

.popupImageGallery__popupNav_prev {
    left: 10px;
}

.popupImageGallery__popupNav_next {
    right: 10px;
}

/* Media queries */
@media (max-width: 767px) {
    .popupImageGallery__popupNav {
        font-size: 40px;
        padding: 10px;
    }

    .popupImageGallery__popupClose {
        top: 10px;
        right: 15px;
        font-size: 32px;
    }
}