/* ===== UPLOAD BAR ===== */
.upload-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.upload-bar input[type="text"] {
    padding: 14px 18px;
    border-radius: 50px;
    border: 1px solid #431D2A;
    font-size: 16px;
    width: 240px;
}
/* ukryj prawdziwy input file */
.upload-bar input[type="file"] {
    display: none;
}
/* wspólny styl przycisków */
.upload-btn {
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    background: #6b2e3f;
    color: #f4e9ec;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}
.upload-btn:hover {
    background: #8a3a52;
    transform: translateY(-2px);
}
/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    justify-content: center;
    margin: 0 0 1.5rem;
}

.filter-bar select {
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid #431d2a;
    background: #e1dfdb;
    color: #431d2a;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23431d2a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ===== LIGHTBOX AUTHOR ===== */
.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(255,255,255,0.2);
}

.lightbox-author {
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 6px 20px;
    border-radius: 50px;
}

@media (max-width: 600px) {
    .lightbox-author {
        font-size: 1.3rem;
        padding: 8px 24px;
    }
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}
.gallery-grid img:hover {
    transform: scale(1.03);
}
/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
/* strzałki */
.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}
.lightbox .left { left: 20px; }
.lightbox .right { right: 20px; }
/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .upload-bar {
        flex-direction: column;
        align-items: center;
    }
    .upload-bar input[type="text"] {
        width: 90%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    .gallery-grid img {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}