.title-block {
    text-align: center;
    margin-top: 40px;
    padding: 0 15px 0 15px;
}

.title-block h1 {
    margin-bottom: 8px;
    font-size: 28px;
}

.title-block h2 {
    font-size: 22px;
    color: #397019;
}

.title-block p {
    margin-bottom: 25px;
    margin-top: 30px;
    font-weight: bold;
}

.gallery-grid {
    display: grid;
    justify-content: center;
    grid-row-gap: 30px;
}

.gallery-grid a {
    display: grid;
    justify-content: center;
    justify-items: center;
    background: #EAE4E1;
    text-decoration: none;
    color: black;
    width: 250px;
    border-radius: 10px;
    padding-bottom: 25px;
}

.gallery-grid a img {
    width: 130px;
    height: 130px;
    margin-top: 30px;
}

.img-label p {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 80px;
    align-items: center;
}

.pagination a {
    margin-right: 8px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

.pagination .active {
    background: #397019;
    padding: 4px 6px 4px 6px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.prev-arrow, .next-arrow {
    width: 19px;
}

.next-arrow-link, .prev-arrow-link {
    background: #397019;
    border-radius: 5px;
    display: grid;
    justify-content: center;
    padding: 5px;
}

#content a:focus {
    outline: 2px solid black;
}

#content a:focus:not(:focus-visible){
    outline: none!important;
}

#first-page-link, #last-page-link{
    color: white;
    font-size: 15px;
    padding: 5px;
    background: #397019;
    border-radius: 5px;
    display: grid;
    justify-content: center;
}

@media only screen and (min-width: 768px) {

    .title-block {
        margin-top: 70px;
    }

    .title-block h1 {
        font-size: 32px;
    }

    .gallery-grid {
        grid-row-gap: 40px;
        grid-template-columns: 250px 250px;
        grid-column-gap: 40px;
        margin-top: 40px;
    }
}

@media only screen and (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 220px 220px 220px;
    }

    .gallery-grid a {
        width: 220px;
    }

    .title-block p {
        margin-bottom: 50px;
        margin-top: 70px;
        font-weight: bold;
    }
}

@media only screen and (min-width: 1440px) {
    .gallery-grid {
        grid-template-columns: 250px 250px 250px 250px;
        grid-column-gap: 20px;
        grid-row-gap: 50px;
    }
}

@media only screen and (min-width: 1800px) {
    .gallery-grid {
        grid-template-columns: 250px 250px 250px 250px 250px;
    }
}

