.pattern__popup_gallery_button {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1
}

.pattern__popup_gallery_button .button {
    backdrop-filter: blur(5px);
    background-color: #161b2675;
    border: none;
    font-size: 0;
    border-radius: 4px;
    width: 29px;
    height: 29px;
    padding: 0;
    cursor: zoom-in
}

.pattern__popup_gallery_button .button.icons_dictionary_after:after {
    -webkit-mask-size: 17px 17px;
    mask-size: 17px 17px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0
}

body:has(.nas-popup-gallery) {
    overflow: hidden
}

.nas-popup-gallery .nas-popup-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--cool-900);
    opacity: 0.6;
    z-index: 99998
}

.nas-popup-gallery .nas-popup-gallery-content {
    position: fixed;
    overflow: hidden;
    transition: opacity 0.5s;
    opacity: 0;
    height: 100%;
    width: 100%;
    max-width: 1920px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cool-900);
    z-index: 99999
}

.nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close {
    position: absolute;
    z-index: 10;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #161b268a;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
    border: 0;
}

.nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close:after {
    margin: 0;
    background: #FFF;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
    width: 25px;
    height: 25px
}

.nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close:focus-visible {
    outline: 2px solid #FFF
}

.nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close:focus-visible:after {
    background: #FFF
}

@media (hover:hover) {
    .nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close:hover {
        background: var(--cool-800)
    }
}

@media (hover:none) {
    .nas-popup-gallery .nas-popup-gallery-content .popup-gallery-close:active {
        background: var(--cool-800)
    }
}

.nas-popup-gallery.show .nas-popup-gallery-content {
    opacity: 1
}

.popup-gallery-slider {
    height: 100%
}

.popup-gallery-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center
}

.popup-gallery-slider .swiper-slide .media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    height: calc(100% - 100px);
    padding: 10px 20px;
    overflow: hidden
}

@media only screen and (max-width:768px) {
    .popup-gallery-slider .swiper-slide .media {
        height: calc(100% - 150px);
        padding: 10px
    }
}

@media only screen and (max-width:600px) {
    .popup-gallery-slider .swiper-slide .media {
        padding: 10px 0
    }
}

@media only screen and (max-width:500px) {
    .popup-gallery-slider .swiper-slide .media {
        height: calc(100% - 180px)
    }
}

.popup-gallery-slider .swiper-slide .media img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    cursor: grab
}

@media only screen and (max-width:600px) {
    .popup-gallery-slider .swiper-slide .media img {
        border-radius: unset
    }
}

.popup-gallery-slider .swiper-slide .media iframe {
    border: none;
    width: 100%;
    height: 100%
}

.popup-gallery-slider .swiper-slide .media.vimeo:before,
.popup-gallery-slider .swiper-slide .media.vimeo:after {
    cursor: grab;
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    width: calc(50% - 100px);
    min-width: 33%
}

.popup-gallery-slider .swiper-slide .media.vimeo:before {
    left: 0
}

.popup-gallery-slider .swiper-slide .media.vimeo:after {
    right: 0
}

.popup-gallery-slider .swiper-slide .attribution {
    display: flex;
    justify-content: center;
    height: 100px;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: #242a37;
    border-top: 1px solid #2f384a;
    gap: 0 20px;
    z-index: 2;
    color: var(--cool-100);
    -webkit-font-smoothing: antialiased;
    flex-wrap: wrap;
    flex-direction: row
}

@media only screen and (max-width:768px) {
    .popup-gallery-slider .swiper-slide .attribution {
        height: 150px
    }
}

@media only screen and (max-width:500px) {
    .popup-gallery-slider .swiper-slide .attribution {
        height: 180px
    }
}

.popup-gallery-slider .swiper-slide .attribution .attribution-left,
.popup-gallery-slider .swiper-slide .attribution .attribution-right {
    flex-shrink: 0;
    flex-grow: 0;
    width: calc(50% - 10px);
    max-width: 700px
}

@media only screen and (max-width:768px) {

    .popup-gallery-slider .swiper-slide .attribution .attribution-left,
    .popup-gallery-slider .swiper-slide .attribution .attribution-right {
        width: 100%
    }
}

.popup-gallery-slider .swiper-slide .attribution .media-name:empty {
    display: none
}


