/* ==========================================================================
   Spenco Contained Hero Carousel (Atoms.com Video-Hero Design Pattern)
   ========================================================================== */

:root {
    --border-radius: 20px;
}

.spenco-hero-slider-section {
    width: 100%;
    margin: 4px 0 24px;
}

/* Container & Viewport Matching Atoms.com with exact 1935x813 aspect ratio */
.spenco-hero-carousel {
    position: relative;
    width: 100%;
    background-color: transparent !important;
}

.spenco-hero-viewport {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #111111;
    border-radius: 0;
}

@media (min-width: 768px) {
    .spenco-hero-viewport {
        height: auto;
        aspect-ratio: 1935 / 813;
        border-radius: var(--border-radius, 20px);
    }
}

/* Slide Flex Track */
.spenco-hero-slides {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Individual Slide Card */
.spenco-hero-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    display: block;
    overflow: hidden;
}

.spenco-hero-slide > div {
    width: 100%;
    height: 100%;
}

/* Media (Images & Videos) - Absolutely NO zoom / scale effect */
.spenco-hero-video,
.spenco-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
    transition: none !important;
    -webkit-transform: none !important;
    -webkit-transition: none !important;
}

.spenco-hero-slide:hover .spenco-hero-img,
.spenco-hero-slide:hover .spenco-hero-video,
.spenco-hero-carousel:hover .spenco-hero-img,
.spenco-hero-carousel:hover .spenco-hero-video,
.spenco-hero-slide a:hover .spenco-hero-img,
.spenco-hero-slide a:hover .spenco-hero-video {
    transform: none !important;
    -webkit-transform: none !important;
    scale: 1 !important;
}

/* YouTube Video Cover Container & Sound Toggle Button */
.spenco-hero-yt-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #111111;
}

.spenco-hero-yt-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 136%;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
    border: 0;
    pointer-events: none;
    display: block;
}

.spenco-hero-sound-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 45;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 9999px;
    background: rgba(17, 17, 17, 0.62);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .spenco-hero-sound-btn {
        bottom: 18px;
        right: 22px;
        padding: 8px 15px;
        font-size: 12.5px;
    }
}

.spenco-hero-sound-btn:hover {
    background: rgba(17, 17, 17, 0.85);
    border-color: rgba(255, 255, 255, 0.55);
    transform: scale(1.04);
}

.spenco-hero-sound-btn:active {
    transform: scale(0.97);
}

/* Atoms Floating Navigation Prev / Next Arrows */
.spenco-hero-prev,
.spenco-hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transition: opacity 0.25s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.spenco-hero-carousel:hover .spenco-hero-prev,
.spenco-hero-carousel:hover .spenco-hero-next,
.spenco-hero-prev:focus-visible,
.spenco-hero-next:focus-visible {
    opacity: 1;
}

.spenco-hero-prev:hover,
.spenco-hero-next:hover {
    transform: translateY(-50%) scale(1.06);
}

.spenco-hero-prev:active,
.spenco-hero-next:active {
    transform: translateY(-50%) scale(0.96);
}

/* Atoms.com Minimalist Pagination Dots */
.spenco-hero-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    z-index: 40;
}

.spenco-hero-dot {
    background: transparent;
    border: none;
    padding: 8px 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spenco-hero-dot:focus-visible {
    outline: 2px solid #FFFFFF;
    border-radius: 9999px;
}

/* Text clamp helper for captions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
