/* ENZO JOSSI — V5.6 HOME GALLERY */

.home-gallery{
  width:min(1500px,calc(100% - 10vw));
  margin:0 auto;
  padding:95px 0 105px;
  border-top:1px solid #ddd;
}
.home-gallery-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:28px;
}
.home-gallery-head > div > span{
  display:block;
  margin-bottom:12px;
  color:#e00000;
  font-size:8px;
  font-weight:900;
  letter-spacing:.18em;
}
.home-gallery-head h2{
  margin:0;
  color:#090909;
  font-size:clamp(45px,5vw,76px);
  line-height:.84;
  font-weight:1000;
  letter-spacing:-.055em;
}
.home-gallery-head h2 b{color:#e00000}
.home-gallery-head > a{
  display:flex;
  gap:22px;
  align-items:center;
  color:#111;
  text-decoration:none;
  font-size:8px;
  font-weight:900;
  letter-spacing:.13em;
  border-bottom:2px solid #e00000;
  padding-bottom:8px;
}
.home-gallery-head > a i{
  color:#e00000;
  font-size:16px;
  font-style:normal;
}
.home-gallery-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  grid-template-rows:230px 230px;
  gap:9px;
}
.home-gallery-item{
  position:relative;
  overflow:hidden;
  background:#111;
}
.home-gallery-item.is-main{grid-row:span 2}
.home-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .5s ease;
}
.home-gallery-item:hover img{transform:scale(1.035)}
.home-gallery-item::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.82));
}
.home-gallery-item > span{
  position:absolute;
  z-index:2;
  left:16px;
  right:16px;
  bottom:14px;
}
.home-gallery-item small{
  display:block;
  margin-bottom:6px;
  color:#e00000;
  font-size:6px;
  font-weight:900;
  letter-spacing:.15em;
}
.home-gallery-item strong{
  display:block;
  color:#fff;
  font-size:14px;
  line-height:1.05;
  font-weight:900;
  text-transform:uppercase;
}

@media(max-width:900px){
  .home-gallery{
    width:calc(100% - 36px);
    padding:55px 0 62px;
  }
  .home-gallery-head{
    display:block;
    margin-bottom:20px;
  }
  .home-gallery-head h2{font-size:44px}
  .home-gallery-head > a{
    width:max-content;
    margin-top:18px;
  }
  .home-gallery-grid{
    grid-template-columns:1fr 1fr;
    grid-template-rows:260px 175px 175px;
    gap:6px;
  }
  .home-gallery-item.is-main{
    grid-column:span 2;
    grid-row:auto;
  }
  .home-gallery-item strong{font-size:11px}
}
