.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, .info-card h2 {
    font-size: 22px;
    color: #397019;
}

.info-card {
    background: #EAE4E1;
    width: 280px;
    padding: 20px;
    height: min-content;
    border-radius: 10px;
}

.page-grid {
    display: grid;
    justify-content: center;
    justify-items: center;
    margin-top: 50px;
    margin-bottom: 75px;
}

.label {
    font-weight: bold;
    margin-top: 10px;
}

.label-grid {
    display: flex;
    flex-direction: column;
}

.sci-name {
    text-transform: lowercase;
    font-style: italic;
}

.sci-name:first-letter {
    text-transform: uppercase;
}

#img-list {
    display: grid;
    justify-content: center;
    justify-items: center;
    grid-template-columns: 130px 130px;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
}

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

.vert-bar {
    display: none;
}
.resource-grid {
    margin-bottom: 10px;
}
.resource-grid a {
    color: #397019;
}

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

.resource-grid a:focus{
    outline: 2px solid black;
}

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

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

#back-btn-container {
    width:100%;
    display:flex;
    justify-content: center;
    margin-bottom: 75px;
}

#back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #397019;
    color: white;
    height: 35px;
    width: 115px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}

#back-btn:focus{
    outline: 1px solid black;
    outline-offset: -1px;
}

#back-btn:focus:not(:focus-visible){
    outline: none!important;
}

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

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

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

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

@media only screen and (min-width: 768px) {
    .info-card, .horiz-bar {
        width: 600px;
    }

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

    #img-list {
        grid-template-columns: 130px 130px 130px 130px;
        grid-row-gap: 25px;
        grid-column-gap: 25px;
    }
}

@media only screen and (min-width: 1440px) {
    .page-grid {
        margin-top: 70px;
        grid-column-gap: 70px;
        grid-template-columns: 500px 4px 440px;
        margin-left: -55px;
    }

    .horiz-bar {
        display: none;
    }

    .vert-bar {
        display: grid;
        width: 4px;
        background: black;
        max-height: max-content;
    }

    #img-list {
        grid-template-columns: 130px 130px 130px;
    }

    .info-card {
        width: 500px;
    }

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

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

@media only screen and (min-width: 1800px) {
    .page-grid {
        grid-template-columns: 600px 4px 440px;
        margin-left: -160px;
    }

    .info-card {
        width: 600px;
    }
}