﻿.catalog-gallery-slider {
  display: grid;
  grid-template-columns: minmax(0, 995px) 120px;
  gap: 16px;
}

.carousel-content {
  width: 100%;
  height: 520px;
  position: relative;
}

.custom-arrows {
  position: absolute;
  display: flex;
  width: 97%;
  justify-content: space-between;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.custom-arrows .master-icon-container-inner {
  border: 1px solid #EAEAEA;
}

.thumbnails-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: scroll;
  height: 520px;
  overflow-x: hidden;
  /* Скрыть скроллбар в Webkit-браузерах (Chrome, Safari, Edge) */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE и Edge */
}

.thumbnails-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.thumbnail {
  width: 120px;
  height: 100px;
  opacity: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.3s ease, opacity 0.3s ease;

  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: #A3A3A3;
}

.thumbnail-img {
  opacity: 100%;
  transition: opacity 0.3s ease;
}

.thumbnail-img.active {
  opacity: 40%;
}

.k-scrollview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.k-scrollview {
  border-color: unset;
  background-color: transparent;
  border: unset;
}

@media (max-width: 1024px) {
  .catalog-gallery-slider {
    grid-template-columns: minmax(0, 995px);
  }

  .carousel-content {
    width: 100%;
    height: 400px;
    position: relative;
  }


  .thumbnails-container {
    display: flex;
    flex-direction: row;

    gap: 16px;
    overflow-y: scroll;
    height: auto;
    width: 100%;
    overflow-x: scroll;
    /* Скрыть скроллбар в Webkit-браузерах (Chrome, Safari, Edge) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
  }

  .thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
}

@media (max-width: 480px) {
  .catalog-gallery-slider {
    grid-template-columns: minmax(0, 460px);
  }

  .carousel-content {
    width: 100%;
    height: 210px;
    position: relative;
  }


  .thumbnails-container {
    display: flex;
    flex-direction: row;

    gap: 8px;
    height: 100%;
    overflow-y: scroll;
    height: auto;
    width: 100%;
    overflow-x: scroll;
    /* Скрыть скроллбар в Webkit-браузерах (Chrome, Safari, Edge) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
  }

  .thumbnails-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    opacity: 100%;
    object-fit: cover;
  }
}
