*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

.bas-main {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.bas-container {
  display: grid;
  place-content: center;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  --position: 50%;
}

.bas-image-container {
  max-width: 800px;
  max-height: 90vh;
  aspect-ratio: 1 / 1;
}

.bas-slider-image {
  width: 100%;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: left;
}

.bas-image-before {
  width: var(--position);
  height: 100%;
  position: absolute;
  inset: 0;
}

.bas-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%;
  height: 100%;
}

.bas-slider:focus-visible ~ .bas-slider-button {
  outline: 5px solid black;
  outline-offset: 3px;

}

.bas-slider-line {
  position: absolute;
  inset: 0;
  width: 0.2rem;
  height: 100%;
  background-color: #fff;
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.bas-slider-button {
  position: absolute;
  background-color: #fff;
  color: black;
  padding: 0.5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
z-index: 100;
box-shadow: 1px 1px 1px hsl(2, 50%, 2%, 0.5); 
}
