/* Edge-to-edge arrows bar (kept from 1.8.0) */
.wcgs-nav-under {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  gap: 0;
}
.wcgs-nav-under-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  outline: none;
}
.wcgs-nav-under-btn:focus { outline: none; }

/* ===== MOBILE: turn thumbnails into dots via pure CSS (no JS) ===== */
@media (max-width: 768px){
  /* Make each thumb a small dot */
  #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb {
    width: 8px !important;
    min-width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    margin: 6px 4px !important;
    overflow: hidden;
    position: relative;
  }
  /* Hide inner content of thumbnails (images/links) but keep element clickable */
  #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb > * {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Active/hover state */
  #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb.swiper-slide-thumb-active,
  #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb.is-active,
  #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb.active {
    background: rgba(0,0,0,.8);
    transform: scale(1.2);
  }
}

/* Always hide overlay arrows on the main image */
#wpgs-gallery .wcgs-spswiper-arrow { display: none !important; }