.popup-gallery-slider .swiper-slide .attribution .media-credits a {
    color: inherit;
    text-decoration: underline
}

.popup-gallery-slider .swiper-slide .attribution .media-credits a:hover {
    color: inherit;
    text-decoration: none
}

.popup-gallery-slider .swiper-slide .attribution .media-credits a:focus-visible {
    outline: 2px solid #FFF
}

.popup-gallery-slider .swiper-slide .popup-gallery-unzoom {
    display: none;
    position: absolute;
    z-index: 10;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: #161b268a;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.1s;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 0
}

.popup-gallery-slider .swiper-slide .popup-gallery-unzoom:after {
    margin: 0;
    background: #FFF;
    -webkit-mask-size: 24px 24px;
    mask-size: 24px 24px;
    width: 40px;
    height: 40px
}

.popup-gallery-slider .swiper-slide .popup-gallery-unzoom:focus-visible {
    outline: 2px solid #FFF
}

.popup-gallery-slider .swiper-slide .popup-gallery-unzoom:focus-visible:after {
    background: #FFF
}

@media (hover:hover) {
    .popup-gallery-slider .swiper-slide .popup-gallery-unzoom:hover {
        background: var(--cool-800)
    }
}

@media (hover:none) {
    .popup-gallery-slider .swiper-slide .popup-gallery-unzoom:active {
        background: var(--cool-800)
    }
}

.popup-gallery-slider .swiper-slide.swiper-slide-zoomed .popup-gallery-unzoom {
    display: flex
}

.popup-gallery-slider .swiper-slide.swiper-slide-zoomed .media img {
    border-radius: unset
}

.popup-gallery-slider.swiper-initialized .swiper-wrapper:has(.swiper-slide-zoomed) {
    z-index: 200
}

.popup-gallery-slider.swiper-initialized .swiper-slide:not(.swiper-slide-active) a {
    display: none !important
}

.popup-gallery-slider .slider-prev,
.popup-gallery-slider .slider-next {
    z-index: 10;
    position: absolute;
    top: calc(50% - 50px);
    color: var(--cool-100);
    width: 50px;
    height: 50px;
    background: #161b268a;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: 0.1s;
    padding: 0;
    border: 0;
    letter-spacing: 0;
}

@media only screen and (max-width:768px) {

    .popup-gallery-slider .slider-prev,
    .popup-gallery-slider .slider-next {
        display: none !important
    }
}

.popup-gallery-slider .slider-prev:after,
.popup-gallery-slider .slider-next:after {
    background: #FFF;
    margin: 0;
    -webkit-mask-size: 25px 25px;
    mask-size: 25px 25px;
    width: 25px;
    height: 25px
}

.popup-gallery-slider .slider-prev:focus-visible,
.popup-gallery-slider .slider-next:focus-visible {
    background: #161b268a;
    outline: 2px solid #FFF
}

@media (hover:hover) {

    .popup-gallery-slider .slider-prev:hover,
    .popup-gallery-slider .slider-next:hover {
        background: var(--cool-800)
    }
}

@media (hover:none) {

    .popup-gallery-slider .slider-prev:active,
    .popup-gallery-slider .slider-next:active {
        background: var(--cool-800)
    }

    .popup-gallery-slider .slider-prev:hover,
    .popup-gallery-slider .slider-next:hover {
        background: #161b268a
    }
}

.popup-gallery-slider .slider-prev {
    left: 5px;
    right: unset;
    transform: rotate(180deg)
}

.popup-gallery-slider .slider-next {
    left: unset;
    right: 5px
}

.popup-gallery-slider .slider-pagination.swiper-pagination-bullets {
    position: absolute;
    z-index: 200;
    bottom: 76px;
    height: 25px;
    padding: 0;
    pointer-events: none
}

@media only screen and (max-width:768px) {
    .popup-gallery-slider .slider-pagination.swiper-pagination-bullets {
        bottom: 126px
    }
}

@media only screen and (max-width:500px) {
    .popup-gallery-slider .slider-pagination.swiper-pagination-bullets {
        bottom: 156px
    }
}

.popup-gallery-slider .slider-pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background: var(--cool-700);
    opacity: 1
}

.popup-gallery-slider .slider-pagination.swiper-pagination-bullets .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background: var(--cool-100)
}