/* Site component; Swiper itself is supplied by al_img_tools (images.slider). */
.portfolio-slider {
  max-width: 720px;
  min-width: 0;
  margin: 1.5rem auto 2rem;
  color: var(--global-text-color);
}

.portfolio-slider [hidden] {
  display: none;
}

.portfolio-slider button {
  min-height: 44px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.portfolio-slider button:hover {
  color: var(--global-theme-color);
}

.portfolio-slider button:focus-visible {
  outline: 2px solid var(--global-theme-color);
  outline-offset: 2px;
}

.portfolio-slider swiper-container {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--global-divider-color);
  border-radius: 0.25rem;
  /* Preserve the contrast of the original transparent MEL logo in both themes. */
  background: #fff;
}

.portfolio-slider swiper-slide {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.portfolio-slider:not([data-ready]) swiper-slide:not(:first-child) {
  display: none;
}

.portfolio-slider swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portfolio-slider__pagination {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.portfolio-slider__pagination button {
  display: grid;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
}

.portfolio-slider__pagination span {
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.portfolio-slider__pagination [aria-current="true"] span {
  background: var(--global-theme-color);
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.portfolio-slider__motion-note {
  font-size: 0.875rem;
}

.portfolio-slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
