.gallery {
    padding: 88px 0;
}

.gallery-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.gallery-slider {
    position: relative;
}

.gallery-media {
    position: relative;
    aspect-ratio: 16 / 9.4;
    overflow: hidden;

    border-radius: 30px;
    background: #d8d8cf;

    box-shadow: 0 14px 34px rgba(30, 30, 30, 0.06);
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;

    opacity: 0;
    transition: opacity 0.55s ease;
}

.gallery-slide.is-active {
    opacity: 1;
}

/* arrows */

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 999px;

    background: rgba(246, 247, 237, 0.20);
    backdrop-filter: blur(8px);

    color: rgba(255, 255, 255, 0.96);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    z-index: 3;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.gallery-arrow span {
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-1px);
}

.gallery-arrow--prev {
    left: 18px;
}

.gallery-arrow--next {
    right: 18px;
}

.gallery-arrow:hover {
    background: rgba(246, 247, 237, 0.32);
}

/* dots */

.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 3;
}

.gallery-dots button {
    width: 10px;
    height: 10px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: transparent;
    padding: 0;

    cursor: pointer;
}

.gallery-dots button.is-active {
    background: rgba(255, 255, 255, 0.96);
}

/* responsive */

@media (max-width: 900px) {
    .gallery-media {
        aspect-ratio: 16 / 10.5;
        border-radius: 24px;
    }
}

@media (max-width: 640px) {
    .gallery {
        padding: 72px 0;
    }

    .gallery-media {
        aspect-ratio: 4 / 5;
        border-radius: 20px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-arrow span {
        font-size: 1.5rem;
    }

    .gallery-arrow--prev {
        left: 12px;
    }

    .gallery-arrow--next {
        right: 12px;
    }

    .gallery-dots {
        bottom: 16px;
    }

    .gallery-dots button {
        width: 9px;
        height: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slide,
    .gallery-arrow {
        transition: none;
    }
}