/* Reusable throughout the site */
body {
    font-family: Georgia, serif;;
    font-size: 1.0em;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.col {
    display: flex;
    flex-direction: column;
    margin: 5px 10px;
}

.grid-row {
    justify-content: space-between;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    row-gap: 0em;
    column-gap: 1em;
    flex-direction: row;
    flex-flow: row wrap;
    margin: 0px 0px 0px 0px;
}

.row {
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    margin: 0px 0px 0px 0px;
}

.image-text-container {
    width: 260px;
    height: 350px;
    padding: 5px;
    margin: 20px 0px 0px 0px;
    border: 1px black solid;
}

.image-text-container-any-height {
    width: 260px;
    padding: 5px;
    margin: 20px 0px 0px 0px;
    border: 1px black solid;
}

.image-text-container-large {
    width: 260px;
    height: 480px;
    padding: 5px;
    margin: 20px 0px 0px 0px;
    border: 1px black solid;
}

.image-text-container-small {
    width: 260px;
    height: 180px;
    padding: 5px;
    margin: 20px 0px 0px 0px;
    border: 1px black solid;
}

.center {
    text-align: center;
}

.primary-bg {
    background-color: #136f63;
}

.box-primary {
    margin: 10px;
    padding: 30px;
    text-align: center;
    width: 80px;
    color: white;
    background-color: #22aaa1;
}

.box-secondary {
    margin: 10px;
    padding: 30px;
    text-align: center;
    width: 80px;
    color: white;
    background-color: #22aaa1;
}

.box-tertiary {
    margin: 10px;
    padding: 30px;
    text-align: center;
    width: 80px;
    color: white;
    background-color: #1014b8;
}

.box {
    background-color:#136f63;
    width: 100%;
    padding: 5px 0px 5px 0px
}

.plain {
    margin-right: 20px;
    width: 500px;
    float: none;
    display: revert;
    color: black;
}

.dark-text-overlay {
    font-family: "Open Sans",Arial,Helvetica,sans-serif;
    position: relative;
    margin-top: -260px;
    margin-left: 70px;
    font-size: 1.5em;
    font-weight: 700;
    color: black;
}

/* used in reusable image, header, body boxes */
.image-link {
    width: 260px;
    height: 200px;
    object-fit: contain;
}

.image-link ~ header, iframe ~ header, .image-text-container > header {
    width: 260px;
    font-weight: 700;
}

.image-link ~ div, iframe ~ div {
    width: 260px;
}

/* index specific styles */
.pic {
    height: 300px;
    width: 270px;
    transition: filter .1s linear;
    object-fit: cover;
} 

.photo-col {
    position: relative;
    width: 270px;
    height: 300px;
    margin: 5px 10px;
    border-top: 20px solid white;
    background-color:black;margin:0px;padding:0px;
    flex-basis: auto;
}

.photo-col:hover .txt {
    cursor: pointer;
    color: #fff;
}

.photo-col:hover .txt-background {
    background-color:  rgba(10,10,10,.5);
}

.book-col:hover .book-pic {
    filter: grayscale(0);
}

.photo-col:hover .pic {
    filter: grayscale(0);
}

.txt-background {
    font-family: "Open Sans",Arial,Helvetica,sans-serif;
    font-size: 1.3rem;
    position: absolute;
    width: 270px;
    height: 70px;
    left: 0px;
    top: 230px;
    background-color: rgba(10,10,10,.8);
    transition: background-color .1s linear;
}
.txt {
    font-size: 1.3rem;
    position: absolute;
    color: #ddd;
    width: 250px;
    padding: 5px;
    left: 5px;
    top: 235px;
    transition: color .1s linear;
    text-align: center;
}

/* header specific styles */
.logo {
    width: 80px;
    height: 80px;
    margin: 10px;
}

/* posterity page specific styles */
.heart {
    text-align: center;
    font-size: 1em;
    margin: 30px;
    padding: 10px;
}


/* footer specific styles */
.footer-col {
    display: flex;
    flex-direction: column;
    width: 270px;
    margin: 0px;
    padding: 0px;
    border: 6px solid white;
}

.footer-col > a {
    color: #177c9c;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
}
.footer-col > a:hover {
    text-decoration: underline;
}

a, a.visited {
    text-decoration: none;
    font-size: 1.0em;
    color: #136f63;
}

a:hover {
    text-decoration: underline;
}

hr {
    margin-top: 20px;
}

.historic-image {
    width: 500px;
}

@media only screen and (max-width: 706px) {
    .photo-col {
        margin: auto;
        width: 100%;
    }
    .plain {
        width: 350px;
    }
    .txt-background {
        top: 300px;
    }
    .txt {
        top: 320px;
    }
    .pic, .txt, .photo-col {
        width: 100%;
        height: 400px;
    }
    .txt, .txt-background {
        width: 100%;
        height: 100px;
    }
    .txt {
        width: 100%;
    }
    .historic-image {
        width: 350px;
    }
    .image-text-container {
        width: 97%;
    }
    .image-text-container-large {
        width: 95%;
        height: 400px;
    }
    .image-link,
    .image-text-container > header,
    .image-text-container > div,
    .image-text-container-large,
    .image-text-container-large > header,
    .image-text-container-large > div {
            width: 97%;
        object-fit: cover;
    }

}
