.amb-gallery-wrap {
    position: relative;
    padding: 0 52px;
}

.amb-gallery-viewport {
    overflow: hidden;
}

.amb-gallery-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
}

.amb-gallery-item {
    flex: 0 0 50%;
    padding: 0 8px;
    box-sizing: border-box;
}

.amb-gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 10 / 7;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    cursor: pointer;
}

.amb-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8f8f8f;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    line-height: 0.8;
    padding: 0;
}

.amb-gallery-prev {
    left: 0;
}

.amb-gallery-next {
    right: 0;
}

.amb-gallery-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.amb-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2147483647;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.amb-lightbox.open {
    display: flex;
}

.amb-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
}

.amb-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 34px;
    cursor: pointer;
    z-index: 2;
}

.amb-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 64px;
    line-height: 0.8;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.amb-lightbox-prev {
    left: 20px;
}

.amb-lightbox-next {
    right: 20px;
}

.amb-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .amb-gallery-wrap {
        padding: 0 42px;
    }

    .amb-gallery-item {
        flex-basis: 100%;
    }

    .amb-gallery-nav {
        font-size: 44px;
    }

    .amb-lightbox-nav {
        font-size: 44px;
    }

    .amb-lightbox-prev {
        left: 12px;
    }

    .amb-lightbox-next {
        right: 12px;
    }
}
