/*** Videos Scroll With Navigation Buttons **/

.toneff-video-scroll-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-bottom: 30px;
}
.toneff-video-scroll-toneff-video-scroll-container-navigation {
    position: relative;
    width: 100%;
    max-width: 130vh;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toneff-video-scroll-container {
    position: relative;
    width: 90%;
    overflow: hidden;
    border-radius: 1.4vh;    
}
.toneff-video-scroll-image-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: calc(22vh * 10);
    gap: 5px;
}
.toneff-video-scroll-image-wrapper a {
    display: inline-block;
    width: 22vh;
    height: 40vh;
    overflow: hidden;
    border-radius: 1.4vh;
    box-shadow: 0 0 4px #00000040;
    border: .2px solid #838383;
}
.toneff-video-scroll-image-wrapper-container {
    position: relative;
    width: 100%;
    height: 100%;    
}
.toneff-video-scroll-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}
.toneff-video-scroll-image-wrapper a:hover img {
    transform: scale(1.2);
}
.toneff-video-scroll-play-icon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24%;
    border-radius: 50%;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.33);
    opacity: 88%;
}
.toneff-video-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: black;
    border: none;
    padding: 3vh;
    cursor: pointer;
    font-size: 2vh;
    z-index: 100;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 6vh;
    height: 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toneff-video-scroll-btn-left {
    left: 25px;
}
.toneff-video-scroll-btn-right {
    right: 25px;
}
@media (max-width: 768px) {
    .toneff-video-scroll-btn {
        width: 5vh;
        height: 5vh;
        font-size: 1.8vh;
        padding: 2vh;
    }
    .toneff-video-scroll-btn-left {
        left: 5px;
    }
    .toneff-video-scroll-btn-right {
        right: 5px;
    }
}

/*** Video Modal Dialog **/

.toneff-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 200; /* Ensure it is above the buttons */
}

.toneff-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.toneff-video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.toneff-video-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}