﻿/* Video Galerisi Stilleri */
.main-wrapper {
    position: relative;
    width: 100%;
}

.indicator-track-container {
    position: relative;
    height: 20px;
    width: 600px;
    margin: 20px auto;
}

.indicator-track-container::before,
.indicator-thumb {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background-color: #666;
}

.indicator-thumb {
    width: 30px;
    height: 4px;
    background-color: #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.video-gallery-container {
    width: 100%;
    max-width: 1200px;
    height: 464px;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    scrollbar-width: thin;
    user-select: none;
}

.video-gallery-container::-webkit-scrollbar {
    display: none;
}

.video-inner-wrapper {
    display: inline-flex;
    height: 100%;
}

.video-item-wrapper {
    height: 100%;
    margin-right: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-item-wrapper:last-child {
    margin-right: 0;
}

.video-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
}

.video-iframe-container {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
}

.video-item {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    pointer-events: auto;
}

.iframe-touch-wrapper {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.iframe-touch-wrapper.disable-touch {
    pointer-events: none;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Play button */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #fff;
    color: #f00;
    font-size: 30px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px rgb(0 0 0 / 50%);
    z-index: 10;
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-wrapper,
.video-thumbnail-wrapper :is(iframe, video) {
    height: 464px;
}

.video-ratio-horizontal {
    width: 824px;
}

.video-ratio-vertical {
    width: 260px;
}

.video-ratio-square {
    width: 464px;
}

/* Mobil Uyarlamalar */
@media (max-width: 768px) {
    .video-gallery-container {
        height: 280px;
    }

    .video-thumbnail-wrapper,
    .video-thumbnail-wrapper :is(iframe, video) {
        height: 280px;
    }

    .indicator-track-container {
        width: 85%;
        height: 40px;
    }
    .indicator-thumb {
        height: 15px;
        border-radius: 15px;
    }

    .video-ratio-horizontal {
        width: 600px;
    }
    .video-ratio-horizontal :is(iframe,video) {
        width: 310px;
    }

    .video-ratio-vertical {
        width: 180px;
    }

    .video-ratio-square {
        width: 280px;
    }

    .video-play-btn {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}
