@font-face {
  font-family: 'gabrielle';
  src: url('../fonts/Gabrielle.ttf') format('truetype');
}
@font-face {
  font-family: 'appleLight';
  src: url('../fonts/AppleGaramond-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'appleBold';
  src: url('../fonts/AppleGaramond-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'appleItalic';
  src: url('../fonts/AppleGaramond-Italic.ttf') format('truetype');
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f6f2ed;
  color: #231c15;
}

.header {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.logo {
  font-family: 'gabrielle', sans-serif;
  font-size: 3rem;
  color: #231c15;
  text-decoration: none;
}

.hero {
  display: flex;
  height: 400px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-image: url("../img/hero.webp");
  background-size: cover;
  padding: 2rem 12rem;
}

.hero__txt {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(246, 242, 237, 1);
  border-radius: 10px;
  gap: 1rem;
  padding: 1rem 2rem;
}

.hero__txt_title {
  font-family: 'appleBold', sans-serif;
  font-size: 2rem;
  font-weight: normal;
}

.hero__txt_info {
  font-family: 'appleLight', sans-serif;
  font-size: 22px;
  max-width: 600px;
  text-align: justify;
}

.hero__img {
  width: 170px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(246, 242, 237, 1);
  border-radius: 10px;
}

.hero__img_logo {
  width: 70%;
  background-color: transparent;
}

.hidden {
  display: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(240px, 1fr)
  );
  justify-items: center;
  align-items: center;
  gap: 5rem;
  padding: 6rem 8rem;
}

.gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery__caption {
  font-family: 'appleItalic', sans-serif;
  font-size: 18px;
  margin-top: .5rem;
  text-align: center;
}

.modal {
  max-width: none;
  max-height: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  padding: 0;
  margin: 0;
  background-color: transparent;
}

.modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.80);
}

.modal__cross {
  position: fixed;
  top: 2rem;
  right: 2rem;
  height: 40px;
  width: 40px;
  font-size: 30px;
  padding-bottom: 5px;
  border-radius: 5px;
  z-index: 5;
}

.modal__view {
  display: flex;
  flex-direction: column;
  width: fit-content;
  height: fit-content;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.modal__view img {
  max-width: 85vw;
  max-height: 85vh;
}

.modal__caption {
  font-family: 'appleItalic', sans-serif;
  font-size: 20px;
  color: #f6f2ed;
  margin-top: 1rem;
  text-align: center;
  background-color: transparent;
}

.contact {
  width: 600px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 2rem 2rem;
  border-radius: 10px;
  border: 2px solid #231c15;
}

.contact__title {
  font-family: 'appleBold', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact__form {
  width: 100%;
  height: fit-content;
  font-family: 'appleLight', sans-serif;
  font-size: 22px;
  text-align: left;
}

.contact__form input,
.contact__form textarea {
  padding: .5rem;
  font-family: 'appleLight', sans-serif;
  font-size: 18px;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #231c15;
}

.contact__form input {
  width: 39%
}

.contact__form textarea {
  width: 100%;
  height: 150px;
  resize: none;
}

.contact__submit {
  display: block;
  padding: .5rem 1rem;
  font-family: 'appleBold', sans-serif;
  font-size: 18px;
  color: #f6f2ed;
  background-color: #231c15;
  border: none;
  border-radius: 5px;
  margin: auto;
  cursor: pointer;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.footer__txt {
  font-family: 'appleItalic', sans-serif;
  font-size: 20px;
  color: #231c15;
}

@media (max-width: 1250px) {
  .hero {
    flex-direction: column;
    padding: 2rem 6rem;
  }

  .hero__img {
    width: 130px;
    height: 130px;
  }

  .gallery {
    padding: 4rem 6rem;
    gap: 3rem;
  }
  
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem;
    height: fit-content;
  }

  .hero__img {
    width: 110px;
    height: 110px;
  }

  .hero__txt {
    width: 100%;
    height: fit-content;
    margin-bottom: 2rem;
    padding: 1rem;
  }

  .hero__txt_title {
    font-size: 28px;
    text-align: center;
  }

  .hero__txt_info {
    font-size: 20px;
  }

  .gallery {
    padding: 2rem;
  }

  .contact {
    flex-direction: column;
    width: 80%;
    font-size: 18px;
    padding: 1rem;
    margin: 0 2rem;
  }

  .contact__form input {
    width: 100%;
  }

  .footer {
    gap: 1rem;
  }

  .footer__txt {
    font-size: 18px;
    text-align: center;
  }
}