@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/open-sans-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 884px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 670px;
  padding: 70px 0;
  color: #fff;
  background: #3a2414 url("images/hero.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.39);
}

.hero-content {
  position: relative;
}

.hero-content > * {
  max-width: 432px;
}

.hero h1 {
  margin-bottom: 15px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 45px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero p {
  margin: 0 0 1.5em;
  font-size: 19px;
  line-height: 1.5;
}

.hero .hero-subtitle {
  margin-bottom: 1.5em;
  font-weight: 700;
}

/* Sections */

.section {
  padding: 70px 0;
}

.section h2 {
  margin-bottom: 15px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
}

.section-subtitle {
  margin: 0 0 40px;
  font-family: "Roboto", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  color: #777;
}

#trabalhos-recentes h2 {
  margin-bottom: 40px;
}

/* Trabalhos recentes */

.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 40px;
}

.work-image {
  display: block;
  cursor: zoom-in;
}

.work-details h3 {
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
}

.work-details p {
  margin: 0;
}

/* Trabalhos anteriores */

.gallery {
  columns: 3 250px;
  column-gap: 10px;
}

.gallery-item {
  display: block;
  margin-bottom: 10px;
  break-inside: avoid;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
}

/* Footer */

.footer {
  padding: 70px 20px;
  text-align: center;
}

.footer p {
  margin: 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 70px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 300 48px/1 "Open Sans", Helvetica, Arial, sans-serif;
  cursor: pointer;
  opacity: 0.8;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  opacity: 1;
}

.lightbox-close {
  top: 10px;
  right: 20px;
  width: 48px;
  height: 48px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 56px;
  height: 96px;
  margin-top: -48px;
  font-size: 72px !important;
}

.lightbox-prev {
  left: 8px;
}

.lightbox-next {
  right: 8px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 727px) {
  .hero {
    min-height: 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery {
    columns: 2 140px;
  }

  .lightbox {
    padding: 50px 10px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 0;
    margin-top: 0;
  }
}
