@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
  scroll-behavior: smooth;
  text-decoration: none;
}
body {
  font-family: "Roboto";
}
#feature {
  overflow-y: scroll;
  z-index: 1;
  position: fixed;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
}

#feature.hidden {
  display: none;
}

#feature-container {
  margin: 0.5rem;
  visibility: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgb(255, 255, 255);
  border-radius: 0.35rem;
  padding: 0.125rem;
  max-height: 100vh;
}

.featured-image-container {
  background-color: white;
  max-width: 1000px;
}

#featured-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.35rem;
}

.featured-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.featured-info > strong {
  text-transform: uppercase;
  font-size: 0.8rem;
}
.featured-info > p {
  color: rgb(20, 20, 20);
  font-size: 0.6rem;
  text-align: center;
  padding: 0rem 1rem;
}

.feature-button {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.feature-button:hover,
.feature-button:focus {
  background-color: white;
  color: black;
}

.prev-image {
  left: 1rem;
  top: 50%;
  padding: 0.5rem 0.75rem;
}

.next-image {
  padding: 0.5rem 0.75rem;
  right: 1rem;
  top: 50%;
}

.close-image {
  padding: 0.5rem 1rem;
  margin: 0.5rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 1rem;
  background-color: black;
  color: white;
  border: 2px solid white;
}
.close-image:hover,
.close-image:focus {
  background-color: white;
  color: black;
  border-color: black;
}

header {
  width: 100%;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding: 2rem 1rem;
}

.branding {
  font-size: 1.5rem;
  font-weight: 900;
}

nav {
  display: flex;
  gap: 2rem;
  font-weight: 500;
}

nav a {
  color: white;
  text-decoration: none;
  transition: all 0.15s;
  padding: 0.5rem 0.8rem;
}

nav a:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}

nav a:focus {
  background-color: white;
  color: black;
}

#gallery {
  padding: 3rem 0rem;
  width: 100%;
  background-color: rgb(10, 10, 10);
}

#thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  justify-content: center;
  gap: 1rem;
  padding: 1rem 3rem;
}

.thumbnail {
  max-width: 10rem;
  max-height: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  justify-self: center;
  overflow-y: hidden;
}

.thumbnail:hover {
  border-color: white;
}

.thumbnail-image {
  height: 100%;
  object-fit: cover;
}

#about {
  background-color: black;
  color: white;
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.about-heading {
  font-size: 1.5rem;
  padding: 0rem 3rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
}

.about-info-container {
  display: flex;
  flex-direction: column;
}

.about-info {
  margin-top: 2rem;
  line-height: 1.5;
  text-align: center;
  display: inline-flex;
  flex-direction: column;
}

.about-info > h3 {
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.about-info-paragraph {
  font-size: 0.8rem;
  font-weight: 200;
  line-height: 2;
  padding: 0rem 2rem;
}

#contact {
  padding: 3rem 1rem;
  background-color: rgb(10, 10, 10);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

#contact > h2 {
  font-size: 1.5rem;
}
#contact > p {
  font-size: 1rem;
  font-weight: 200;
  padding: 0% 20%;
}

form {
  font: "Roboto";
  display: grid;
  gap: 1rem;
  width: 80%;
  margin: auto;
}

input,
textarea {
  width: 100%;
  padding: 1ex 1ex;
  background-color: white;
  border-radius: 0.5rem;
}

label {
  text-align: left;
}

.required {
  color: crimson;
}
.optional {
  color: rgb(150, 150, 150);
  text-transform: lowercase;
}

.input-group {
  display: grid;
}
.input-group.message {
  grid-column: 1/-1;
}
.submit {
  background-color: black;
  color: white;
  border: 2px solid white;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  width: 50%;
  border-radius: 2rem;
  transition: all 0.15s;
}

.submit:focus,
.submit:hover {
  background-color: white;
  color: black;
}

footer {
  width: 100%;
  background-color: black;
  color: white;
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 2rem 5rem;
}

footer > p {
  font-weight: 100;
}
footer > strong {
  font-weight: 900;
}

#back-to-top {
  font-size: 0.6rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: black;
  color: white;
  border: 2px solid white;
  padding: 0.5rem 0.8rem;
  border-radius: 2rem;
  transition: all 0.15s;
}

#back-to-top:hover,
#back-to-top:focus {
  background-color: white;
  color: black;
}

/* =============================== */
/* ======== MEDIA QUERIES ======== */
/* =============================== */

@media (min-width: 425px) {
  .branding {
    font-size: 1.8rem;
  }
  header {
    flex-direction: column;
    align-items: center;
  }

  .thumbnail {
    width: 10rem;
    height: 10rem;
  }

  #thumbnail-container {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 20px));
    padding: 0.5rem 1rem;
  }

  .about-info-paragraph {
    font-size: 1rem;
  }
  .featured-info > strong {
    text-transform: uppercase;
    font-size: 1;
    padding: 0.25rem 3rem;
  }

  .featured-info > p {
    color: rgb(20, 20, 20);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 768px) {
  .branding {
    font-size: 1.8rem;
  }

  header {
    padding: 1rem 3rem;
    flex-direction: row;
    justify-content: space-between;
  }

  nav a {
    font-size: 1rem;
  }

  .thumbnail {
    min-width: 20rem;
    min-height: 20rem;
  }
  #thumbnail-container {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 20px));
  }

  .about-info-container {
    flex-direction: row;
    justify-content: space-evenly;
    padding: 0rem 0rem;
  }

  .about-info {
    width: 30%;
  }

  .close-image {
    position: absolute;
    font-size: 1rem;
    border-radius: 3rem;
    top: 2rem;
  }

  .featured-info > strong {
    text-transform: uppercase;
    font-size: 1rem;
    padding: 0.5rem 3rem;
  }

  .featured-info > p {
    color: rgb(20, 20, 20);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .about-heading {
    font-size: 2rem;
  }

  form {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
  }

  #back-to-top {
    font-size: 1rem;
  }
}
