
.masonry-gallery{
  column-count:4;
  column-gap:16px;
}
.masonry-item{
  display:block;
  width:100%;
  break-inside:avoid;
  margin:0 0 16px;
  padding:0;
  border:0;
  border-radius:22px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
  text-align:left;
  position:relative;
}
.masonry-item img{
  display:block;
  width:100%;
  height:auto;
}
.masonry-item span{
  display:block;
  padding:11px 13px;
  color:#fff;
  font-weight:800;
  font-size:14px;
}
.masonry-item:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(0,0,0,.32);
}
.redline-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.redline-gallery-lightbox img{
  max-width:92vw;
  max-height:82vh;
  border-radius:18px;
}
.redline-gallery-lightbox button{
  position:fixed;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:#fff;
  border-radius:999px;
  cursor:pointer;
  font-weight:950;
}
.redline-gallery-close{
  right:22px;
  top:22px;
  width:48px;
  height:48px;
  font-size:30px;
}
.redline-gallery-prev,.redline-gallery-next{
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  font-size:28px;
}
.redline-gallery-prev{left:22px}
.redline-gallery-next{right:22px}
.redline-gallery-caption{
  position:fixed;
  left:24px;
  right:24px;
  bottom:22px;
  color:#fff;
  text-align:center;
  font-weight:800;
}
@media(max-width:1100px){.masonry-gallery{column-count:3}}
@media(max-width:760px){
  .masonry-gallery{column-count:2;column-gap:10px}
  .masonry-item{margin-bottom:10px;border-radius:16px}
  .redline-gallery-prev,.redline-gallery-next{width:44px;height:44px}
}
@media(max-width:480px){.masonry-gallery{column-count:1}}
