.bmpg-featured-gallery {
  --bmpg-border: #e2e6ea;
  --bmpg-accent: #0f766e;
  max-width: 100%;
}

body.bmpg-has-featured-gallery img.wp-post-image:not(.bmpg-gallery-main-image):not(.bmpg-gallery-thumb-image) {
  display: none !important;
}

.bmpg-main-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--bmpg-border);
  border-radius: 6px;
  background: #f7f9fb;
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
}

.bmpg-main-image img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.bmpg-zoom-lens {
  position: absolute;
  z-index: 3;
  width: 300px;
  height: 300px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 300% 300%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: opacity 0.12s ease;
}

.bmpg-main-image.is-zooming .bmpg-zoom-lens {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .bmpg-main-image {
    cursor: default;
  }

  .bmpg-zoom-lens {
    display: none;
  }
}

.bmpg-thumbs-wrap {
  position: relative;
  margin-top: 12px;
}

.bmpg-thumbs-wrap.has-nav {
  padding: 0 36px;
}

.bmpg-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.bmpg-thumbs::-webkit-scrollbar {
  display: none;
}

.bmpg-thumb-button {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #fff;
}

.bmpg-thumbs-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  transform: translateY(-50%);
  border: 1px solid var(--bmpg-border);
  border-radius: 50%;
  color: #333;
  background: #fff;
  font-size: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bmpg-thumbs-prev {
  left: 0;
}

.bmpg-thumbs-next {
  right: 0;
}

.bmpg-thumbs-nav:hover,
.bmpg-thumbs-nav:focus-visible {
  border-color: var(--bmpg-accent);
  color: var(--bmpg-accent);
}

.bmpg-thumb-button.is-active,
.bmpg-thumb-button:focus-visible {
  border-color: var(--bmpg-accent);
}

.bmpg-thumb-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
