/* General styles */
body {
    background-color: #1a1a2e; /* Dark blue theme */
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Video Gallery Styles */
#video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between thumbnails */
    justify-content: center; /* Center the gallery */
    padding: 20px;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2e2e4d;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    transition: transform 0.3s ease;
    width: 220px; /* Fixed width for uniform thumbnails */
}

.video-item:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.video-item img,
.video-thumbnail {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.video-item p {
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

/* Modal Styles */
#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

#video-modal video {
    max-width: 80%;
    max-height: 80%;
    border: 4px solid #ffffff;
    border-radius: 8px;
}

/* Close Button Styles */
#close-modal {
    position: absolute;
    top: 20px; /* Margin from the top */
    right: 20px; /* Margin from the right */
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001; /* Ensures it appears above everything else */
    background-color: transparent;
    border: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

#close-modal:hover {
    transform: scale(1.2); /* Slight zoom effect */
    color: #ff5555; /* Change color to red on hover */
}
