﻿
.full-width {
    padding: 0px;
    max-width: 100vw;
}

.slider__bg-video {
    position: relative;
    height: 100%;
}

.video__car .slider__holder {
    margin: 0;
    height: auto;
    border: 0;
    background: transparent linear-gradient(45deg, #c29a39E6 0%, #c29a39E6 34%, #c29a3999 68%, #c29a3900 95%) 0% 0% no-repeat padding-box;
    color: white;
}

.video__car .slider__holder_transparent {
    margin: 0;
    height: auto;
    border: 0;
    background: transparent !important;
    color: white;
}

.slider__text {
    display: block !important;
}

.slider__holder .cta-link__text {
    color: white;
}

.slider__holder .cta-link__arrow,
.slider__holder .cta-link__arrow:before,
.slider__holder .cta-link__arrow:after {
    background-color: white;
}

.slider__holder .cta-link:hover .cta-link__arrow,
.slider__holder .cta-link:hover .cta-link__arrow:before,
.slider__holder .cta-link:hover .cta-link__arrow:after {
    background-color: white;
}

.video__car .slider__container {
    position: absolute;
    left: 0;
    right: 0;
    top: unset;
    bottom: 0;
    max-width: 100%;
    height: 50%;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

.slider__content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.player-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/*.video-controls {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: auto;
}*/

/* --- Ensure the parent fills the whole module area --- */
.slider__item.slider__bg-video {
    position: relative;
}

/* --- Absolute positioning for play/pause button relative to the full slide on the top/right corner--- */
.video-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    z-index: 200;
    transform: none;
    pointer-events: auto;
}

.play-pause-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .play-pause-btn:hover {
        background: rgba(0, 0, 0, 0.95);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.1);
        opacity: 1;
    }

    .play-pause-btn:active {
        transform: scale(0.95);
    }

    .play-pause-btn svg {
        transition: opacity 0.2s ease;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    }

    .play-pause-btn.playing .play-icon {
        display: none;
    }

    .play-pause-btn.playing .pause-icon {
        display: block !important;
    }

    .play-pause-btn.paused .play-icon {
        display: block;
    }

    .play-pause-btn.paused .pause-icon {
        display: none;
    }

.youtube-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Arial, sans-serif;
}

.youtube-loading {
    text-align: center;
    padding: 20px;
}

.slider .swiper-container {
    height: auto !important;
    max-height: none !important;
}

.slider .swiper-pagination-bullets {
    padding-right: 16px;
}

@media (max-width: 767.9px) {
    .slider {
        padding: 0 10px;
    }

    .video-wrapper {
        padding-top: 56.25%;
    }

    .slider__container {
        position: relative;
    }

    .slider__holder {
        padding: 0 20px 0 20px;
    }

    .play-pause-btn {
        width: 45px;
        height: 45px;
    }

        .play-pause-btn svg {
            width: 20px;
            height: 20px;
        }

    .video__car .slider__container {
        position: relative;
        height: 190px;
    }

    .video-controls {
        top: 10px;
        right: 10px;
    }

    .video__car .slider__holder {
        margin: 0;
        height: auto;
        border: 0;
        background: transparent linear-gradient(45deg, #c29a39E6 0%, #c29a39E6 34%, #c29a3999 100%, #c29a3900 95%) 0% 0% no-repeat padding-box;
        color: white;
    }
    .slider__holder_transparent > *,
    .slider__holder_transparent .cta-link .cta-link__text{
        color: black;
    }
    
    .slider__holder_transparent .cta-link .cta-link__arrow,
    .slider__holder_transparent .cta-link .cta-link__arrow::after,
    .slider__holder_transparent .cta-link .cta-link__arrow::before
    {
        background: black !important;
    }
}



@media only screen and (max-width: 1199.98px) {
    .swiper-counter {
        bottom: 20px;
        right: 20px;
        left: 0px;
        justify-content: end;
    }
}

@media only screen and (min-width: 767.9px) and (max-width: 1199.98px) {
    .slider__container {
        width: 50%;
    }
      
    .video-controls {
        top: 15px;
        right: 15px;
    }
}

