#photo-gallery .section.section-1 {
    background: url(/wp-content/themes/noblelift/img/background-photogallery.jpg) no-repeat center 60%;
    background-size: cover;
    height: 400px;
    padding-bottom: 32px;
}

#gallery .section.section-1,
#gallery.noblelift-open2024 .section.section-1 {
    background: url(/wp-content/themes/noblelift/img/background-photogallery2.jpg) no-repeat center 62%;
    background-size: cover;
    height: 400px;
    padding-bottom: 32px;
}

#gallery.noblelift-open2025 .section.section-1 {
    background: url(/wp-content/themes/noblelift/img/background-photogallery3.jpg) no-repeat center 62%;
    background-size: cover;
    height: 400px;
    padding-bottom: 32px;
}


#gallery.cemat-russia-2024 .section.section-1 {
    background: url(/wp-content/themes/noblelift/img/cemat-russia-2024.jpg) no-repeat center 64%;
    background-size: cover;
    height: 400px;
    padding-bottom: 32px;
}

#gallery.cemat-russia-2023 .section.section-1 {
    background: url(/wp-content/themes/noblelift/img/cemat-russia-2023.jpg) no-repeat center 40%;
    background-size: cover;
    height: 400px;
    padding-bottom: 32px;
}

.section {
    z-index: 1;
    position: relative;
}

.n-sticky {
    position: fixed;
    top: 60%;
    right: 5%;
    z-index: 0;
    opacity: .7;
}

#photo-gallery .section.section-1 .section-title,
#gallery .section.section-1 .section-title {
    color: #fff;
}

#photo-gallery .section.section-1 .container,
#gallery .section.section-1 .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#photo-gallery .section.section-1  .breadcrumbs,
#gallery .section.section-1  .breadcrumbs {
    margin: auto auto 0 0;
}

#photo-gallery .section.section-2 {
    padding: 100px 0;
}

#photo-gallery .section.section-2 .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#photo-gallery .section.section-2 .cards .item{
    background: #fff;
    border-radius: 20px;
    box-shadow: 4px 4px 12px 0px #20202014;
    padding: 24px;
    width: calc(100% / 4 - 20px + 20px / 4);
    transition: .3s ease-out;
}

#photo-gallery .section.section-2 .cards .item .name {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #404040;
    text-transform: uppercase;
    margin-top: 28px;
    transition: .3s ease-out;
}

#photo-gallery .section.section-2 .cards .item .image {
    width: 100%;
    height: 230px;
    border-radius: 16px;
    overflow: hidden;
}

#photo-gallery .section.section-2 .cards .item .image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease-out;
    transform: scale(1);
}



#gallery .section.section-2 {
    overflow: hidden;
    position: relative;
    padding: 100px 0;
}

#gallery .section.section-2 .slider-container {
    max-width: 1640px;
    margin: 0 auto;
    overflow: visible;
}

#gallery .section.section-2 .slider-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 672px;
    transition: transform 0.4s ease-out;
}

#gallery .section.section-2 .slider-wrapper .slide {
    width: 257px;
    height: 280px;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: 0.4s ease-out;
    position: relative;
    cursor: pointer;
}

#gallery .section.section-2 .slider-wrapper .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease-out;
}

#gallery .section.section-2 .slider-wrapper .slide.slide-active {
    height: 672px;
    width: 680px;
}

#gallery .section.section-2 .container.counter {
    position: relative;
    height: 72px;
}

#gallery .section.section-2 .slider-counter {
    position: absolute;
    left: 277px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

#gallery .section.section-2 .slider-counter .slider-prev,
#gallery .section.section-2 .slider-counter .slider-next {
    background: transparent;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    height: 48px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease-out;
}

#gallery .section.section-2 .slider-counter .image-length {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    color: #404040;
}

#modal-slider {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow: auto;
    background: #000000E5;
    padding: 110px 0;
}

#modal-slider .modal-content {
    display: flex;
    flex-direction: column;
}

#modal-slider .modal-content .modal-slider__header {
    display: flex;
    justify-content: center;
    position: relative;
    height: 72px;
}

#modal-slider .modal-content .modal-slider__header .close {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s ease-out;
}

#modal-slider .modal-content .modal-slider__header .image-length {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    padding-bottom: 14px;
    color: #F3F3F3;
}

#modal-slider .modal-content .modal-slider__container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

#modal-slider .modal-content .modal-slider__container .slider-prev,
#modal-slider .modal-content .modal-slider__container .slider-next {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#modal-slider .modal-content .modal-slider__wrapper {
    height: calc(100vh - 220px - 72px);
    display: flex;
}

#modal-slider .modal-content .modal-slider__wrapper .modal-prev-block,
#modal-slider .modal-content .modal-slider__wrapper .modal-next-block {
    display: none;
}

#modal-slider .modal-content .modal-slider__wrapper .slide {
    width: auto;
    height: 100%;
    display: none;
}

#modal-slider .modal-content .modal-slider__wrapper .slide img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

#modal-slider .modal-content .modal-slider__wrapper .slide.slide-active {
    display: block;
}

@media (min-width: 768px) {
    #photo-gallery .section.section-2 .cards .item:hover {
        box-shadow: 3px 0px 5.8px 0px #00000040;
    }

    #photo-gallery .section.section-2 .cards .item:hover .name {
        color: #FD5000;
    }

    #photo-gallery .section.section-2 .cards .item:hover .image img {
        transform: scale(1.15);
    }

    #gallery .section.section-2 .slider-counter .slider-prev:hover,
    #gallery .section.section-2 .slider-counter .slider-next:hover {
        border-color: #767676;
    }
}

