/* Dark Mode Styles */
:root {
    --background-color: #000000;
    --text-color: #ffffff;
    --modal-background: rgba(0, 0, 0, 0.8);
    --modal-content-background: #333;
    --close-button-color: #fff;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

h1 {
    color: white; /* Ensure h1 text is white */
}

.media-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.media-item {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.media-item img, .media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-background);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: var(--close-button-color);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default for the gallery display */
}

video:fullscreen {
    object-fit: contain; /* Scale video to fit within the screen */
    display: block;
    margin: auto;
    background: black; /* Ensures a clean fullscreen background */
}
