.image-slider *,
.image-slider *::before,
.image-slider *::after 
{
  box-sizing: border-box;
}
.image-slider 
{
  margin: 0;
  padding: 0;
}

.image-slider 
{
  height: 600px;
  max-height: none;
  width: 1300px;
  max-width: none;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: #000;
  transition: transform 300ms ease-in-out;
  margin: 0 auto;
}

.image-slider:hover 
{
  transform: scale(1.02);
}

.image-slider .images,
.image-slider .images img 
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.image-slider .images img 
{
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
}

.image-slider .images img.active 
{
  opacity: 1;
  transform: scale(1);
}

.image-slider .back-btn,
.image-slider .next-btn 
{
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #fff;
  font-size: 25px;
  background: rgba(0, 0, 0, 0.2);
  transition: all 300ms ease-in-out;
  z-index: 1;
  transform: translateY(-50%);
}

.image-slider .back-btn 
{
  left: 0;
}

.image-slider .next-btn 
{
  right: 0;
}

.image-slider .back-btn:hover,
.image-slider .next-btn:hover 
{
  background: rgba(0, 0, 0, 0.5);
}

.image-slider .thumbnails 
{
  position: absolute;
  bottom: 5px;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 1;
}

.image-slider .thumbnails img 
{
  width: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 300ms ease;
}

.image-slider .thumbnails img:hover,
.image-slider .thumbnails img.active 
{
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .image-slider {
      width: 100%;
      padding-top: 64.615%;
      height: auto;
  }
  .image-slider .thumbnails {
    height: 30px;
  }
  .image-slider .thumbnails img {
    width: 50px !important;
  }
  .image-slider:hover {
  transform: none;
}
}

.image-slider:fullscreen {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-slider:fullscreen .slider-image {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
}