.gallery {
    width: 100%;
    position: relative;
}
  
.gallery-container {
    align-items: center;
    display: flex;
    height: 670px;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
}
  
.gallery-item {
    width: 316px;
    height: 490px;
    position: absolute;
    transition: all 0.3s ease-in-out;
    z-index: 0;
    padding: 16px;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 2px 2px 31px 4px #567ec080;
    display: flex;
    flex-direction: column;
}

.gallery-item.gallery-item-1 {
    left: 20%;
    transform: translateX(-50%);
}

.gallery-item-2,
.gallery-item-4 {
    width: 416px;
    height: 590px;
    z-index: 1;
}

.gallery-item.gallery-item-2 {
    left: 35%;
    transform: translateX(-50%);
}

.gallery-item.gallery-item-3 {
    width: 516px;
    height: 670px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.gallery-item.gallery-item-4 {
    left: 65%;
    transform: translateX(-50%);
}

.gallery-item.gallery-item-5 {
    left: 80%;
    transform: translateX(-50%);
}

.gallery-controls button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #FFFFFF !important;
    box-shadow: 4px 4px 21px 2px rgba(0, 0, 0, 0.2);
    padding: 0;
    border: unset;
    background: url(../images/arrow_black.svg) center no-repeat;
    background-size: 20px;
    position: absolute;
    top: 45%;
    z-index: 5;
}

.gallery-controls-previous {
    left: 13%;
    transform: translateY(-45%);
}

.gallery-controls-next {
    transform: scaleX(-1) translateY(-45%);
    right: 13%;
}

.gallery-controls button:focus {
    outline: none;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .gallery-item.gallery-item-3 {
        width: 460px;
    }

    .gallery-item.gallery-item-2,
    .gallery-item.gallery-item-4 {
        width: 345px;
    }

    .gallery-item {
        width: 245px;
    }

    .slider-banner h6 {
        font-size: 24px !important;
        line-height: 29px !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .gallery-controls button {
        top: 38%;
    }

    .gallery-controls-next {
        transform: scaleX(-1) translateY(-38%);
        right: 12%;
    }

    .gallery-controls-previous {
        left: 12%;
        transform: translateY(-38%);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .gallery-controls button {
        top: 42%;
    }

    .gallery-controls-next {
        transform: scaleX(-1) translateY(-42%);
        right: 5%;
    }

    .gallery-controls-previous {
        left: 5%;
        transform: translateY(-42%);
    }
}

@media (max-width: 1199.98px) {
    .gallery-item.gallery-item-3,
    .gallery-container {
        height: 600px;
    }
    
    .gallery-item.gallery-item-2,
    .gallery-item.gallery-item-4 {
        height: 520px;
    }

    .gallery-item {
        height: 420px;
    }
}

@media (max-width: 991.98px) {
    .gallery-item.gallery-item-3 {
        width: 460px;
    }

    .gallery-item.gallery-item-2,
    .gallery-item.gallery-item-4 {
        width: 360px;
    }

    .gallery-item {
        width: 260px;
    }

    .gallery-controls button {
        top: 44%;
    }

    .gallery-controls-previous {
        left: 15%;
        transform: translateY(-44%);
    }

    .gallery-controls-next {
        transform: scaleX(-1) translateY(-44%);
        right: 15%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery-item-1,
    .gallery-item-5 {
        display: none;
    }

    .gallery-controls-previous {
        left: 15px;
    }

    .gallery-controls-next {
        right: 15px;
    }
}

@media (max-width: 575.98px) {
    .gallery-container .gallery-item.active {
        opacity: 1;
        z-index: 5;
    }

    .gallery-item {
        width: 100% !important;
        transition: all 0.6s ease-in-out;
        left: unset !important;
        transform: unset !important;
        opacity: 0;
    }

    .gallery-item ,
    .gallery-container {
        height: 500px !important;
    }

    .gallery-controls {
        display: none;
    }
}
@media (min-width: 576px) {
    .gallery-container .gallery-item:not(.gallery-item-3) .slider-content-wrapper {
        opacity: 0.5;
        overflow: hidden;
    }

    .gallery-item-6,
    .gallery-item-7 {
        display: none;
    }

    .gallery-item {
        left: 20%;
    }
}