.instashade-mobile-image-slider {
  width: 100%;
  --instashade-mobile-image-slider-border: #e2e2e2;
  --instashade-mobile-image-slider-bg: #f7f7f7;
  --instashade-mobile-image-slider-caption: #3c3c3c;
  --instashade-mobile-image-slider-dot: #4f4f4f;
}

.instashade-mobile-image-slider__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.35vw, 1.35rem);
}

.instashade-mobile-image-slider__swiper {
  display: none;
}

.instashade-mobile-image-slider__card {
  border: 1px solid var(--instashade-mobile-image-slider-border);
  background: #ffffff;
  overflow: hidden;
}

.instashade-mobile-image-slider__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #d7d7d7;
  overflow: hidden;
}

.instashade-mobile-image-slider__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.instashade-mobile-image-slider__caption {
  min-height: 72px;
  padding: 0.95rem 1rem;
  background: #fafafa;
  color: var(--instashade-mobile-image-slider-caption);
  font-family: var(--theme-font-family, "Montserrat", sans-serif);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.28;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .instashade-mobile-image-slider__grid {
    display: none;
  }

  .instashade-mobile-image-slider__swiper {
    display: block;
    width: 100%;
    overflow: visible;
    padding-right: 1.2rem;
  }

  .instashade-mobile-image-slider__swiper .swiper-wrapper {
    align-items: stretch;
  }

  .instashade-mobile-image-slider__swiper .swiper-slide {
    width: calc(100% - 2rem);
    height: auto;
    display: flex;
    flex-shrink: 0;
  }

  .instashade-mobile-image-slider__card--mobile {
    width: 100%;
  }

  .instashade-mobile-image-slider__caption {
    min-height: 82px;
    padding: 1rem 1.1rem;
    justify-content: flex-start;
  }

  .instashade-mobile-image-slider__controls {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding-right: 0;
  }

  .instashade-mobile-image-slider__arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .instashade-mobile-image-slider__swipe-text {
    font-size: 13px;
    color: #424242;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .instashade-mobile-image-slider .swiper-pagination {
    position: static;
    line-height: 1;
  }

  .instashade-mobile-image-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    opacity: 0.35;
    background: var(--instashade-mobile-image-slider-dot);
  }

  .instashade-mobile-image-slider .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.16);
  }

  .instashade-mobile-image-slider__arrow {
    position: static;
    width: 1.85rem;
    height: 1.85rem;
    border: 0;
    background: none;
    color: #424242;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
  

  .instashade-mobile-image-slider__arrow:active {
    transform: scale(0.95);
  }

  .instashade-mobile-image-slider__swiper[data-show-arrows="0"] .instashade-mobile-image-slider__arrow {
    display: none;
  }

  .instashade-mobile-image-slider__arrow span {
    font-size: 1rem;
    line-height: 1;
    font-weight: 400;
  }
}