@media (max-width: 1200px) {
    #photo-gallery .section.section-2 .cards .item {
        width: calc(100% / 3 - 20px + 20px / 3);
    }

    #gallery .section.section-2 .slider-counter {
        left: calc(277px - 277px / 2);
    }

    #modal-slider .modal-content .modal-slider__wrapper .slide {
        width: 100%;
        height: 100%;
    }

    #modal-slider .modal-content .modal-slider__wrapper .slide img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 992px) {
    #photo-gallery .section.section-2 .cards .item {
        width: calc(100% / 2 - 20px / 2);
    }

    #gallery .section.section-2 {
        padding-top: 60px;
    }

    #gallery .section.section-2 .slider-wrapper {
        height: 502px;
    }

    #gallery .section.section-2 .slider-wrapper .slide {
        width: 188px;
        height: 188px;
    }

    #gallery .section.section-2 .slider-wrapper .slide.slide-active {
        width: 496px;
        height: 502px;
    }

    #gallery .section.section-2 .slider-counter {
        left: calc(188px - 188px / 1.5);
    }
}

@media (max-width: 768px) {

    #photo-gallery .section.section-1 {
        height: 300px;
        padding-bottom: 16px;
    }

    #gallery .section.section-1 {
        height: 300px!important;
        padding-bottom: 16px!important;
    }

    #photo-gallery .section.section-1 .section-title,
    #gallery .section.section-1 .section-title {
        font-size: 24px;
        line-height: 30px;
    }

    #photo-gallery .section.section-2 {
        padding: 32px 0 60px 0;
    }

    #gallery .section.section-2 {
        padding: 32px 0 60px 0;
    }
    #modal-slider {
        padding: 60px 0;
    }

    #modal-slider .modal-content .modal-slider__container .slider-prev,
    #modal-slider .modal-content .modal-slider__container .slider-next {
        display: none;
    }

    #modal-slider .modal-content .modal-slider__container {
        justify-content: center;
    }

    #modal-slider .modal-content .modal-slider__wrapper {
        height: calc(100vh - 120px - 48px);
        max-height: 516px;
    }

    #modal-slider .modal-content .modal-slider__header .image-length {
        font-size: 16px;
        line-height: 20px;
        padding-bottom: 24px;
    }

    #modal-slider .modal-content .modal-slider__header {
        justify-content: space-between;
        height: auto;
    }

    #modal-slider .modal-content .modal-slider__header .close {
        position: relative;
    }

    #gallery .section.section-2 .slider-counter {
        left: calc(188px / 4);
    }

    #photo-gallery .section.section-1 .container,
    #gallery .section.section-1 .container {
        gap: 12px;
    }
}

@media (max-width: 654px) {
    #photo-gallery .section.section-2 .cards .item {
        width: 100%;
    }

    #photo-gallery .section.section-2 .cards .item .image .gray.no-photo img {
        bottom: -65px;
    }
}

@media (max-width: 576px) {
    #photo-gallery .section.section-1 {
        height: 260px;
    }

    #gallery .section.section-1 {
        height: 260px!important;
    }

    #photo-gallery .section.section-2 .cards {
        gap: 16px;
    }

    #photo-gallery .section.section-2 .cards .item {
        padding: 16px;
        border-radius: 12px;
    }

    #photo-gallery .section.section-2 .cards .item .name {
        margin-top: 12px;
        font-size: 16px;
        line-height: 20px;
    }

    #photo-gallery .section.section-2 .cards .item .image {
        height: 200px;
        border-radius: 8px;
    }

    #gallery .section.section-2 .slider-wrapper {
        gap: 16px;
        height: 280px;
    }

    #gallery .section.section-2 .slider-wrapper .slide {
        width: 120px;
        height: 120px;
    }

    #gallery .section.section-2 .slider-wrapper .slide.slide-active {
        width: 280px;
        height: 280px;
    }

    #gallery .section.section-2 .slider-counter {
        left: calc(120px / 4);
    }

    #gallery .section.section-2 .slider-counter .image-length {
        font-size: 16px;
        line-height: 20px;
    }

    #modal-slider .modal-content .modal-slider__wrapper .slide.slide-active {
        display: flex;
        align-items: flex-start;
    }

    /*#modal-slider .modal-content .modal-slider__wrapper .slide {*/
    /*    width: 100%;*/
    /*    height: auto;*/
    /*}*/

    #modal-slider .modal-content .modal-slider__wrapper .slide img {
        width: 100%;
        height: auto;
        max-height: 516px;
    }

    #photo-gallery .section.section-2 .cards .item .image .gray.no-photo img {
        bottom: -45px;
    }

    #modal-slider .modal-content .modal-slider__wrapper {
        position: relative;
    }

    #modal-slider .modal-content .modal-slider__wrapper .modal-prev-block,
    #modal-slider .modal-content .modal-slider__wrapper .modal-next-block {
        display: block;
        position: absolute;
        height: 100%;
        width: 30%;
        top: 0;
        z-index: 4;
    }

    #modal-slider .modal-content .modal-slider__wrapper .modal-prev-block {
        left: 0;
    }

    #modal-slider .modal-content .modal-slider__wrapper .modal-next-block {
        right: 0;
    }
}