/* Video gallery styles - mirrored from photo.css */

.video-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 10px;
    /* base row height for masonry effect */
    gap: 8px;
    grid-auto-flow: dense;
    padding: 5px;
}

.video-wrapper {
    display: block;
    grid-row-end: span var(--span);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.25rem;
    cursor: pointer;
    object-fit: cover;
}

/* ===== Video Filter Navbar Styles ===== */
.video-navbar {
    background: linear-gradient(to right, #1a2980, #26d0ce);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-radius: 0;
}

/* Selects */
.video-navbar select.form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    min-width: 130px;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}

/* Arrow for select */
.video-navbar select.form-select::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: white;
    font-size: 0.9rem;
}

/* Options */
.video-navbar select.form-select option {
    color: black;
}

/* Speed Input */
.video-navbar .slideshow-input {
    width: 50px;
    padding: 0.2rem 0.3rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Apply Button */
.video-navbar .btn-apply {
    background-color: #0077be;
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.35rem 0.8rem;
    border-radius: 0;
}

.video-navbar .btn-apply:hover {
    background-color: #005f9e;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
    .video-navbar form {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Fullscreen Modal ===== */
.modal-video {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 50, 0.85);
    z-index: 1050;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 15px;
}

.modal-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.modal-inner video {
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

/* Close Button */
.btn-close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
}

.btn-close-modal:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Modal Controls */
.btn-modal {
    background: rgba(0, 0, 139, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-modal:hover {
    background: rgba(0, 0, 139, 0.9);
}