 :root{
    --swiper-navigation-sides-offset: 50px;
    --grid-gap: 20px;
    --grid-double: 40vw;
    --grid-simple: calc(20vw - 10px);
}
html,
body {
    position: relative;
    max-height: 100vh;
} 

/* body {
    background: #eee;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #000;
    margin: 0;
    padding: 0;
} */
.gallery .swiper-container {
    margin-top: 50px;
    margin-bottom: 50px;
    overflow: hidden;
}

.gallery .swiper {
    height:500px;
    width: 1295px;
}

.gallery .swiper-slide {
    text-align: center;
    font-size: 15px;
    background: #ffffff00;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-layout-1 {
    padding: 0;
    width: var(--grid-double);
}
.swiper-layout-1 .item1{
    width: var(--grid-double);
    height: var(--grid-double);
}
.gallery-container, .gallery-container .gallery-front, .gallery-container .gallery-back {
    height: 100%;
    width: 100%;
}
.gallery-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: end;
}
.gallery-name {
    padding: 30px;
    color: white;
    font-weight: bold;
    font-size: var(--font-size-big);
}
.gallery-container {
    position: relative;
}
.gallery-overlay {
    background-color: #526E7BCC;
    padding: 15px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item3 .gallery-overlay {
    width: 100%;
    height: 100%;
}
.gallery-title {
    margin-top: 0;
}


.swiper-layout-2 {
    padding: 0;
    width: var(--grid-simple);
    display: grid;
    column-gap: var(--grid-gap);
    row-gap: var(--grid-gap);
}
.swiper-layout-2 .item1 {
    height: var(--grid-simple);
    width: var(--grid-simple);
}
.swiper-layout-2 .item2 {
    height: var(--grid-simple);
    width: var(--grid-simple);
}
.gallery .swiper-layout-3 {
    padding: 0;
    width: var(--grid-double);
    display: grid;
    column-gap: var(--grid-gap);
    row-gap: var(--grid-gap);
}
.gallery .swiper-layout-3 .item1 {
    height: var(--grid-simple);
    width: var(--grid-simple);
}
.gallery .swiper-layout-3 .item2 {
    height: var(--grid-simple);
    width: var(--grid-simple);
}
.gallery .swiper-slide.swiper-layout-2 {
    flex-wrap: wrap;
}
.gallery .swiper-layout-3 .item3 {
    height: var(--grid-simple);
    width: var(--grid-double);
    grid-column-start: 1;
    grid-column-end: 3;
}
/* .gallery .swiper-slide-visible {
    opacity: 1;
} */
.galleryslider {
    width: 100%;
    overflow: visible;
}
.gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery .swiper-button-prev, .gallery .swiper-button-next {
    background-repeat: no-repeat;
}
.gallery .swiper-button-prev::after, .gallery .swiper-button-next::after {
    color: white;
}
.gallery .swiper-button-next {
    background: #526E7B;
    width: 40px;
    height: 40px;
    border: 5px solid #fff;
    border-radius: 50%;
}
.gallery .swiper-button-prev {
    background: #526E7B;
    width: 40px;
    height: 40px;
    border: 5px solid #fff;
    border-radius: 50%;
}

.gallery-back {
    position: absolute;
    opacity: 0;
    transition: opacity 0.4s ease;
    top: 0;
    overflow: hidden;
    color: white;
}
.gallery-back h2, .gallery-back a, .gallery-back a:hover {
    color: white;
}
.gallery-container:hover .gallery-back{
    opacity: 1;
}
.mobile-gallery {
    display: none;
}

@media only screen and (max-width: 1450px){
    .desktop-gallery h2.gallery-title {
        font-size: 30px;
    }
    .desktop-gallery p.gallery-text {
        font-size: 16px;
    }
    :root {
        --grid-double: 50vw;
        --grid-simple: calc(25vw - 10px);
    }
}

@media only screen and (max-width: 767px){
  
    .gallery .swiper-button-next, .gallery .swiper-button-prev {
        width: 30px;
        height: 30px;
        border: none;

    }
    .desktop-gallery {
        display: none;
    }
    .mobile-gallery {
        display: block;
    }
    .swiper-layout-1 .item1 {
        width: 100%;
        height: 50vh;
    }
    .gallery-back
     {
        opacity: 1;
        width: 100%;
     }
     .gallery .swiper-slide {
        font-size: 15px;
     }
    .gallery  p.gallery-text {
        padding: 0 50px;
    }
}