﻿

.gallery-heading {
    background-color: antiquewhite;
    padding: 10px;
    margin-bottom: 20px;
}

/*.video-gallery-wrapper {
    width: 70%;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
}*/
.video-gallery-container {
    width: 70%;
    padding: 10px;
}

.video-gallery-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* =========================================
Scrollable Gallery
========================================= */

.video-gallery-wrapper {
/*    width: 70%;*/
    height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 15px 10px 5px;
}
.video-gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 2fr);
    gap: 20px;
}

.video-gallery-col {
    width: 100%;
}

.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    border: 1px solid #c2048a;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    }

.video-thumbnail {
/*    width: 400px;*/
    height: 225px;
    position: relative;
    overflow: hidden;
}

    .video-thumbnail video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 25px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-button {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(220, 0, 0, 0.9);
}

.video-play-button span {
    margin-left: 4px;
}

.video-title {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    background: #fff;
}


/* =========================
       VIDEO MODAL
       ========================= */

.video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.90);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

    .video-modal-content video {
        width: 100%;
        max-height: 80vh;
        display: block;
        background: #000;
    }



/* =========================
       TABLET
       ========================= */

@media (max-width: 992px) {
    .video-gallery-container {
        width: 100%;
        padding: 10px;
    }
    .video-gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-thumbnail {
        height: 180px;
    }
}


/* =========================
       MOBILE
       ========================= */

@media (max-width: 768px) {

    .video-gallery-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .video-gallery-container {
        width: 100%;
        padding: 10px;
    }
    .video-thumbnail {
        height: 150px;
    }

    .video-title {
        font-size: 14px;
        padding: 10px;
    }

    .video-modal {
        padding: 10px;
    }

    .video-modal-content {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .video-gallery-container {
        width: 100%;
        padding: 10px;
    }
    .video-gallery-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .video-thumbnail {
        height: 210px;
    }
}


/* --- Video Modal Overlay Container --- */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

/* --- Content Wrapper for Video Scaling --- */
.video-modal-content-wrapper {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
    max-height: 80%;
}

/* --- Modal Video Player with Smooth Transform Transition --- */
#modalVideo {
    transition: transform 0.2s ease;
    max-width: 100%;
    max-height: 80vh;
    outline: none;
}

/* --- Top-Right Control Toolbar (Zoom In, Zoom Out, Close) --- */
.video-modal-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 1002;
}

/* --- Styling for Zoom & Close Action Buttons --- */
.modal-ctrl-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .modal-ctrl-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .modal-ctrl-btn:active {
        transform: scale(0.95);
    }

/* --- Previous & Next Arrow Navigation Buttons --- */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 32px;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 1002;
    border-radius: 50%;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .modal-nav-btn:hover {
        background: rgba(0, 0, 0, 0.8);
        transform: translateY(-50%) scale(1.1);
    }

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}