.image-slider img {
  width: auto;
  max-width: 100%;
  object-position: center;
}

.layout-left,
.layout-right {
  z-index: 1;
  width: 50px;
  height: 99.4%;
  position: absolute;
  display: grid;
  justify-content: stretch;
  text-align: center;
  grid-template-rows: 40px auto 40px;
  /* background: rgba(255, 255, 255, 0.5); */
  background: #1c87c9;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  opacity: 0.6;
}

.layout-left {
  left: -60px;
}

.layout-right {
  right: -60px;
}

#settings-btn,
#screen-mode,
.free-btn,
.number-txt,
.prev-btn,
.next-btn {
  margin: auto;
  /* align-content: center; */
  font-size: 28px;
  font-weight: bolder;
  cursor: pointer;
}

#settings-btn {
  grid-row: 1;
}

.prev-btn {
  grid-row: 2;
}

.free-btn {
  grid-row: 3;
}

#screen-mode {
  grid-row: 1;
}

.next-btn {
  grid-row: 2;
}

.number-txt {
  grid-row: 3;
  font-size: 14px;
}

.slide-input {
    display: none;
}

.slider-container {
  max-width: 97vw;
  /* max-height: 68vh; */
  position: relative;
  /* width: 800px;
  height: 580px; */
  overflow: hidden;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  /* display: inline-block; */
  display: none;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #1c87c9;
}

#settingDialog {
  border-radius: 5px;
}

#label_direction {
  font-family: var(--fontAsap);
}

#scroll-direction {
  font-family: var(--fontAsap);
  border-radius: 5px;
  font-size: 16px;
  background: white;
  padding: 5px 5px;
  margin: 5px 5px -10px;
}

#settings-button {
  font-family: var(--fontAsap);
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  width: 60px;
  border: 0;
  padding: 10px 0;
  margin-top: 10px;
  margin-left: -5px;
  border-radius: 5px;
  background-color: rgba(var(--lightblue), 1);
  transition: background-color 300ms;
}

#settings-button:hover {
  background-color: rgba(var(--lightblue), 0.85);
}

#label_switch {
  font-family: var(--fontAsap);
  padding: 5px;
  font-size:15px;
}

input:where([type="checkbox"][role="switch"]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  color: inherit;
  font-size: inherit;
  width: 2em;
  height: 1em;
  box-sizing: content-box;
  border: 1px solid;
  border-radius: 1em;
  vertical-align: text-bottom;
  margin: auto;
}

input:where([type="checkbox"][role="switch"])::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  box-sizing: border-box;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.15em;
  border: 1px solid;
  border-radius: 50%;
  background: currentcolor;
}

input:where([type="checkbox"][role="switch"]):checked::before {
  left: 1em;
}

input:where([type="checkbox"][role="switch"]):disabled {
  opacity: 0.4;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media screen and (max-width: 991px) {
  .layout-left,
  .layout-right {
   width: 40px;
  }

  .free-btn,
  .number-txt,
  #settings-btn,
  #screen-mode {
    width: 40px;
    margin-right: 0px;
    font-size: 24px;
    color: black;
  }

  .number-txt {
    font-size: 11px;
  }
  
  .prev-btn,
  .next-btn {
    width: 40px;
    font-size: 24px;
  }
}

@media (orientation: landscape) {
  .slide-img {
    height: 100%;
  }
}

@media (orientation: portrait) {
  .slide-img {
    width: 100%;
  }
}
