ul.gallery-items {
    position: relative;
    min-height: 1px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

ul.gallery-items li {
    list-style: none;
    position: relative;
    width: calc(50% - 15px);
    cursor: pointer;
}

/* ul.gallery-items li.full {
    width: 80%;
} */

ul.gallery-items li .item-content {
    background-color: rgba(255, 255, 255, 0.98);
    position: absolute;
    right: 0;
    top: auto;
    bottom: 0;
    padding: 35px 35px 30px;
    max-width: 300px;
    transform-origin: right;
    -webkit-transform: perspective(250px) rotateY(-90deg);
    -khtml-transform: perspective(250px) rotateY(-90deg);
    -moz-transform: perspective(250px) rotateY(-90deg);
    -ms-transform: perspective(250px) rotateY(-90deg);
    -o-transform: perspective(250px) rotateY(-90deg);
    transform: perspective(250px) rotateY(-90deg);
    -webkit-transition: all 400ms ease-in-out;
    -khtml-transition: all 400ms ease-in-out;
    -moz-transition: all 400ms ease-in-out;
    -ms-transition: all 400ms ease-in-out;
    -o-transition: all 400ms ease-in-out;
    transition: all 400ms ease-in-out;
}

ul.gallery-items li:hover .item-content {
    -webkit-transform: perspective(250px) rotateY(0deg);
    -khtml-transform: perspective(250px) rotateY(0deg);
    -moz-transform: perspective(250px) rotateY(0deg);
    -ms-transform: perspective(250px) rotateY(0deg);
    -o-transform: perspective(250px) rotateY(0deg);
    transform: perspective(250px) rotateY(0deg);
}

ul.gallery-items li .item-content .item--title {
    margin: 20px 0;
    font-size: 16px;
}

ul.gallery-items li figure {
    position: relative;
    margin: 0;
    margin-bottom: 0;
}

ul.gallery-items li figure>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
}

ul.gallery-items li figure::after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-top: calc(300 / 400* 100%);
}

/* ul.gallery-items li.full figure::after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-top: calc(500 / 800* 100%);
}
 */




.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    /* transition: opacity 0.3s ease-in-out; */
    pointer-events: none;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 20px 0;


}

.popup.popup-show {
    opacity: 1;
    pointer-events:auto;
}

.popup-content {
    background-color: transparent;
    padding: 0px;
    border-radius: 5px; 
    max-width:900px;
    width: 80%;
    position: relative;
    
}
.popup-content .close-popup-button{


}
.swiper-button-next, .swiper-button-prev { 
    color: #fff !important;
}

.swiper {
    width: 100%;
    height: 100%;
  }

  
 /* .bigSwiper, .thumbSwiper{
    overflow: hidden;
    position: relative;
 } */
 .thumbSwiper{
    margin-top: 10px;
 }

.swiper-slide {
    text-align: center;
    padding: 0px 0;
}

.bigSwiper .swiper-slide figure {
    position: relative;
    margin-bottom: 0;
}

.bigSwiper .swiper-slide figure>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
}

.bigSwiper .swiper-slide figure::after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-top: calc(350 / 500* 100%);
}
.bigSwiper .swiper-slide figure{ 
    border: 5px solid #fff; 
   
   }
 
.bigSwiper .swiper-slide {
    opacity: 0.5;
    transition: 0.3s ease-in opacity;
}
.bigSwiper .swiper-slide figure{ 
    transform: scale(0.8); 
    transition: 0.3s ease-in transform;
}
.bigSwiper .swiper-slide.swiper-slide-active{
    opacity: 1; 
}

.bigSwiper .swiper-slide.swiper-slide-active figure{ 
    transform: scale(1); 
}



 
.thumbSwiper .swiper-slide figure {
    position: relative;
    margin: 0;
    margin-bottom: 0;
}

.thumbSwiper .swiper-slide figure>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
    max-height: 100%;
}

.thumbSwiper .swiper-slide figure::after {
    content: "";
    display: block;
    height: 0;
    width: 100%;
    padding-top: calc(100 / 150* 100%);
}

.thumbSwiper .swiper-slide figure{ 
    margin: 0;
 border: 5px solid #fff;
    transition: border 0.3s ease;

}
.thumbSwiper .swiper-slide.swiper-slide-thumb-active figure{
    border-color: var(--secondary-color);

}
.swiper-button-prev,
.swiper-button-next {
    color: #000;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}

.close-popup-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: block;
    z-index: 2;
    /* background: rgba(255, 255, 255); */
}
.close-popup-button svg path{
    transition: all 0.3s ease;

}
 
.close-popup-button:hover svg path{
    stroke: red;
}