/* ========================================
   OCD Treatment: Hero Slider
   Loaded only by /ocd-treatment.
   ======================================== */
.ocd-treatment-slideshow {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #020d1d;
    line-height: 0;
    outline: none;
}

.ocd-treatment-slideshow__page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

#ocd-treatment-page > .ocd-treatment-slideshow {
    margin: 0;
    padding: 0;
}

.ocd-treatment-slideshow__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.ocd-treatment-slideshow__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ocd-treatment-slideshow__slide--current {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.js .ocd-treatment-slideshow__slide {
    transition: opacity 500ms ease, visibility 500ms step-end;
}

.js .ocd-treatment-slideshow__slide--current {
    transition: opacity 500ms ease, visibility 0s step-start;
}

.ocd-treatment-slideshow__picture,
.ocd-treatment-slideshow__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.ocd-treatment-slideshow__image {
    object-fit: cover;
}

.ocd-treatment-slideshow__cta-overlay {
    position: absolute;
    z-index: 6;
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    text-shadow: none;
    outline: none;
    opacity: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transform: none;
    transition: none;
}

.ocd-treatment-slideshow__cta-overlay:hover,
.ocd-treatment-slideshow__cta-overlay:focus,
.ocd-treatment-slideshow__cta-overlay:active,
.ocd-treatment-slideshow__cta-overlay:visited {
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    box-shadow: none;
    color: transparent;
    text-decoration: none;
    transform: none;
}

.ocd-treatment-slideshow__cta-overlay::before,
.ocd-treatment-slideshow__cta-overlay::after {
    display: none;
    content: none;
}

.ocd-treatment-slideshow__cta-overlay span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ocd-treatment-slideshow__cta-overlay:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    background: transparent;
    box-shadow: none;
}

.ocd-treatment-slideshow__cta-overlay--treatment { left: 5.6%; top: 64.2%; width: 24.7%; max-width: none; height: 8.1%; }
.ocd-treatment-slideshow__cta-overlay--types { left: 32%; top: 71.4%; width: 35.2%; max-width: none; height: 9.5%; }
.ocd-treatment-slideshow__cta-overlay--method { left: 28.7%; top: 72.3%; width: 43.1%; max-width: none; height: 10.7%; }

.ocd-treatment-slideshow__arrow,
.ocd-treatment-slideshow__dot {
    appearance: none;
    border: 0;
    cursor: pointer;
}

.ocd-treatment-slideshow__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(0,0,0,.38);
    color: #fff;
    font: 400 40px/1 Arial, sans-serif !important;
    opacity: .65;
    transform: translateY(-50%);
}

.ocd-treatment-slideshow__arrow > span {
    display: block;
    font: inherit !important;
    line-height: 1 !important;
}

body.ocd-treatment-page-shell #ocd-treatment-page button.ocd-treatment-slideshow__arrow {
    font-family: Arial, sans-serif !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

body.ocd-treatment-page-shell #ocd-treatment-page button.ocd-treatment-slideshow__arrow > span {
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.ocd-treatment-slideshow__arrow--previous { left: 20px; }
.ocd-treatment-slideshow__arrow--next { right: 20px; }
.ocd-treatment-slideshow__arrow:hover,
.ocd-treatment-slideshow__arrow:focus-visible { opacity: 1; }

.ocd-treatment-slideshow__arrow:focus-visible,
.ocd-treatment-slideshow__dot:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.ocd-treatment-slideshow__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    line-height: normal;
    transform: translateX(-50%);
}

.ocd-treatment-slideshow__dot {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
}

.ocd-treatment-slideshow__dot::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    box-shadow: 0 1px 5px rgba(0,0,0,.8);
    content: "";
    transform: translate(-50%,-50%);
}

.ocd-treatment-slideshow__dot[aria-current="true"]::before { background: #f6b500; }

.ocd-treatment-slideshow__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .ocd-treatment-slideshow {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    .ocd-treatment-slideshow__viewport {
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
    }

    .ocd-treatment-slideshow__slide,
    .ocd-treatment-slideshow__picture {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        aspect-ratio: 3 / 4;
        overflow: hidden;
    }

    .ocd-treatment-slideshow__image {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        object-fit: contain;
        object-position: center;
    }

    .ocd-treatment-slideshow__arrow { display: none; }
    .ocd-treatment-slideshow__dots {
        position: absolute;
        top: auto;
        bottom: 32px;
        left: 50%;
        right: auto;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        gap: 12px;
        transform: translateX(-50%);
    }
    .ocd-treatment-slideshow__dot {
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
    }
    .ocd-treatment-slideshow__dot::before {
        width: 10px;
        height: 10px;
        font-size: 10px;
        line-height: 10px;
        opacity: 1;
    }
    .ocd-treatment-slideshow__cta-overlay--treatment { left: 5.4%; top: 71%; width: 88.2%; height: 9%; }
    .ocd-treatment-slideshow__cta-overlay--types { left: 9.1%; top: 79%; width: 81.9%; height: 9%; }
    .ocd-treatment-slideshow__cta-overlay--method { left: 12.7%; top: 61.8%; width: 74.7%; height: 9.2%; }
}

@media (prefers-reduced-motion: reduce) {
    .js .ocd-treatment-slideshow__slide,
    .js .ocd-treatment-slideshow__slide--current { transition-duration: 1ms; }
}
