.bx-wrapper {
  position: relative;
  max-width: 100% !important;
}

.instagram_posts {
  margin: 20px 0;
  clear: both;
}

.instagram_posts .is-hidden {
  display: none !important;
}

.instagram_posts__slider {
  padding: 12px 0;
  overflow: hidden;
  text-align: left;
  direction: ltr;
}

.instagram_posts__loading,
.instagram_posts__error {
  margin-bottom: 12px;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.9rem;
}

.instagram_posts__error {
  background: #fee2e2;
  color: #b91c1c;
}

.instagram_posts__list {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 300px;
  overflow: hidden;
  visibility: hidden;
}

.instagram_posts__list.instagram_posts__list--bxslider {
  visibility: visible;
}

.instagram_posts__list li {
  overflow: hidden;
  border-radius: 8px;
  background: #e5e7eb;
}

.instagram_posts__link {
  display: block;
}

.instagram_posts__img {
  display: block;
  width: 100%;
  height: auto;
}

.instagram_posts__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.instagram_posts__prev,
.instagram_posts__next {
  width: auto;
  border: 1px solid #cbd5f5;
  background: #fff;
  color: #1f2937;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
}

.instagram_posts__prev:disabled,
.instagram_posts__next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.instagram_posts__pager .bx-pager-item {
  display: inline-block;
  margin: 0 4px;
}

.instagram_posts__pager .bx-pager-link {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5f5;
  text-indent: -9999px;
}

.instagram_posts__pager .bx-pager-link.active {
  background: #2563eb;
}
