/*
 * Verbindliche Untergalerie-Wischanzeige.
 * Dieses kleine Stylesheet wird nach eventuell vorhandenem Benutzer-CSS
 * geladen, damit ein alter durchgehender Button-Strich nicht zurückkehrt.
 */
.opl-v2-subgallery-tab {
  padding-bottom: 0 !important;
}

.opl-v2-subgallery-tab::after,
.opl-v2-subgallery-tab.is-active::after {
  content: none !important;
  display: none !important;
}

.opl-v2-subgallery-position {
  display: grid !important;
  grid-template-columns: repeat(
    var(--opl-v2-subgallery-indicator-count, 1),
    minmax(0, 1fr)
  );
  gap: 8px;
  width: auto !important;
  margin: 2px 2px 9px;
  pointer-events: auto;
}

.opl-v2-subgallery-position-segment,
.opl-v2-subgallery-position-segment.is-active {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 27px;
  margin: -12px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  color: inherit;
  font: inherit;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.opl-v2-subgallery-position-segment::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.82;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.opl-v2-subgallery-position-segment.is-active::before {
  background: var(--opl-v2-red-bright);
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 28, 43, 0.72);
}

.opl-v2-subgallery-position-segment:focus-visible {
  outline: none;
}

.opl-v2-subgallery-position-segment:focus-visible::before {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.34),
    0 0 10px rgba(255, 28, 43, 0.72);
}
