/* setup */
:root {
    --white: #FAF9FD;
    --dark-blue: #312E45;
}

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

html, body {
    background-color: var(--white);
}

body {
    margin: 160px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1, h2, h3 {
    text-transform: uppercase;
    color: var(--dark-blue);
    font-family: 'Times New Roman', Times, serif;
}


h1 {
    font-size: 40px;
    text-align: center;
    margin-bottom: 16px;
    width: max-content;
}


h2 {
    font-size: 36px;
    margin: 16px 0;
}

h3 {
    font-size: 24px;
    line-height: 1.4;
}

p {
    font-size: 19px;
    line-height: 1.6;
    text-align: justify;
    color: var(--dark-blue);
}

/* all elements that have consistent padding */
/* project section & buttons have different padding */
.padding {
    padding: 20px 16px;
}

/* main content */
.about {
    width: 960px;
    border-style: solid;
    border-color: var(--dark-blue);
    border-width: 20px 2px 2px 2px;
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    grid-template-rows: auto auto auto;
}

.column.left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 96px;
}

.divider {
    background-color: var(--dark-blue);
}

.text-wrapper > p:first-of-type, .column.right p:first-of-type {
    margin-bottom: 12px;
}

/* hero buttons */
.button-wrapper {
    border-top: 2px solid var(--dark-blue);
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
}

.button-wrapper .button {
    text-align: center;
    font-size: 19px;
    cursor: pointer;
    height: 86px;
}

.button a {
    display: flex;
    text-decoration: unset;
    color: unset;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.button:hover {
    text-decoration: underline;
    background-color: var(--dark-blue);
    color: var(--white);
}

/* breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: end;
    text-align: center;
    width: 960px;
    gap: 12px;
}

.breadcrumb a {
    color: var(--dark-blue);
    text-decoration: unset;
    font-size: 19px;
    line-height: 1.6;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb p {
    font-size: 19px;
    color: var(--dark-blue);
}

/* projects */
.projects {
    width: 960px;
    padding: 96px 16px 96px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    border-color: var(--dark-blue);
    border-style: solid;
    border-width: 20px 2px 2px 2px;
}

.projects h1 {
    margin: 16px 0 32px 0;
}

.projects .year-grid {
    display: grid;
    /* grid-template-columns: 160px min-content; */
    grid-template-columns: 100px max-content;
    width: fit-content;
    margin-bottom: 24px;
    min-width: 740px;
}

.year-grid.last-grid {
    margin-bottom: unset;
}

.projects .year-grid p {
    font-size: 24px;
    height: fit-content;
    padding-top: 21px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* grid-template-rows: 80px 80px; */
    grid-template-rows: 80px 19px;
    column-gap: 12px;
    /* change to 12 when loaded */
    row-gap: 6px;
    place-items: center;
    min-width: 510px;
}

.year-grid.last-grid .images-grid {
    grid-template-rows: 80px;
}

.images-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

img.second-row {
    /* see singular 80px row for .images-grid */
    display: none;
}

.year-grid p.load-button {
    font-size: 12px;
    padding: unset;
    grid-column: 6;
    grid-row: 2;
    width: 100%;
    text-align: right;
}

.year-grid p.load-button:hover {
    cursor: pointer;
    text-decoration: underline;
}

/* blog */
.blog {
    width: 960px;
    border-color: var(--dark-blue);
    border-style: solid;
    border-width: 20px 2px 2px 2px;
}

.blog-section-hero {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    border-bottom: 2px solid var(--dark-blue);
}

.heading-content .headings {
    margin-bottom: 120px;
}

.heading-content .headings h1 {
    margin-bottom: 2px;
}

.heading-content .headings p {
    font-size: 12px;
}

.blog-section-hero .heading-content p:first-of-type {
    margin-bottom: 12px;
}

.blog-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(images/img-background.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.blog-image .blog-page-button {
    font-size: 19px;
    border: 2px;
    background-color: var(--white);
    padding: 20px 24px;
    border: 2px solid var(--dark-blue);
}

.blog-page-button:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    text-decoration: underline;
    cursor: pointer;
}

.blog-posts {
    display: grid;
    grid-template-columns: 1fr 2px 1fr 2px 1fr;
}

.blog-posts .blog-card {
    padding: 48px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.blog-posts .blog-card span#post-date {
    font-size: 12px;
}

/* footer */
.footer {
    width: 960px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}

.footer > p:first-of-type {
    width: 480px;
}