/* font-family: 'Noto Serif', serif; */
.wrapper {
    padding-top: 10vh;
    min-height: 230vh;
    height: auto;
    position: relative;
    /* background: linear-gradient(to top, aqua, blue); */
    background-color: black;
}

.wrapper * {
    /* box-sizing: border-box; */
}

/* #24292e- kolor nagłówka */
/* #242734 - kolor inspiracji */
.gallery {
    font-family: 'Roboto', 'sans-serif';
    background-color: black;
    color: white;
    width: 99%;
    height: 80%;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    display: flex;
    flex-direction: column;

}

.gallery .title {
    flex-basis: 25%;
    position: relative;
}

.gallery .title h1 {
    font-family: 'Noto Serif', serif;
    position: absolute;
    text-align: center;
    width: 100%;
    padding: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
}

.gallery .images {
    margin: 0 auto;
    max-width: 1200px;
    flex-basis: 85%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}

/* .gallery .images:nth-child(7) {
    align-self: flex-end;
    justify-self: flex-end;
    border: 2px solid red;
}

.gallery .images:nth-child(8) {
    align-self: flex-end;
    justify-self: flex-end;
} */

.images a {
    cursor: default;
    flex-basis: 33%;
    height: 30%;

}

.images a:nth-child(7) {
    margin-left: 10%;
    flex-basis: 40%;
    height: 40%;
}

.images a:nth-child(8) {
    flex-basis: 40%;
    height: 40%;
}



.images img {
    filter: grayscale(0%);
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 20px;
    transition: .5s;
}


.images a:hover img {
    transform: scale(1.2);
    filter: grayscale(100%);
}

p {
    line-height: 170%;
    font-style: oblique;
    font-family: 'Noto Serif', serif;
    padding: 10%;
    align-self: flex-end;
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .gallery {
        top: 45%;
    }
}


@media(max-width: 620px) {
    .gallery {
        top: 55%;
    }

    .gallery .title h1 {
        padding: 10px;
        font-size: 2rem;
    }
}

@media(max-width: 500px) {
    .gallery .title h1 {}
}