.wrapper {
  overflow: hidden;
  margin-bottom: 30px;
}

.our-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.case {
  max-width: 320px;
  cursor: pointer;
}

.case_title {
  font-size: 18px;
  line-height: 25px;
  height: 50px;
}

.itc-slider {
  position: relative;
  max-width: 320px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #EADAC5;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.itc-slider-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.itc-slider-items {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
  will-change: transform;
}

.itc-slider-item {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  min-width: 100%;
}

.itc-slider-img-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.itc-slider-item img {
  max-width: 100%; 
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Кнопки навигации */
.itc-slider-btn {
  position: absolute;
  top: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  border-radius: 50%;
}

.itc-slider-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.itc-slider-btn-prev {
  left: 10px;
}

.itc-slider-btn-next {
  right: 10px;
}

.itc-slider-btn-prev::before {
  content: "❮";
}

.itc-slider-btn-next::before {
  content: "❯";
}


.itc-slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 1;
}

.itc-slider-indicator {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.itc-slider-indicator-active {
  background-color: #fff;
}

@media (min-width: 768px) {
  .itc-slider-btn {
    display: flex;
    width: 40px;
    height: 40px;
  }
  
  .itc-slider-indicator {
    width: 10px;
    height: 10px;
    margin: 0 8px;
  }
}

@media (min-width: 830px) {
  .case {
  max-width: 400px;
  }
  .itc-slider {
  max-width: 400px;
  }
  .itc-slider-item img {
   max-width: 380px;
  }
}

@media (min-width: 1600px) {
  .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Полноэкранный режим */
.fullscreen-slider {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.fullscreen-slider.active {
  opacity: 1;
  visibility: visible;
}

.fullscreen-slider .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 5;
  background: none;
  border: none;
  outline: none;
}

.fullscreen-slider .slider-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fullscreen-slider .itc-slider {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  background: transparent;
}

.fullscreen-slider .itc-slider-wrapper {
  max-width: 90vw;
  max-height: 90vh;
}

.fullscreen-slider .itc-slider-item {
  height: auto;
}

.fullscreen-slider .itc-slider-item img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.fullscreen-slider .itc-slider-indicators {
  bottom: 20px;
}

.fullscreen-slider .itc-slider-btn {
  display: flex;
}



