/* FONTS */
@import url("https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&display=swap");

/* PALLETTE */
:root {
  --black: #161413;
  --blue: #6b7fd7;
  --pink: #ecb7b6;
  --orange: #f29e18;
}

* {
  font-family: "Parkinsans", sans-serif;
  color: var(--black);
}

/* GLOBAL STYLES */

html {
  max-width: 100%;
  overflow-x: hidden;
}

main {
  margin: 1% 5%;
  min-height: 78vh;
}

h1,
h2,
h3,
h4 {
  text-transform: uppercase;
}

h1 {
  color: var(--blue);
  font-size: 55px;
  margin: 0;
}

/* put the footer at the bottom of the viewport if content is shorter than the viewport
need to put every other elemenent inside body inside .container for this to work */
.container {
  min-height: calc(100vh - 50px);
}

/* HOME PAGE */

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project {
  height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease;
  z-index: 1;
}

.project:hover::before {
  background: rgba(0, 0, 0, 0.3);
}

.project > h2 {
  position: relative;
  background-color: white;
  color: #f7acab;
  font-size: 40px;
  padding: 10px;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: center;
  margin: 5%;
}

@media (max-width: 800px) {
  h1 {
    font-size: 45px;
  }

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

  .project {
    height: 40gotvh;
    margin-bottom: 10px;
  }

  .project::before {
    background: rgba(0, 0, 0, 0.3);
  }

  .project > h2 {
    font-size: 40px;
  }
}

@media (max-width: 800px) {
  .project > h2 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 35px;
  }
}

/* INDIVIDUAL PROJECT PAGES */

.featured-image,
.blurb,
.gallery-desktop {
  max-width: 70vw;
  margin-left: auto;
  margin-right: auto;
}

.featured-image > img {
  display: block;
  max-width: 100%;
  margin: auto;
}

iframe {
  display: block;
  margin: 20px 0;
  margin-left: auto;
  margin-right: auto;
  width: 50vw;
  height: calc((50vw / 16) * 9);
}

/* Image Gallery */
.gallery-desktop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 15px;
}

.gallery-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .featured-image,
  .blurb,
  .gallery-desktop {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .gallery-desktop {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  .gallery-item {
    min-width: 80vw;
  }

  .gallery-item > img {
    width: 80vw;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
}

/* CONTACT */

form {
  display: flex;
  flex-direction: column;
  width: 50vw;
  margin: auto;
  margin-top: 25px;
}

form > input,
form > textarea {
  border: 2px solid var(--pink);
}

form > input {
  width: 100%;
  height: 35px;
  margin: 5px 0;
}

form > textarea {
  width: 100%;
  height: 200px;
  margin: 5px 0;
  resize: vertical;
}

form > button {
  width: 100px;
  align-self: flex-end;
  border: none;
  background-color: var(--pink);
  padding: 10px;
  margin: 10px 0;
}

form > button:hover {
  cursor: pointer;
}

@media (max-width: 1200px) {
  form {
    width: 75vw;
  }
}

@media (max-width: 400px) {
  form {
    width: 85vw;
  }
}

/* ABOUT */

.about {
  display: flex;
  flex-direction: row;
  margin: 0 3vw;
}

.about-text {
  padding-right: 25px;
}

.about > img {
  width: 25vw;
}

@media (max-width: 1335px) {
  .about {
    flex-direction: column;
    align-items: center;
  }

  .about > img {
    width: 80vw;
  }
}

/* FOOTER */

footer {
  text-align: center;
}

footer > p {
  margin: 0px;
  color: rgb(83, 83, 83);
  font-size: smaller;
  padding: 5px;
}
