section.article .gallery .rinay-tour-gallery {
    position: relative;
    min-width: 0;
    width: 51%;
    float: left;
    margin-right: 18px;
    overflow: hidden;
    border-radius: 8px;
}

.rinay-preview-design section.article .gallery .rinay-tour-gallery {
    margin-right: 0;
}

.rinay-tour-gallery__rail {
    display: flex;
    aspect-ratio: 2 / 1;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: #edf1f4;
}

.rinay-tour-gallery__rail::-webkit-scrollbar {
    display: none;
}

.rinay-tour-gallery__slide {
    display: block;
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

section.article .gallery .rinay-tour-gallery .rinay-tour-gallery__slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
}

.rinay-tour-gallery [hidden] {
    display: none !important;
}

.rinay-tour-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff8;
    border-radius: 50%;
    background: #101820c9;
    color: #fff;
    font: 34px/1 Arial, sans-serif;
    cursor: pointer;
}

.rinay-tour-gallery__arrow:hover {
    background: #101820;
}

.rinay-tour-gallery__arrow:focus-visible,
.rinay-tour-gallery__rail:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.rinay-tour-gallery__arrow--prev {
    left: 12px;
}

.rinay-tour-gallery__arrow--next {
    right: 12px;
}

.rinay-tour-gallery__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #101820c9;
    color: #fff;
    font: 600 13px/1.4 Arial, sans-serif;
    pointer-events: none;
}

@media (max-width: 767px) {
    section.article .gallery .rinay-tour-gallery {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    .rinay-tour-gallery__rail {
        aspect-ratio: 16 / 10;
    }
}
