.ockham-poster-carousel {
    --ockham-lightbox-overlay: rgba(0, 0, 0, 0.86);
    --ockham-hover-scale: 1.04;
    position: relative;
    width: 100%;
}

.ockham-poster-carousel__viewport {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.ockham-poster-carousel__viewport.is-dragging {
    cursor: grabbing;
}

.ockham-poster-carousel__track {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.ockham-poster-carousel__item {
    flex: 0 0 auto;
    width: 220px;
    height: 420px;
    background: #0f0f0f;
}

.ockham-poster-carousel__button {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0 solid transparent;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition-property: transform, border-color, box-shadow, filter, opacity;
    transition-duration: 260ms;
    transition-timing-function: ease;
}

.ockham-poster-carousel__button::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition-property: opacity, background;
    transition-duration: 260ms;
    transition-timing-function: ease;
}

.ockham-poster-carousel.has-hover-effects .ockham-poster-carousel__button:hover,
.ockham-poster-carousel.has-hover-effects .ockham-poster-carousel__button:focus-visible {
    transform: scale(var(--ockham-hover-scale));
    z-index: 3;
}

.ockham-poster-carousel.has-hover-effects .ockham-poster-carousel__button:hover::after,
.ockham-poster-carousel.has-hover-effects .ockham-poster-carousel__button:focus-visible::after {
    opacity: 1;
}

.ockham-poster-carousel__media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #111;
    transition-property: transform, filter, opacity, border-color, box-shadow;
    transition-duration: 260ms;
    transition-timing-function: ease;
}

.ockham-poster-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ockham-poster-carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0,0,0,.86) 100%);
}

.ockham-poster-carousel__title {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.ockham-poster-carousel__subtitle {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,.88);
}

.ockham-poster-carousel__lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 999999;
}

.ockham-poster-carousel__lightbox.is-open {
    display: block;
}

.ockham-poster-carousel__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: var(--ockham-lightbox-overlay);
}

.ockham-poster-carousel__lightbox-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(92vw, 1040px);
    max-height: 92vh;
    margin: 4vh auto;
    z-index: 1;
}

.ockham-poster-carousel__lightbox-close,
.ockham-poster-carousel__lightbox-close:hover,
.ockham-poster-carousel__lightbox-close:focus,
.ockham-poster-carousel__lightbox-close:focus-visible,
.ockham-poster-carousel__lightbox-close:active,
.ockham-poster-carousel__lightbox-close:visited {
    all: unset;
    box-sizing: border-box;
    position: relative;
    align-self: flex-end;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 0 10px auto !important;
    padding: 0 !important;
    border: 0 !important;
    outline: none !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.14) !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    vertical-align: middle !important;
    opacity: 1 !important;
}

.ockham-poster-carousel__lightbox-close::before,
.ockham-poster-carousel__lightbox-close::after {
    content: none !important;
    display: none !important;
}

.ockham-poster-carousel__lightbox-close:hover,
.ockham-poster-carousel__lightbox-close:focus-visible {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
    box-shadow: none !important;
    border: 0 !important;
    outline: none !important;
}

.ockham-poster-carousel__lightbox-media-wrap {
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}

.ockham-poster-carousel__lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(92vh - 160px);
    object-fit: contain;
}

.ockham-poster-carousel__lightbox-caption {
    margin-top: 14px;
    color: #fff;
}

.ockham-poster-carousel__lightbox-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.ockham-poster-carousel__lightbox-subtitle {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.5;
    opacity: .88;
}

body.ockham-poster-carousel-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .ockham-poster-carousel__item {
        width: 160px;
        height: 300px;
    }

    .ockham-poster-carousel__title {
        font-size: 16px;
    }

    .ockham-poster-carousel__subtitle {
        font-size: 12px;
    }

    .ockham-poster-carousel__caption {
        padding: 12px;
    }
}
