*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: capitalize;
    transition: all .2s cubic-bezier(.34,1.12,.68,1.31);
}

.video-gallery-section {
    min-height: 100vh;
    background: #eee;
    padding-bottom: 100px;
}

.video-gallery-section .controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0;
    list-style: none;
}

.video-gallery-section .controls .buttons {
    height: 40px;
    min-width: 140px;
    background: #060f72;
    color: #fffafa;
    font-size: 18px;
    line-height: 40px;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,.3);
    text-align: center;
    border-radius: 10px;
    padding: 0 20px;
}

.video-gallery-section .controls .buttons.active {
    background: coral;
    color: #fff;
}

.video-gallery-section .video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
}

.video-gallery-section .video-container .video {
    height: 250px;
    width: 350px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 3px 5px rgba(0,0,0,.3);
    margin: 10px;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    display: block;
    text-decoration: none;
}

.video-gallery-section .video-container .video img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.video-gallery-section .video-container .video:hover img {
    transform: scale(1.1);
}

.video-gallery-section .video-container .video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(6, 15, 114, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-gallery-section .video-container .video:hover .play-icon {
    background: coral;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-gallery-section .video-container .video .play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid #fff;
    margin-left: 5px;
}

.video-gallery-section .video-container .video .video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 30px 15px 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Video Modal Styles */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-modal-content .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-modal-content .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-modal .close-video {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.video-modal .close-video:hover {
    color: coral;
}

.video-modal .video-caption {
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .video-gallery-section .video-container .video {
        width: 100%;
        max-width: 350px;
        height: 200px;
    }
    
    .video-gallery-section .controls .buttons {
        height: 35px;
        font-size: 14px;
        min-width: 100px;
        margin: 5px;
    }
    
    .video-modal-content {
        width: 95%;
        margin: 30px auto;
    }
    
    .video-modal .close-video {
        top: 5px;
        right: 10px;
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    .video-gallery-section .video-container {
        padding: 10px;
    }
    
    .video-gallery-section .video-container .video {
        height: 180px;
    }
    
    .video-gallery-section .controls .buttons {
        height: 32px;
        font-size: 12px;
        min-width: 80px;
    }
}
