/* Recruitment page: full-width photo gallery (partials/recruitment-gallery.php)
   Selectors start with #Content and buttons use !important - Betheme styles every img and button
   with "#Content img" and ".button-stroke button { background: transparent !important }". */

.rk-gallery-section {
    padding: 0;
}

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

.rk-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: 0;
}

.rk-gallery__track::-webkit-scrollbar {
    display: none;
}

.rk-gallery__slide {
    flex: 0 0 100%;
    margin: 0;
    aspect-ratio: 1280 / 550;
    scroll-snap-align: start;
    background: #e8eef3;
}

#Content .rk-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* arrows - visible on hover (as in the old slider) and on keyboard focus */
#Content .rk-gallery__arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
    cursor: pointer;
    opacity: 0;
    transition: opacity .25s, background-color .25s;
}

.rk-gallery__arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border: solid #113d89;
    border-width: 0 2px 2px 0;
}

.rk-gallery__arrow--prev {
    left: 24px;
}

.rk-gallery__arrow--prev::before {
    transform: translate(-30%, -50%) rotate(135deg);
}

.rk-gallery__arrow--next {
    right: 24px;
}

.rk-gallery__arrow--next::before {
    transform: translate(-70%, -50%) rotate(-45deg);
}

#Content .rk-gallery:hover .rk-gallery__arrow,
#Content .rk-gallery__arrow:focus-visible {
    opacity: 1;
}

#Content .rk-gallery__arrow:hover {
    background: #fff !important;
}

#Content .rk-gallery__arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

.rk-gallery__dots {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#Content .rk-gallery__dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    cursor: pointer;
    transition: background-color .25s, transform .25s;
}

#Content .rk-gallery__dots button[aria-current="true"] {
    background: #fff !important;
    transform: scale(1.15);
}

/* phones: arrows hidden (swipe), smaller dots */
@media (max-width: 767px) {
    #Content .rk-gallery__arrow {
        display: none;
    }

    .rk-gallery__dots {
        bottom: 10px;
        gap: 8px;
    }

    #Content .rk-gallery__dots button {
        width: 9px;
        height: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rk-gallery__track {
        scroll-behavior: auto;
    }
}
