/* ===== GALLERY PAGE ===== */

.gallery{
  max-width:1100px;
  margin:120px auto 80px;
  padding:0 20px;
}

.gallery h2{
  font-size:26px;
  margin-bottom:20px;
}

/* Pinterest Layout */
.gallery-grid{
  column-count: 4;
  column-gap: 18px;
}

@media(max-width:1000px){
  .gallery-grid{ column-count:3; }
}

@media(max-width:700px){
  .gallery-grid{ column-count:2; }
}

@media(max-width:500px){
  .gallery-grid{ column-count:1; }
}

/* Cards */
.gallery-item{
  break-inside: avoid;
  margin-bottom:18px;
  position: relative;
  overflow:hidden;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.08);
  transition:.35s ease;
}

body.light .gallery-item{
  background:#fff;
  border:1px solid #ddd;
}

/* Image */
.gallery-item img{
  width:100%;
  border-radius:18px;
  display:block;
}

/* Overlay Info */
.gallery-info{
  position:absolute;
  bottom:0;
  width:100%;
  padding:12px 14px;
  background:linear-gradient(transparent, rgba(0,0,0,.8));
}

.gallery-info h4{
  margin:0;
  font-size:15px;
}

.gallery-info span{
  font-size:11px;
  opacity:.8;
}

/* Hover */
.gallery-item:hover{
  transform:translateY(-6px);
  border-color: rgba(130,170,255,.7);
  box-shadow:0 20px 45px rgba(0,0,0,.4);
}

body.light .gallery-item:hover{
  box-shadow:0 20px 45px rgba(0,0,0,.25);
}