
/* ===== MASONRY GALLERY ===== */
.masonry{
  columns: 4;
  column-gap: 14px;
  margin-top: 16px;
}

.masonry__item{
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateZ(0);
}

.masonry__item img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .22s ease, filter .22s ease;
}

.masonry__item::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(600px 220px at 20% 0%, rgba(254,1,38,.18), transparent 60%),
              linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45));
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.masonry__item:hover img{
  transform: scale(1.03);
  filter: contrast(1.05) saturate(1.05);
}

.masonry__item:hover::after{
  opacity: 1;
}

/* Responsive */
@media (max-width: 1100px){
  .masonry{ columns: 3; }
}
@media (max-width: 820px){
  .masonry{ columns: 2; }
}
@media (max-width: 520px){
  .masonry{ columns: 1; }
}

/* ===== LIGHTBOX (OPCIONAL) ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(3,2,3,.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 10000;
}

.lightbox.is-open{ display: flex; }

.lightbox__img{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 22px 80px rgba(0,0,0,.6);
}

.lightbox__close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
.lightbox__close:hover{
  background: rgba(255,255,255,.10);
}