/* main */
main {
    margin: 20px;
}

/* text */
h1, h2, h3, h4, h5, h6 {
    font-family: "rockwell", sans-serif;
    font-style: normal;
}
p, a, .lightbox-caption, ul, li {
    font-family: "corbel", sans-serif;
    font-style: normal;
}
h1 {
    font-size: 3.05em;
    font-weight: 700;
}
h2 {
    font-size: 2.44em;
}
h3 {
    font-size: 1.95em;
}
h4 {
    font-size: 1.56em;
}
h5 {
    font-size: 1.25em;
}
h6 {
    font-size: 1.0em;
}
p, a, .lightbox-caption, .contact-about-content > ul, li {
    font-size: 1.25em;
}
p, .lightbox-caption, .contact-about-content > ul, li {
    line-height: 1.6em;
}
ul {
    list-style: none;
}

/* footer */
.footer-container {
    background-color: white;
    text-align: center;
}
.logo-sub {
    max-width: 80.53px;
}

/* navigation */
#logo {
    width: 100%;
    height: auto;
    max-width: 222px;
}
#primary-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0px 20px;
    position: relative;
    font-family: sans-serif;
    background-color: white;
}
#toggle-nav {
    background: none;
    border: none;
    color: #471321;
    font-size: 32px;
    cursor: pointer;
    display: none;
    width: 48px;
    height: 48px;
    text-align: center;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}
.nav-links a {
    padding: 49.2px 50px 49.2px 50px;
    color: #471321;
    text-decoration: none;
    font-size: 1.0em;
}
.nav-links li a:hover {
    color: #8C1A39
}
.nav-links a:visited {
    color: #471321
}

/* hero */
.hero-banner {
    color: white;
    background-color: #8C1A39;
    margin: 0 auto;
}
.hero-banner-content {
    max-width: 690px;
    height: auto;
    padding: 20px 20px 60px 20px;
    margin: 0 auto;
}
.hero-cta {
    color:#471321;
    background-color: white;
    padding: 20px;
    margin: auto;
    text-align: center;
}

/* icons */
.socials {
    padding: 0px 20px;
}
.socials img {
    width: 44px;
    height: auto;
}

/* project pages */
.project-info-container {
    width: 100%;
    max-width: 690px;
    margin: auto;
    margin-bottom: 50px;
}
.key-info {
    text-transform: uppercase;
}
.project-title {
    color: #471321;
}

/* grid about & contact pages */
.container-about-contact {
    display: flex;
    column-gap: 50px;
    margin: 0 auto;
    width: 100%;
    max-width: 720px;
    justify-content: center;
    margin: 100px auto;
}
.about-contact-photo, .about-contact-photo img, .about-contact-content {
    max-width: 335px;
    width: 100%;
}

/* grid */
.grid-container, .grid-container-og {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1440px;
    margin: auto;
}
.home-thumbnail, .project-cell-normal {
    position: relative;
    margin: auto;
}
.home-thumbnail {
    color: white;
    display: block;
    font-family: "rockwell", sans-serif;
    font-style: normal;
    font-weight: 400;
}
.home-thumbnail img, .project-cell-normal img {
    width: 100%;
    height: auto;
    max-width: 335px;
    object-fit: cover;
}
.home-thumbnail:hover img {
    transition: transform 0.3s ease;
}
.home-thumbnail:before, .home-thumbnail:after{
    width:100%;
    max-width: 335px;
    position:absolute;
    opacity:0;
    transition:opacity 0.3s ease
}
.home-thumbnail::before{
    content:'';
    height:100%;
    background-color: #471321ce;
}
.home-thumbnail::after{
    content:attr(data-title);
    font-size:24px;
    top:calc(50% - 0.5em);
    left:0;
    text-align:center;
    color:#fff;
}
.home-thumbnail:hover::before,
.home-thumbnail:hover::after {
    opacity: 1;
}

/* modified project cells */

/* spans two columns */
.project-cell-span-2-col {
    grid-column: span 2;
}

/* spans two rows */
.project-cell-span-2-row {
    grid-row: span 2;
}

.project-cell-span-2-col img,
.project-cell-span-2-row img {
    max-width: 100%;
}


/* lightbox */
.project-cell-normal:hover {
    cursor: pointer;
    opacity: 0.5;
}
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}
.lightbox-content, .lightbox-caption {
    max-width: 690px;
    width: 100%;
    margin: 0 auto;
}
.lightbox-content {
  display: block;
  margin-top: 2%;
}
.lightbox-content img {
    width: 100%;
    height: auto;
}
.lightbox-caption {
  text-align: left;
  color: #ffffff;
  margin: 25px auto 50px auto;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
.lightbox-close:hover {
  color: #bbb;
}

/* live site thumbnails */
.linked-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    max-width: 670px;
    margin: auto;
    font-family: "rockwell", sans-serif;
    font-style: normal;
    font-weight: 400;
    cursor: pointer;
  }
  .linked-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .linked-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #471321ce;
    opacity: 1;
    z-index: 1;
    max-width: 670px;
  }
  .linked-thumbnail::after {
    content: attr(data-title);
    position: absolute;
    top: calc(50% - 0.5em);
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.5em;
    z-index: 2;
    max-width: 670px;
  }
  .linked-thumbnail::before,
.linked-thumbnail::after {
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.linked-thumbnail:hover::before,
.linked-thumbnail:hover::after {
  opacity: 0;
}

/* misc */
.logo-project {
    margin: 0 auto;
    justify-content: center;
}
.logo-project img, .logo-project {
    max-width: 335px;
    width: 100%;
    height: auto;
}

/* breakpoint 1 */
@media (max-width: 1145px) {
.grid-container-og {
    grid-template-columns: repeat(3, 1fr);
}
}

/* breakpoint 2 */
@media (max-width: 850px) {
h1 {
    font-size: 2.2em;
}
h2 {
    font-size: 1.8em;
}
h3 {
    font-size: 1.6em;
}
h4 {
    font-size: 1.4em;
}
h5 {
    font-size: 1.2em;
}
h6 {
    font-size: 1em;
}
#toggle-nav {
    display: block;
}
.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    width: 100%;
    display: none;
    background-color: white;
}
body.nav-open .nav-links {
    display: flex;
}
.nav-links li {
    text-align: center;
    padding: 15px 0;
}
.grid-container, .grid-container-og {
    grid-template-columns: repeat(2, 1fr);
}
.container-about-contact {
    display: block;
    text-align: center; 
    padding: 0 20px;
  }

  .about-contact-photo,
  .about-contact-content {
    margin: 0 auto 50px;
    text-align: left;
  }
}

/* breakpoint 3 */
@media (max-width: 555px) {
    .grid-container, .grid-container-og {
    grid-template-columns: repeat(1, 1fr);
}
.project-cell-span-2-col {
    grid-column: span 1;
  }

  .project-cell-span-2-row {
    grid-row: span 1;
  }
}

/* breakpoint 4 */
@media (max-width: 555px) {
    .hero-link {
        display: block;
        margin-bottom: 5px;
    }
}