.cabane-content-carousel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    background: #191b18;
}

.cabane-content-carousel-viewport {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cabane-content-slide {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overflow-wrap: anywhere;
    touch-action: pan-y pinch-zoom;
    background: #eae7dc;
    color: #2b2419;
}

.cabane-content-slide-text {
    max-width: 65ch;
    min-height: 100%;
    box-sizing: border-box;
    margin: auto;
    padding: clamp(1.5rem, 4vw, 4rem) clamp(4rem, 7vw, 7rem) 5rem;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
}

.cabane-content-slide-image {
    background: #191b18;
    color: white;
}

.cabane-content-slide-image > figure {
    position: relative;
    height: 100%;
    margin: 0;
}

.cabane-content-slide-image > figure > picture {
    display: block;
    height: 100%;
}

.cabane-content-slide-image > figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cabane-content-slide-image > figure > figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    max-height: 45%;
    overflow: auto;
    margin: 0;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 4rem;
    color: white;
    background: linear-gradient(transparent, #000e);
    text-shadow: 0 1px 3px black;
    white-space: pre-line;
    text-align: center;
    font-size: 0.85em;
}

.cabane-content-carousel-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cabane-content-slide-exif {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: calc(100% - 1.5rem);
    box-sizing: border-box;
    padding: 0.35rem 0.6rem;
    border-radius: 0.75rem;
    background: #191b18b3;
    color: white;
    font-size: 0.7rem;
    line-height: 1.45;
    text-align: right;
    white-space: pre-line;
    overflow-wrap: anywhere;
    pointer-events: none;
}

.cabane-content-carousel-single figcaption {
    padding-bottom: 1rem;
}

.cabane-content-carousel-controls[hidden] {
    display: none;
}

.cabane-content-carousel-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #fff8;
    background: #191b18d9;
    color: #fff5df;
    font: inherit;
    font-size: 1.5rem;
    pointer-events: auto;
}

.cabane-content-carousel-controls button:first-child {
    left: clamp(0.5rem, 1.5vw, 1.25rem);
}

.cabane-content-carousel-controls button:last-child {
    right: clamp(0.5rem, 1.5vw, 1.25rem);
}

.cabane-content-carousel-controls [role="status"] {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.65rem;
    background: #191b18e6;
    color: #fff5df;
    border-radius: 1rem;
    font-size: 0.8em;
}

.cabane-content-carousel-controls button:hover:not([aria-disabled="true"]) {
    background: #383e32;
}

.cabane-content-carousel-controls button[aria-disabled="true"] {
    opacity: 0.35;
}

.cabane-content-carousel :focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
