/**
 * EDS Image List Widget — Frontend Stylesheet
 * eDesign Space · https://edesignspace.com/
 */

/* ── List ────────────────────────────────────────────────────────────────────── */
.eds-image-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

/* Horizontal / inline layout */
.eds-image-list--horizontal .eds-image-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 24px;
}

/* Grid layout */
.eds-image-list--grid .eds-image-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* overridden by Elementor responsive selector */
  gap: 8px;
}

/* ── Item ────────────────────────────────────────────────────────────────────── */
.eds-image-list__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0; /* image spacing handled by margin-inline-end on wrap */
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ── Link wrapper ────────────────────────────────────────────────────────────── */
.eds-image-list__link {
  display: flex;
  flex-direction: row;
  align-items: inherit;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── Image wrap ──────────────────────────────────────────────────────────────── */
.eds-image-list__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  /* width, height, border-radius, border from Elementor controls */
  width: 40px;
  height: 40px;
  margin-inline-end: 12px;
}

.eds-image-list__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: filter 0.3s ease;
}

/* ── Text ────────────────────────────────────────────────────────────────────── */
.eds-image-list__text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  transition: color 0.2s ease;
}
