/* ============================================
   ÁMBAR KEBAB — Página Galería
   ============================================ */

/* ── Gallery Grid ── */
.gallery-grid {
  columns: 3;
  column-gap: var(--space-md);
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery__item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

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

.gallery__item img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

@media (max-width: 1024px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    columns: 1;
  }
}

/* ── Gallery SEO Text ── */
.gallery-text {
  background: var(--color-bg-secondary);
}

.gallery-text__content {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.gallery-text__paragraph {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.gallery-text__cta {
  margin-top: var(--space-lg);
  text-align: center;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}

.lightbox__prev svg,
.lightbox__next svg {
  width: 28px;
  height: 28px;
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(212, 168, 67, 0.3);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
}
