.adkh-gallery {
    border-radius: var(--adkh-border-radius);
    padding: 1.5px;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, .08);
    transition: transform 0.8s ease;
    perspective: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.adkh-gallery::before,
.adkh-gallery::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--adkh-border-radius);
    backface-visibility: hidden;
    transition: transform 0.8s ease;
}

.adkh-gallery::before {
    background-image: linear-gradient(180deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    transform: rotateY(0deg);
}

.adkh-gallery::after {
    background-image: linear-gradient(0deg, var(--adkh-border-color-from) 0%, var(--adkh-border-color-to) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -2;
    transform: rotateY(-90deg);
}

.adkh-gallery:hover::before {
    transform: rotateY(90deg);
}

.adkh-gallery:hover::after {
    transform: rotateY(0deg);
}


.adkh-gallery-wrapper {
    width: 100%;
    background: #fff;
    border-radius: var(--adkh-border-radius);
    padding: 40px;
    position: relative
}

.adkh-gallery-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    max-height: 470px;
    overflow-y: auto;
    scrollbar-width: none;
    margin-bottom: 30px
}

.adkh-gallery-item {
    display: block;
    width: 47%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    border-radius: var(--adkh-border-radius)
}

.adkh-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    border-radius: var(--adkh-border-radius);
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%)
}

.adkh-gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%)
}

.adkh-gallery-nav {
    position: absolute;
    bottom: -30px
}

.adkh-gallery-nav {
    position: absolute;
    bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: row;
    gap: 10px;
    z-index: 2
}

.adkh-gallery-nav svg rect {
    fill: var(--adkh-primary-color);
    transition: all 300ms;
    cursor: pointer
}

.adkh-gallery-nav svg:hover rect {
    fill: rgba(165, 165, 165, 1)
}

.adkh-gallery-shadow-overlay {
    content: '';
    position: absolute;
    bottom: 70px;
    right: 3px;
    width: 99%;
    height: 70px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    background-blend-mode: luminosity
}


@media screen and (max-width : 768px) {
    .adkh-gallery-wrapper {
        padding: 25px;
    }

    .adkh-gallery-item {
        width: 100%;

    }

    .adkh-gallery-shadow-overlay {
        bottom: 50px;
    }
}