.custom-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.custom-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.custom-slide {
  flex: 0 0 100%;
  text-align: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  height: var(--slider-height, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-slide img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  height: 100%;
}

.custom-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.custom-prev,
.custom-next {
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  pointer-events: all;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.custom-dots {
  text-align: center;
  margin-top: 10px;
}

.custom-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
}

.custom-dots .active {
  background: #333;
}

/* Модальное окно */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
}

.custom-modal-img {
  max-width: 80%;
  max-height: 80%;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.custom-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
