html, body, head {
    padding: 0%;
    margin: 0%;
    
}

menu {
    padding: 0%;

    margin: 0%;
    width: 100%;
    height: 12vh;
	content: center;
	display: flex;
	flex-direction: column;
	align-items: center;
    background-color: #0c0c0c;
    background-image: url("images/stars.webp");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-blend-mode:hard-light;
}

.logo {
    margin-top:1vh;
    width: 32vh;
    height: 10vh;
}

.auto {
    width: 30vh;
    height: 30vh;
    margin-top: 5vh;
    margin-right: 5vh;
    margin-left: 5vh;
    border-radius: 10%;
}

body {
    background-color:#000000;
}

h1 {
    padding-left: 2vh;
    color: #f8f8f8;
    margin: 0%;
    text-align: center;
    font-family: Consolas,monaco,monospace; 
    font-style: italic;
    font-size: 7vh;
    background-color:#000000;
    height: 13vh;
    width: 40vh;
    float: left;
    content: center;
	display: flex;
	flex-direction:column;
	align-items: center;
    padding-right: 2vh;
    border-bottom: 2px solid gray;
    border-right: 2px solid gray;
    text-shadow: 4px 4px 6px rgba(218, 218, 218, 1);
    background-image: url("images/stars.webp");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-blend-mode:hard-light;
}

#napisLogo {
    color: #d4d4d4;
    font-family: Consolas,monaco,monospace; 
    margin-top: 0%;
    font-size: 3vh;
}

h1 {
    border: none;
    border-bottom: 2px solid gray;
    display: none;
}

h2 {
    display: grid;
    background-color:#000000;
    color: #d4d4d4;
    font-family: Consolas,monaco,monospace; 
    margin: 0%;
    font-size:3vh;
    width: 100%;
    border-bottom: 2px solid gray;
    grid-template-columns: 1;
}

.info {
    text-align: center;
}

a {
    text-decoration: none;
    color:#d4d4d4;
}

.inf1 {
    width: 100%;
}

.inf2 {
    width: 100%;
}

.inf3 {
    width: 100%;
}

.inf4 {
    width: 100%;
}


@media screen and (max-width:550px){

}

@media (min-width:550px) {
    h2 {
        display: grid;
        background-color:#000000;
        color: #d4d4d4;
        font-family: Consolas,monaco,monospace; 
        margin: 0%;
        font-size:3vh;
        width: fit-content;
        border-bottom: 2px solid gray;
        grid-template-columns: 1;
    }

    #gridmenu {
        display: grid;
    }

    h1 {
        border: none;
        border-bottom: 2px solid gray;
        display: none;
    }

    h2 {
        background-color:#000000;
        color: #d4d4d4;
        font-family: Consolas,monaco,monospace; 
        margin: 0%;
        height: 13vh;
        font-size:3vh;
        border-bottom: 2px solid gray;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        place-content: center;
    }
    
    .info {
        text-align: center;
    }

    .FB {
        width:6vh;
        position: absolute;
        text-align:right;
        right: 3%;
    }
   
    a {
        margin:0 auto;
        color: #ffffff;
        height: fit-content;
        width: fit-content;
    }
}

@media (min-width:800px) {
    h2 {
        display: grid;
        background-color:#000000;
        color: #d4d4d4;
        font-family: Consolas,monaco,monospace; 
        margin: 0%;
        font-size:3vh;
        width: fit-content;
        border-bottom: 2px solid gray;
        grid-template-columns: 1;
    }

    #gridmenu {
        display: grid;
    }

    h1 {
        border: none;
        border-bottom: 2px solid gray;
        display: none;
    }

    h2 {
        background-color:#000000;
        color: #d4d4d4;
        font-family: Consolas,monaco,monospace; 
        margin: 0%;
        height: 13vh;
        font-size:3vh;
        border-bottom: 2px solid gray;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        place-content: center;
    }
    
    .info {
        text-align: center;
    }

    .FB {
        position: absolute;
        text-align:right;
        right: 3%;
    }
    body{
        height: 100%;
    }
    #main {
        display: block;
        height: 100%;
    }

    a {
        margin:0 auto;
        color: #ffffff;
        height: fit-content;
        width: fit-content;
    }
}

@media (min-width:1200px) {

    #gridmenu {
        display:block;
    }

    h1 {
        border: none;
        border-bottom: 2px solid gray;
        border-right: 2px solid gray;
        display: block;
    }

    h2 {
        background-color:#000000;
        color: #d4d4d4;
        font-family: Consolas,monaco,monospace; 
        margin: 0%;
        height: 13vh;
        font-size:3vh;
        border-bottom: 2px solid gray;
        display: grid;
        width: auto;
        grid-template-columns: repeat(4, 1fr);
        justify-content: center;
        place-content: center;
    }

    .info {
        text-align: center;
    }

    .FB {
        position: absolute;
        text-align:right;
        right: 7%;
    }


}

p {
    margin-right: 3%;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

/* --- RESPONSYWNA GALERIA O RÓŻNYCH PROPORCJACH ZDJĘĆ --- */

#main {
    width: 100%;
    padding: 4vh 0;
    box-sizing: border-box;
}

.gallery {
    display: flex;
    flex-wrap: wrap; /* Pozwala zdjęciom przechodzić do nowego wiersza */
    gap: 15px;       /* Odstęp między zdjęciami */
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    /* KLUCZOWE PARAMETRY: */
    height: 280px;   /* Stała, rzeźbiarska wysokość każdego zdjęcia w wierszu */
    flex-grow: 1;    /* Pozwala kafelkowi rozciągnąć się, by wiersz był idealny do krawędzi */
    flex-shrink: 1;
    
    border: 2px solid gray;
    background-color: #0c0c0c;
    overflow: hidden;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover sprawia, że zdjęcie idealnie wypełni kafel, 
       minimalnie się przycinając tylko tam, gdzie flexbox lekko naciągnie ramkę */
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease-in-out;
}

/* Efekt powiększenia po najechaniu myszką */
.gallery-item:hover img {
    transform: scale(1.06);
}

/* --- DOSTOSOWANIE DLA TABLETÓW I MNIEJSZYCH EKRANÓW --- */
@media screen and (max-width: 900px) {
    .gallery-item {
        height: 220px; /* Zmniejszamy wysokość rzędu na mniejszych ekranach */
    }
}

/* --- DOSTOSOWANIE DLA TELEFONÓW --- */
@media screen and (max-width: 550px) {
    #main {
        padding: 2vh 0;
    }

    .gallery {
        gap: 12px;
        padding: 0 4%;
    }
    
    .gallery-item {
        height: 200px; /* Optymalna wysokość na smartfonie */
        /* Na małym ekranie telefonu każde zdjęcie zajmie całą szerokość wiersza */
        flex-basis: 100%; 
    }
}