*, *::before, *::after {
    box-sizing: border-box;
}

html{
    line-height:1.15;
    -webkit-text-size-adjust:100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

main {
    flex-grow: 1;
}

h1,
h2,
h3 {
    text-align: center;
}

h1,
h2 {
    font-size: 2em;
    margin: 0.67em 0;
}

h3 {
    font-size: 1.5em;
}

h1 a,
h2 a,
h3 a {
    text-decoration: none;
}

a {
    color: black;
}

a:hover {
    color: red;
}

span {
    flex-grow: 3;
}

nav {
    display: flex;
    align-items: center;
    padding-right: 1em;
    border-bottom: solid;
    gap: 1em;
}

nav p {
    color: grey;
    margin: 0;
}

.nav-link {
    font-size: 20pt;
    font-weight: bold;
    text-decoration: none;
}

.logo-hover {
    display: none;
}

.logo img {
    height: 75px;
    width: 75px;
}

.logo:hover img:first-child {
    display: none;
}

.logo:hover img:last-child {
    display: inline-block;
}

header {
    border-bottom: solid;
    padding: 1em;
}

header h1 {
    font-size: 40pt;
    margin-top: 0;
    margin-bottom: 5px;
}

header p {
    font-size: 16pt;
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}

footer {
    border-top: solid;
    border-bottom: solid;
    padding: 0 1em;
    margin-bottom: 1em;
    margin-top: 1em;
}

hgroup h3 {
    text-align: left;
    margin: 0;
}

hgroup p {
    font-style: italic;
    margin: 0;
}

.description {
    font-size: 16pt;
    text-align: center;
    padding: 0 20%;
    border-bottom: solid;
}

.below {
    border-top: solid;
    margin-top: 1em;
}

.pagination {
    font-size: 16pt;
    justify-content: center;
    margin-top: 1em;
    border: none;
    padding: 0 10%;
    gap: 10px;
}

.pagination a {
    text-decoration: none;
}

.boxes {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, 450px);
    justify-content: center;
    margin: auto;
    max-width: 80%;
}

.box {
    height: 400px;
    width: 450px;
    border: solid 2px;
    padding: 1em;
    text-decoration: none;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
}

.box h3 {
    color: black;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0.67em;
}

.box-text {
    max-height: 100%;
    overflow: hidden;
    color: black;
    margin-top: -1em;
}

.box img {
    object-fit: cover;
    height: 100%;
    min-height: 0;
    width: 100%;
}

.entry-title h2 {
    margin-bottom: 10px;
}

.entry-title p {
    text-align: center;
}

.blog {
    display: flex;
    gap: 1em;
    padding: 0 10%;
    margin-top: 1em;
}

.blog h2 {
    margin-top: 5px;
    margin-bottom: 0;
}

.blog section {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog aside {
    margin: 0 1em;
    width: 300px;
    flex-shrink: 0;
    border-left: solid;
    border-right: solid;
    flex-grow: 0;
}

.blog aside div {
    position: sticky;
    top: 0;
}

.blog aside a {
    text-decoration: none;
}

.blog aside li {
    margin: 5px 0;
}

.blog-preview {
    display: block;
    text-decoration: none;
}

.blog-preview hgroup {
    display: flex;
    gap: 1em;
    align-items: baseline;
    margin-top: 1em;
    border-bottom: solid 1px;
}

.blog-preview p {
    color: black;
}

article {
    padding: 0 20%;
}

article img {
    max-width: 500px;
    display: block;
    margin: 2em auto;
}

.gallery {
    display: flex;
    flex-direction: column;
}

.sub-galleries {
    padding: 1em;
    overflow: auto;
    display: flex;
    gap: 1em;
    border-bottom: solid;
}

.sub-gallery {
    border: solid 2px;
    width: 250px;
    height: 200px;
    text-decoration: none;
    padding: 1em;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sub-gallery h3 {
    color: black;
    flex-shrink: 0;
    margin-top: 0.5em;
    margin-bottom: 0;
    font-size: 1.25em;
}

.sub-gallery img {
    object-fit: cover;
    min-height: 0;
    width: 100%;
}

.image-view {
    background-color: black;
    margin-top: 1em;
    padding: 2em 10%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.image-view img {
    border: solid 1px dimgrey;
    flex-grow: 0;
}

.image-description {
    font-size: 16pt;
    padding: 0 20%;
}

@media (max-width: 800px) {
    .blog {
        flex-direction: column;
    }

    .blog aside {
        width: 100%;
        margin: 0;
        border: none;
        border-top: solid;
    }
}