.oak-carousel {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 28px auto 48px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #161616;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    text-align: left;
}
.oak-carousel .oak-carousel__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    touch-action: pan-y;
}
.oak-carousel .oak-carousel__slide {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.oak-carousel [hidden] { display: none !important; }
.oak-carousel .oak-carousel__slide:not([hidden]) { animation: oak-photo-fade .35s ease-out; }
@keyframes oak-photo-fade { from { opacity: .3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .oak-carousel .oak-carousel__slide:not([hidden]) { animation: none; }
}
.oak-carousel .oak-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    image-orientation: from-image;
    border-radius: 0;
    box-shadow: none;
}
.oak-carousel .oak-carousel__controls,
.oak-carousel .oak-carousel__buttons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.oak-carousel .oak-carousel__buttons button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    font: inherit;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    pointer-events: auto;
}
.oak-carousel .oak-carousel__buttons button,
.oak-carousel .oak-carousel__buttons button:hover,
.oak-carousel .oak-carousel__buttons button:focus,
.oak-carousel .oak-carousel__buttons button:active {
    /* Keep controls legible under the theme's global button styling. */
    background: rgba(15, 15, 15, .58) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    opacity: 1;
}
.oak-carousel .oak-carousel__buttons button:hover { background: rgba(15, 15, 15, .82) !important; }
.oak-carousel .oak-carousel__buttons button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.oak-carousel .oak-carousel__previous { top: 50%; left: 16px; transform: translateY(-50%); }
.oak-carousel .oak-carousel__next { top: 50%; right: 16px; transform: translateY(-50%); }
.oak-carousel .oak-carousel__buttons .oak-carousel__toggle {
    /* Accessible without a visible control bar; shown on keyboard focus. */
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.oak-carousel .oak-carousel__buttons .oak-carousel__toggle:focus-visible {
    bottom: 16px;
    left: 16px;
    width: auto;
    height: 44px;
    padding: 10px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border-radius: 6px;
    font-size: 14px;
}
@media (max-width: 600px) {
    .oak-carousel { border-radius: 10px; margin: 22px auto 36px; }
    .oak-carousel .oak-carousel__viewport { aspect-ratio: 4 / 3; }
    .oak-carousel .oak-carousel__buttons button { width: 44px; height: 44px; }
    .oak-carousel .oak-carousel__previous { left: 10px; }
    .oak-carousel .oak-carousel__next { right: 10px; }
    .oak-carousel .oak-carousel__buttons .oak-carousel__toggle { width: 1px; height: 1px; }
    .oak-carousel .oak-carousel__buttons .oak-carousel__toggle:focus-visible { width: auto; height: 44px; }
}
