/* css/youtube-videos.css - CLEAN VERSION */
/* Video Gallery Styles */
.video-section {
    margin: 30px 0;
}

.main-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.nav-btn {
    padding: 10px 20px;
    background: #006699;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
    font-size: 14px;
}

.nav-btn:hover {
    background: #004466;
}

.video-counter {
    font-size: 16px;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.thumbnail-reel {
    margin-top: 30px;
}

.reel-title {
    text-align: center;
    color: #006699;
    margin-bottom: 20px;
    font-size: 20px;
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.video-thumbnail {
    position: relative;
    width: 180px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.video-thumbnail.active {
    border-color: #006699;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,102,153,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* ========== MOBILE STYLES ========== */
@media (max-width: 768px) {
    /* Keep the same aspect ratio for video */
    .main-video-container {
        margin-bottom: 15px;
    }
    
    /* Fix thumbnail reel for horizontal scrolling */
    .thumbnails {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        margin: 0 -10px;
        padding-left: 10px;
        min-height: 120px;
    }
    
    .video-thumbnail {
        flex: 0 0 auto !important;
        width: 160px !important;
        height: 110px !important;
        margin-right: 12px !important;
    }
    
    .video-thumbnail:last-child {
        margin-right: 0 !important;
        padding-right: 10px;
    }
    
    /* Smaller navigation buttons on mobile */
    .nav-btn {
        padding: 12px 20px;
        min-width: 100px;
    }
    
    /* Scrollbar styling (optional) */
    .thumbnails::-webkit-scrollbar {
        height: 5px;
    }
    
    .thumbnails::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .thumbnails::-webkit-scrollbar-thumb {
        background: #006699;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .video-thumbnail {
        width: 140px !important;
        height: 95px !important;
    }
    
    .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 90px;
    }
}