
/* NAGŁÓWEK GALERII */

.gallery-banner {
    background: linear-gradient(135deg, #0b1e0f, #304a25);
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-bottom: 3px solid #b39546;
}

.gallery-banner .section-label {
    color: #e4ce91;
}

.gallery-banner h1 {
    font-size: clamp(45px, 7vw, 85px);
    font-weight: 500;
    margin: 20px 0;
}

.gallery-banner .gold-line {
    margin: 25px auto;
}

.gallery-banner p {
    color: #e5e8dc;
    font-size: 18px;
}

/* SEKCJA GALERII */

.gallery-section {
    background: #f6f3e7;
}

/* FILTROWANIE ZDJĘĆ */

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 45px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #b39546;
    color: #102b15;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #b39546;
    box-shadow: 0 0 12px #b3954640;
}

.filter-btn.active {
    background: #102b15;
    color: #ffffff;
}

/* SIATKA ZDJĘĆ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    background: white;
    border: 1px solid #d9c99e;
    overflow: hidden;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #102b1520;
    border-color: #b39546;
}

.gallery-item[hidden] {
    display: none;
}

/* MIEJSCA NA ZDJĘCIA */

.gallery-placeholder {
    height: 280px;
    background: linear-gradient(135deg, #102b15, #536b32);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e4ce91;
}

.gallery-placeholder span {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 65px;
    font-weight: 400;
}

.gallery-placeholder p {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ZDJĘCIA */

.gallery-photo {
    width: 100%;
    height: 280px;
    display: block;
    overflow: hidden;
    border: none;
    padding: 0;
    background: #102b15;
    cursor: zoom-in;
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-photo:hover img {
    transform: scale(1.07);
}

/* OPISY */

.gallery-description {
    padding: 23px;
    border-bottom: 3px solid #b39546;
}

.gallery-description h3 {
    font-size: 24px;
    color: #102b15;
    margin-bottom: 10px;
}

.gallery-description span {
    color: #94752c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* POWIĘKSZENIE ZDJĘCIA */

.lightbox {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 45px 20px 20px;
    background: #0b1e0f;
    color: white;
    border: 1px solid #b39546;
    overflow: auto;
}

.lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox img {
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    margin: auto;
}

#lightbox-close {
    position: absolute;
    top: 0;
    right: 12px;
    background: transparent;
    border: none;
    color: #e4ce91;
    font-size: 36px;
    line-height: 1.2;
}

#lightbox-caption {
    color: #e4ce91;
    text-align: center;
    padding-top: 15px;
    font-size: 16px;
}

/* TABLETY */

@media (max-width: 1000px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

}

/* TELEFONY */

@media (max-width: 650px) {

    .gallery-banner {
        padding: 65px 20px;
    }

    .gallery-banner p {
        font-size: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .gallery-placeholder,
    .gallery-photo {
        height: 250px;
    }

}
