/* Basic styles for Image Link Gallery */
.il-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.il-gallery__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--il-transition, 500ms) ease;
  pointer-events: none;
  z-index: 0;
}

.il-gallery__item.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.il-gallery__link,
.il-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
}

.il-gallery__image {
  object-fit: cover;
  object-position: center center;
}

/* Improve mobile tap behavior */
.il-gallery {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.il-gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f7f7f7;
  color: #666;
  border: 1px dashed #ddd;
}

/* Indicators */
.il-gallery__indicators {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  pointer-events: none; /* allow clicks to pass except on interactive children */
  z-index: 2; /* above active slide */
}

.il-gallery__dots {
  display: inline-flex;
  gap: 8px;
  pointer-events: auto;
}

.il-gallery__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.il-gallery__dot.is-active {
  background: #fff;
}

.il-gallery__counter {
  font-size: 12px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  pointer-events: none;
}
