/* Отключает обрезку слайдов */
.t-slds__slide {
  overflow: visible !important;
}

/* Стиль для изображений с рамкой */
.gallery-img {
  border: 3px solid #333333 !important; /* Ваша рамка */
  border-radius: 3px !important; /* Скругление углов */
  transform: scale(0.99);
  background: white;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .gallery-img {
    border: 1px solid #333333 !important; /* Тонкая рамка */
    border-radius: 1px !important; /* Минимальное скругление */
    transform: none; /* Отключаем scale, чтобы не влиял на толщину */
  }
}

.gallery-img:hover {
  border: 5px solid transparent !important;
  transition: all 0.5s ease !important; /* Плавность */
  background: 
    linear-gradient(white, white) padding-box,
    linear-gradient(to right, #EEBC75, #9A6123) border-box;
}