.register_user {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    width: var(--mainWidth);
    gap: 15px;
    padding: 20px;
}


@media (max-width: 999px){
    .gallery-grid {
        width: 100%;
    }
}
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Keeps images uniform without stretching */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* The Modal (Large Window) */
#lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.9);
    text-align: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

#lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid white;
}


/* VIDEOS */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 20px;
    width: var(--mainWidth);
}

.video-card {
    background: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

/* Video preview styling */
.video-card video {
    display: block;
    width: 100%;
    height: 200px; 
    object-fit: cover;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Video Overlay (Large Window) */
#video-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#main-player {
    width: 80%;
    max-width: 1000px;
    max-height: 90%;
    outline: none;
}

.close-btn {
    color: white;
    font-size: 30px;
    cursor: pointer;
    margin-bottom: 10px;
}

.video-card {
    position: relative;
    cursor: pointer;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

/* Play button overlay */
.video-card::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 40px;
    pointer-events: none; /* Allows click to pass through to the card */
    transition: 0.2s;
}

.video-card:hover::after {
    color: #fff;
    transform: translate(-50%, -50%) scale(1.2);
}


    
    
.upload-container { 
    margin: 20px 0; text-align: center;
}
.drop-zone {
    display: block;
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    border: 2px dashed #666;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.drop-zone:hover, .drop-zone.dragover {
    background: #222; /* Darker theme for video maybe? */
    border-color: #ff4757;
}
.drop-zone-text { 
    color: #888; font-family: sans-serif;
}
    
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#delete_media {
    z-index: 2000;
    width: 125px;
    text-align: center;
    padding: 25px;
    cursor: pointer;
}

