.video{
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
}

.videos-container{
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.video-card{
    width: 350px;
}

.video-modal{
    height: 320px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.up-modal-content h3{
    color: var(--text);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background);
    border: 1px solid var(--header-border);
    border-radius: 10px;
    width: 45%;
    padding: 0px 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.up-modal-content {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--header-border);
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text);
}

.close:hover {
    color: var(--hover);
}

.video-details{
    max-height: 110px;
    overflow-y: auto;
}

.video-details::-webkit-scrollbar {
    display: none;
}

#video-title, #video-date, #video-description{
    width: 100%;
}

#video-description, #view-video{
    margin-bottom: 15px;
}

.modal-content p{
    color: var(--text);
    margin: 0;
}

.date-container{
    width: 100%;
    display: flex;
    gap: 5px;
}

.date-container label{
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .modal-content{
        width: 80%;
    }

    .video-modal{
        height: auto;
    }

    .video-details{
        max-height: none;
        height: auto;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }
}