.galleryPopupBackgroundIsVisible {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 50px);
    z-index: 95;
    background-color: var(--white);
    text-align: center;
    overflow: hidden;
    overscroll-behavior: contain;
}

.galleryPopupBackgroundIsVisible .galleryPopupImage {
    width: 100%;
    height: 100%;
    max-height: calc(100% - 20px);
    max-width: calc(100% - 20px);
    object-fit: contain;
    margin: 10px;
    animation: animationOpacity var(--durationM);
}

.galleryPopupBackgroundUnVisible .galleryPopupCloseButton, .galleryPopupBackgroundUnVisible .galleryPopupBackButton, .galleryPopupBackgroundUnVisible .galleryPopupNextButton {
    display: none;
}

.galleryPopupCloseButton, .galleryPopupBackButton, .galleryPopupNextButton {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 40px;
    height: 40px;
    background-color: var(--black);
    opacity: var(--opacityMiddle);
    transition: opacity var(--durationS) var(--course);
    cursor: pointer;
    border-radius: var(--borderRadius);
    z-index: 96;
}

.galleryPopupCloseButton {
    top: 60px;
    right: 10px;
}

.galleryPopupBackButton {
    top: calc(50% - 20px);
    left: 10px;
}

.galleryPopupNextButton {
    top: calc(50% - 20px);
    right: 10px;
}

.galleryPopupCloseButton > i, .galleryPopupBackButton > i, .galleryPopupNextButton > i {
    font-size: 30px;
    color: var(--white);
}

.galleryPopupCloseButton:hover, .galleryPopupBackButton:hover, .galleryPopupNextButton:hover {
    opacity: var(--opacityUp);
    transition: opacity var(--durationS) var(--course);
}

.galleryPopupCounter {
    position: absolute;
    color: var(--white);
    background-color: var(--black);
    padding: 12px;
    border-radius: var(--borderRadius);
    font-size: 20px;
    z-index: 1;
}

.blockSmallResponse:hover .galleryPopupCounter, .blockLargeResponse:hover .galleryPopupCounter {
    z-index: 0;
}

.galleryPopupBackgroundUnVisible .galleryPopupCounter {
    top: 0;
    left: 0;
}

.galleryPopupBackgroundIsVisible .galleryPopupCounter {
    top: 10px;
    left: 10px;
}

.galleryPopupRadius {
    border-radius: 50%;
    border: 5px var(--borderStyle) var(--primaryColor);
}

.galleryMarqueeContainer {
    overflow: hidden;
    width: 100%;
    max-height: 80px;
    position: relative;
    display: flex;
}

.galleryMarqueeHover {
    display: flex;
    position: relative;
    animation: animationMarquee var(--durationXL) linear infinite;
    justify-content: space-around;
    align-items: center;
}

.galleryMarqueeContainer:hover > .galleryMarqueeHover {
    animation-play-state: paused;
}

.galleryMarqueeImage {
    margin: 0 10px;
    max-width: 30dvw;
    max-height: 80px;
}

.galleryMarqueeContainer::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-image: linear-gradient(to right, var(--white), transparent 10%, transparent 90%, var(--white));
}

.gallerySliderContainer {
    position: relative;
    width: 100%;
    height: calc(100dvh - 50px);
}

.gallerySliderParallaxImage, .gallerySliderImage {
    display: flex;
    width: 100%;
    height: calc(100dvh - 50px);
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat, repeat-y;
    transition: opacity .8s ease-in;
    position: absolute;
}

.gallerySliderContainerImageUnVisible {
    opacity: 0;
}

.gallerySliderContainerImageIsVisible {
    opacity: 1;
}

.gallerySliderText {
    color: var(--white);
    text-shadow: var(--black) 1px 0 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    letter-spacing: 2px;
    font-size: clamp(30px, 5dvw, 100px);
}

.gallerySliderTextBackground {
    color: var(--white);
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    font-size: clamp(30px, 5dvw, 100px);
}

@media (prefers-color-scheme: dark) {
    .galleryPopupBackgroundIsVisible {
        background-color: var(--whiteD);
    }

    .galleryPopupBackgroundIsVisible .galleryPopupImage {
        animation: animationOpacityD var(--durationM);
    }

    .galleryPopupCloseButton, .galleryPopupBackButton, .galleryPopupNextButton {
        background-color: var(--blackD);
    }

    .galleryPopupCloseButton > i, .galleryPopupBackButton > i, .galleryPopupNextButton > i {
        color: var(--whiteD);
    }

    .galleryPopupCounter {
        color: var(--whiteD);
        background-color: var(--blackD);
    }

    .galleryPopupRadius {
        border-color: var(--primaryColorD);
    }

    .galleryMarqueeContainer::after {
        background-image: linear-gradient(to right, var(--whiteD), transparent 10%, transparent 90%, var(--whiteD));
    }

    .gallerySliderText {
        color: var(--blackD);
        text-shadow: var(--whiteD) 1px 0 5px;
    }

    .gallerySliderTextBackground {
        color: var(--blackD);
    }
}