*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:#e9eaec;
  font-family:'Montserrat', sans-serif;
  color:#111;
  font-size:18px;
  line-height:1.6;
}

main{
  max-width:1400px;
  margin:0 auto;
  padding:36px 42px 60px;
}

.project-header{
  display:grid;
  grid-template-columns:1fr 220px 180px;
  gap:50px;
  margin:0 0 34px;
}

h1{
  font-size:34px;
  font-weight:400;
  letter-spacing:1px;
  line-height:1;
}

.info-block{
  font-size:11px;
  line-height:1.4;
}

.info-block strong{
  display:block;
  margin-bottom:6px;
  font-size:10px;
  font-weight:700;
}

/* GALERÍA TIPO MASONRY */

.gallery{
  column-count:2;
  column-gap:20px;
}

.image-box{
  break-inside:avoid;
  margin-bottom:20px;
  overflow:hidden;
  cursor:pointer;
  background:#e9eaec;
  position:relative;
}

.image-box img{
  width:100%;
  height:auto;
  display:block;
  transform:scale(1);
  transition:transform .7s ease;
}

.image-box:hover img{
  transform:scale(1.04);
}

/* ELIMINAMOS ALTURAS FIJAS */

.small,
.wide,
.tall{
  height:auto;
}

/* BOTÓN */

.projects-button{
  display:block;
  width:fit-content;
  margin:60px auto 0;
  text-decoration:none;
  color:#111;
  background:#f0d229;
  font-size:18px;
  font-weight:600;
  padding:1px 6px;
  transition:opacity .3s ease;
}

.projects-button:hover{
  opacity:.75;
}

/* LIGHTBOX */

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:40px;
}

.lightbox.active{
  display:flex;
}

.lightbox img{
  max-width:72vw;
  max-height:78vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  animation:zoomIn .35s ease;
}

@keyframes zoomIn{
  from{
    transform:scale(.92);
    opacity:0;
  }

  to{
    transform:scale(1);
    opacity:1;
  }
}

.close-lightbox{
  position:absolute;
  top:9vh;
  right:13vw;
  background:rgba(0,0,0,.45);
  border:none;
  border-radius:50%;
  width:42px;
  height:42px;
  color:white;
  font-size:17px;
  font-family:'Montserrat', sans-serif;
  font-weight:500;
  cursor:pointer;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:opacity .3s ease, transform .3s ease;
}

.close-lightbox:hover{
  opacity:.8;
  transform:scale(1.08);
}

/* ANIMACIONES */

.reveal{
  opacity:0;
  transform:translateY(50px);
  transition:opacity .9s ease, transform .9s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */

@media(max-width:768px){

  main{
    padding:24px 18px 50px;
  }

  .project-header{
    grid-template-columns:1fr;
    gap:22px;
    margin-bottom:32px;
  }

  h1{
    font-size:30px;
  }

  .gallery{
    column-count:1;
    column-gap:16px;
  }

  .lightbox img{
    max-width:88vw;
    max-height:78vh;
  }

  .close-lightbox{
    top:8vh;
    right:7vw;
  }

  .projects-button{
    font-size:16px;
  }

}