body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #333;
}

#drop-zone {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
    margin-bottom: 20px;
    transition: background-color 0.2s, border-color 0.2s;
}

#drop-zone.dragover {
    background-color: #e9f5ff;
    border-color: #007bff;
}

#drop-zone p {
    margin: 0;
    font-size: 1.2em;
    color: #666;
}

.category-section {
    margin-top: 40px;
}

.category-section h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    color: #007bff;
    margin-bottom: 20px;
}

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

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item .media {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

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

.gallery-item video.media, .gallery-item audio.media {
    background-color: #000;
}

.gallery-item audio.media {
    height: 60px;
    object-fit: contain;
}

.gallery-item .filename {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    word-break: break-all;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #0056b3;
}

/* Lightbox Styles */
.hidden {
    display: none;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox.hidden {
    display: none;
}

#lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lightbox-content img,
#lightbox-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ccc;
}