.title-block {
    text-align: center;
    margin-bottom: 40px;
}

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

.title-block h2 {
    color: #397019;
}

h3 {
    font-size: 20px;
    margin-bottom: 40px;
}

.button-grid {
    margin-top: 40px;
}

.button-grid a {
    background: #397019;
    color: white;
    border-radius: 5px;
    border: 2px solid #397019;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
}

.button-grid a:hover, .button-grid a:focus {
    background: #FFFFFF;
    color: black;
}

.button-grid a:focus:not(:focus-visible) {
    background: #397019;
    color: white;
}

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

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

.pagination a:focus {
    outline: 2px solid black;
}

.pagination a:focus:not(:focus-visible) {
    outline: none !important;
}

.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;
}

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

#img-list {
    display: flex;
    justify-content: center;
    justify-items: center;
    flex-direction: column;
    flex-flow: wrap;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    width: 280px;
}

.content-grid{
    display: grid;
    justify-items: center;
}

.helper-label {
    text-align: center;
    padding-bottom: 25px;
}

.img-grid img {
    width: 130px;
    height: 130px;
}

.horiz-bar {
    width: 280px;
    height: 4px;
    margin-top: 20px;
    margin-bottom: 20px;
    background: black;
}

#img-container {
    display: grid;
    justify-items: center;
}

.img-container-hidden {
    display: none !important;
}

#img-expanded {
    max-width: 280px;
    height: auto;
}

.button-grid {
    position: relative;
}

#img-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    background: none;
}

#img-close-btn img {
    background: black;
    padding: 6px;
    border-radius: 5px;
    width: 28px;
}

#img-prev-btn {
    position: absolute;
    top: 45%;
    left: 15px;
    border: none;
    background: none;
}

#img-prev-btn img, #img-next-btn img {
    background: black;
    padding: 6px;
    border-radius: 5px;
    width: 22px;
}

#img-next-btn {
    position: absolute;
    top: 45%;
    right: 15px;
    border: none;
    background: none;
}

#img-text {
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

#img-list img:hover {
    cursor: pointer;
}

@media only screen and (min-width: 375px) {
    .horiz-bar {
        width: 315px;
    }

    #img-expanded {
        max-width: 315px;
    }
}

@media only screen and (min-width: 425px) {
    .horiz-bar {
        width: 340px;
    }

    #img-expanded {
        max-width: 340px;
    }
}

@media only screen and (min-width: 768px) {
    .horiz-bar {
        width: 550px;
    }

    #img-expanded {
        max-width: 550px;
    }

    #img-list {
        grid-row-gap: 25px;
        grid-column-gap: 25px;
        width: 550px;
    }
}

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

    #img-list {
        width: 750px;
    }

    #container {
        min-height: 85vh;
    }
}