/* =========================================================
   GALERI OUTLET & LIGHTBOX MODAL STYLES
   ========================================================= */

.gal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gal-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.gal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gal-card:hover img {
  transform: scale(1.08);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.95;
}

/* Lightbox Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(10px);
  display: none;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.open {
  display: grid;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-caption {
  color: #FFF;
  margin-top: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.modal-close:hover {
  background: var(--red);
}

/* Responsive */
@media (max-width: 860px) {
  .gal { grid-template-columns: 1fr; }
}
