.gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--secondary);
  box-shadow: var(--shadow-elegant);
}
.gallery__track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease-out;
}
.gallery__slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  border: none;
  padding: 0;
  cursor: zoom-in;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: color-mix(in oklch, var(--background) 80%, transparent);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.5rem;
  border: none;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery:hover .gallery__arrow { opacity: 1; }
.gallery__arrow--prev { left: 0.75rem; }
.gallery__arrow--next { right: 0.75rem; }
.gallery__arrow svg { width: 1.25rem; height: 1.25rem; }

.gallery__dots { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.gallery__dot { height: 0.375rem; width: 0.375rem; border-radius: 999px; background: color-mix(in oklch, var(--background) 70%, transparent); border: none; padding: 0; transition: all 0.2s ease; }
.gallery__dot.is-active { width: 1.5rem; background: var(--accent); }

.gallery__counter {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: color-mix(in oklch, var(--background) 80%, transparent);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}

.gallery__thumbs {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) { .gallery__thumbs { grid-template-columns: repeat(6, 1fr); } }
.gallery__thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  opacity: 0.7;
  padding: 0;
  cursor: pointer;
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { border-color: var(--accent); opacity: 1; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox fullscreen da galeria (reaproveita estrutura simples) */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgb(0 0 0 / 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox img { max-height: 90vh; max-width: 90vw; object-fit: contain; border-radius: 0.375rem; }
.gallery-lightbox__close, .gallery-lightbox__nav {
  position: absolute;
  color: rgb(255 255 255 / 0.9);
  background: rgb(255 255 255 / 0.1);
  border-radius: 999px;
  padding: 0.75rem;
  border: none;
}
.gallery-lightbox__close:hover, .gallery-lightbox__nav:hover { background: rgb(255 255 255 / 0.2); }
.gallery-lightbox__close { top: 1rem; right: 1rem; padding: 0.5rem; }
.gallery-lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.gallery-lightbox__nav svg, .gallery-lightbox__close svg { width: 1.5rem; height: 1.5rem; }
.gallery-lightbox__counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgb(255 255 255 / 0.8); font-size: 0.875rem; }
