/* =========================================================
   GALERIA ZDJĘĆ
========================================================= */

.gallery_page {
    width: 100%;
    min-height: 80vh;
    padding: 60px 20px;
    background-color: #fff;
}

.gallery_container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    /* Automatyczna siatka – sama dobiera liczbę kolumn */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery_item {
    width: 100%;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery_item:hover img {
    transform: scale(1.05); /* Subtelne przybliżenie zdjęcia */
}

/* LIGHTBOX (POWIĘKSZENIE FOTOGRAFII) */

.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 11, 31, 0.92); /* Tło w odcieniu Twojej strony */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox_content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox_close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.lightbox_close:hover {
    color: var(--secondary-color, #ff0000);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 600px) {
    .gallery_page {
        padding: 30px 15px;
    }

    .gallery_container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .gallery_item {
        height: 160px;
    }

    .lightbox_close {
        top: 10px;
        right: 20px;
        font-size: 35px;
    }
}