.image-carousel-wrapper {
  aspect-ratio: 4 / 3;
  width: 100%;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  height: fit-content;
}

.carousel-fullscreen-container {
  width: 100%;
  height: 100%;
  position: fixed;

  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  top: 0;
}

.carousel-fullscreen-wrapper {
  height: 100%;
}

#carousel-content-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.primary-image-wrapper {
  overflow: hidden;
  height: 100%;
}

.primary-image-container {
  cursor: pointer;
  overflow: hidden;
  background: white;
  height: 100%;

  img {
    height: 100%;
    object-fit: contain;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

.secondary-images-wrapper {
  /* width */
  ::-webkit-scrollbar {
    height: .6rem;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    border: 1px solid rgba(120 ,120, 120, 0.4);
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    cursor: pointer;
  }
}

.secondary-images-container {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  background: white;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}

.secondary-image-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  max-width: 8rem;
  max-height: 6rem;
  min-width: 8rem;
  min-height: 6rem;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  img {
    object-fit: contain;
  }
}

.selected {
  border: 3px solid var(--accent-color);
}

.slider-button {
  cursor: pointer;
  position: absolute;
  width: 2rem;
  height: 4rem;
  bottom: 50%;
  z-index: 2;
  border: none;
  background: rgb(235, 170, 25);
  opacity: 60%;
  padding: 0;
  span {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: white;
    align-self: center;
    display: flex;

    &:before {
      align-self: center;
    }
  }

  &:hover {
    opacity: 100%;
    transition: 0.1s;
    transform: scale(1.5);
  }
}


#fullscreen-close-btn {
  display: none;
  position: absolute;
  top: 4rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
  color: var(--accent-color);
  background: transparent;
  cursor: pointer;
  border: none;
  padding: 0;

  span {
    width: 100%;
    height: 100%;
    font-size: 3rem;
  }
}

#slider-button-prev {
  right: calc(100% - 2.5rem);
}

#slider-button-next {
  left: calc(100% - 2.5rem);
}

@media screen and (max-width: 37.5em) {
  .secondary-images-wrapper {
    display: none;
  }

  .carousel-fullscreen-container {
    padding: 0;
  }
}
