/* Silence Inmobalia Sync — gallery */
.sis-gallery { font-family: inherit; color: inherit; max-width: 100%; }
.sis-gallery--empty { padding: 1em; text-align: center; color: #888; background: #f5f5f5; border-radius: 4px; }

/* SLIDER */
.sis-gallery--slider .sis-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sis-ratio, 4/3);
  background: #000;
  overflow: hidden;
  border-radius: 4px;
}
.sis-gallery__viewport {
  position: absolute; inset: 0;
}
.sis-gallery__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.sis-gallery__slide.is-active { opacity: 1; pointer-events: auto; }

.sis-gallery__nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 0;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.sis-gallery__nav:hover { background: rgba(0,0,0,.7); }
.sis-gallery__nav--prev { left: 12px; }
.sis-gallery__nav--next { right: 12px; }

.sis-gallery__counter {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,.5);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 2;
}

.sis-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.sis-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1/1;
  transition: border-color .2s, opacity .2s;
  opacity: .7;
}
.sis-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sis-gallery__thumb:hover { opacity: 1; }
.sis-gallery__thumb.is-active { border-color: #148A59; opacity: 1; }

/* GRID */
.sis-gallery--grid {
  display: grid;
  grid-template-columns: repeat(var(--sis-cols, 3), 1fr);
  gap: 8px;
}
.sis-gallery__item {
  display: block;
  aspect-ratio: var(--sis-ratio, 4/3);
  overflow: hidden;
  border-radius: 4px;
}
.sis-gallery__item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.sis-gallery__item:hover img { transform: scale(1.05); }

@media (max-width: 600px) {
  .sis-gallery--grid { grid-template-columns: repeat(2, 1fr); }
  .sis-gallery__nav { width: 32px; height: 32px; font-size: 14px; }
}
