* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

a:hover {
  color: #ffcccb;
}

a:active {
  color: #400000;
}

body {
  font-family: "Nunito Sans", serif;
  background-color: white;
}

.header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 10px 15px -6px 15px;
}

.logo {
  display: block;
  width: 280px;
}

.nav {
  background-color: #cc3e3e;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  left: -100%;
  position: fixed;
  width: 100%;
  z-index: 1;
}

.nav_list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 30px;
  padding: 20px 30px;
}

.nav_link,
.footer_link {
  color: white;
  font-size: 25px;
}

.hamburger {
  display: block;
  margin: 10px 0 5px 10px;
}

.bar {
  height: 3px;
  width: 30px;
  background-color: #cc3e3e;
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.cover {
  display: flex;
  flex-direction: column-reverse;
  border: 3px solid black;
  margin: 5%;
}

.intro {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  font-size: 7vw;
  margin: 10px auto;
}

.cover_photo img {
  display: none;
}

.mcover_photo {
  position: relative;
  display: inline-block;
  text-align: center;
  margin: 0px;
}

.mcover_photo img {
  width: 90%;
  height: auto;
  padding: 10px;
  display: block;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  grid-auto-rows: 12.5rem;
  gap: 0.75rem;
  margin: 20px;
  grid-auto-flow: dense;
}

.gallery figure,
.gallery a {
  background-color: #cc3e3e;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.gallery img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  grid-area: 1 / 1 / -1 / -1;
  transition: scale 1s ease-in-out;
}

.gallery figcaption {
  display: none;
}

.artwork {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: 100%;
  padding: 15px;
  justify-content: center;
}

.artwork span {
  font-weight: 700;
}

.artwork_img img,
.az_artwork_img img,
.gen_artwork_img img,
.tatnall_artwork_img img {
  width: 100vw;
  height: auto;
}

.rack_artwork_img img {
  height: 75vh;
  width: auto;
}

.contact, .about {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 25px;
  padding-top: 25px;
  border: 3px solid black;
  margin: 3%;
}

.about {
  flex-wrap: wrap;
}

.contact_title h2 {
  font-size: 35px;
  font-weight: 800;
}

.contact_form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 10px;
  padding: 10px;
}

.contact_field {
  width: 85vw;
  height: 50px;
  outline: none;
  padding-left: 15px;
  font-family: "Nunito Sans", serif;
  font-size: 16px;
}

.contact_form textarea {
  height: 140px;
  padding-top: 15px;
  font-family: "Nunito Sans", serif;
}

.contact_form button {
  padding: 10px 25px;
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
  font-family: "Nunito Sans", serif;
  border: none;
}

.contact_img {
  display: none;
}

.about_img img {
  max-width: 90vw;
}

.about_text {
  width: 80vw;
}

.about_text h2{
  font-size: 30px;
  text-align: center;
  padding-bottom: 5px;
}

.a_links {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
} 

.resume_link {
  background-color: #cc3e3e;
  padding: 15px;
  text-align: center;
  width: 80%;
  color: white;
  font-size: 25px;
  font-weight: 700;
  margin: 20px;
  border: 1px solid white;
}

.resume_link:hover {
  background-color: white;
  color:#cc3e3e;
  border: 1px solid black; 
}

.resume_link:active {
  box-shadow: 4px 4px #cc3e3e;
  color: black;
}

.linkedin_link {
  color:#cc3e3e;
  font-size: 20px;
  font-weight: 700;
}

footer {
  background-color: #cc3e3e;
  width: 100%;
  padding: 10px;
  box-shadow: 0 50vh 0 50vh #cc3e3e;
}

.footer_item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer_item i {
  line-height: 2;
  font-size: 30px;
}

.footer_link {
  line-height: 2;
}

.copyright {
  color: white;
  text-align: center;
  font-size: 15px;
  padding: 7px;
}

.fa-brands {
  font-size: 30px;
}

@media (min-width:800px) {

  .cover {
    flex-direction: row-reverse;
    justify-content: space-evenly;
    height: 100%;
    width: 85%;
    margin: 50px auto;
    box-shadow: 10px -10px #cc3e3e;
  }

  .intro {
    margin: 15px;
    line-height: 1.10;
    font-size: 4vw;
  }

  .intro p {
    position: relative;
    top: 100%;
    transform: translateY(-100%);
    display: block;
  }

  .cover_photo {
    position: relative;
    display: inline-block;
    text-align: center;
    margin: 0px;
  }

  .cover_photo img {
    max-width: 50vw;
    height: auto;
    padding: 10px;
    display: block;
    margin: 0 auto;
  }

  .mcover_photo img {
    display: none;
  }

  .gallery {
    margin: 30px;
  }

  .artwork {
    gap: 2rem;
    flex-direction: row;
  }

  .artwork_img {
    align-self: center;
  }

  .artwork_img img {
    max-width: 40vw;
  }

  .tatnall_artwork_img img {
    height: 60vh;
    width: auto;
  }

  .artwork_info {
    align-self: center;
    text-wrap: wrap;
    max-width: 45vw;
  }

}

/* --- Desktop --- */

@media (min-width: 1025px) {

  .header {
    margin: 10px 15px -6px 30px;
  }

  .logo {
    width: 400px;
  }

  .hamburger {
    display: none;
  }

  .nav {
    transform: none !important;
    position: relative;
    left: auto;
  }

  .nav_list {
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: flex-end;
  }

  .nav_link {
    font-size: 20px;
  }

  .intro {
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px;
    margin: 12px;
    font-size: 3.5vw;
    line-height: 1;
    max-width: 35%;
  }

  .cover_photo img {
    width: 100%;
    max-width: 850px;
  }

  .gallery figcaption {
    display: grid;
    grid-area: 1 / 1 / -1 / -1;
    z-index: 999;
    align-self: stretch;
    align-content: center;
    text-align: center;
    color: white;
    opacity: 0;
    text-transform: uppercase;
    font-weight: 700;
    margin: 5px;
  }

  .gallery figure:hover img {
    opacity: 20%;
    transition: .5s ease-in-out;
  }

  figcaption:hover {
    opacity: 1;
    transition: .5s ease-in-out;
  }

  .gen_artwork_img img {
    width: 100%;
    height: auto;
  }

  .artwork_info {
    max-width: 30vw;
  }

  .gallery figure:nth-child(1) {
    grid-area: span 2 / span 2;
  }

  .gallery figure:nth-child(6) {
    grid-column: span 2;
  }

  .gallery figure:nth-child(2) {
    grid-column: span 2;
  }

  .gallery figure:nth-child(3) {
    grid-row: span 2;
  }

  .contact_field:focus {
    border: 2px solid #400000;
  }

  .contact, .about {
    height: 100%;
    box-shadow: 10px -10px #cc3e3e;
  }

  .about_img {
    max-width: 40vw;
  }

  .about_img img {
    width: 100%;
  }

  .about_text {
  width: 35vw;
}

  .contact_field {
    width: 45vw;
  }

  .contact_img {
    display: block;
  }

  .contact_img img {
    max-height: 20vw;
  }

  .a_links {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 50px;
  padding-top: 15px;
} 

  .resume_link {
  width: 40%;
  color: white;
  font-size: 25px;
  font-weight: 700;
  margin: 20px;
}

  .footer_item {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
  }

  .footer_link {
    font-size: 16px;
  }

  .footer_item i {
    font-size: 25px;
  }
}

/* --- JS --- */

.nav-open {
  left: 50% !important;
}

.hamburger-open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.no-transition {
  transition: none !important;
}