

/* Sekcja główna */
main{
width: 100%;
height: 100%;
background-color: #fcfbf9;
float: left;
}

.photo-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
    justify-items: center;
}

.photo-box {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    max-width: 400px;
}

.photo-box:hover {
    transform: scale(1.03);
    box-shadow: 8px 10px 16px rgba(0,0,0,0.25);
    cursor: pointer;
}

.photo-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-box h3 {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    color: #333;
    background-color: #fafafa;
}





h2{
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    text-shadow: 3px 3px rgb(228, 221, 221);
}
#bardo-box img{
    height:250px;
}

/* --- MEDIA QUERIES --- */

/* Tablety */
@media (max-width: 1024px) {
    .gallery {
        max-width: 95%;
        padding: 0 15px;
    }
    .photo-boxes {
        gap: 20px;
    }
}

/* Telefony */
@media (max-width: 600px) {
    .gallery {
        max-width: 100%;
        padding: 0 10px;
    }

    .photo-boxes {
        display: grid;
        grid-template-columns: 1fr; /* jedna kolumna pełnej szerokości */
        gap: 20px;
    }

    .photo-box {
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .photo-box img {
        width: 100%;
        height: auto;
        display: block;
    }

    .photo-box h3 {
        font-size: 1.1rem;
        text-align: center;
        margin: 10px 0;
    }
}