.slideshow-section {
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
  padding: 30px 0;
  margin: 20px 0;
}
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  background: #f0f2f5;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: auto;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.slides-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  background: 0 0;
  will-change: transform;
  align-items: center;
}
.slide {
  flex: 0 0 33.333%;
  padding: 4px;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.slide img:hover {
  transform: scale(1.02);
}
.fade {
  animation: fade 1s ease-in-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.next,
.prev {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 20px;
  transition: all 0.3s ease;
  border-radius: 50%;
  user-select: none;
  z-index: 100;
  border: none;
  backdrop-filter: blur(4px);
}
.next {
  right: 0;
}
.prev {
  left: 0;
}
.next:hover,
.prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}
.dots-container {
  text-align: center;
  padding: 20px 0;
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.dot.active,
.dot:hover {
  background-color: #717171;
}
@media (max-width: 768px) {
  .slideshow-container {
    height: auto;
    border-radius: 10px;
    margin: 15px auto;
  }
  .slide {
    flex: 0 0 50%;
  }
  .next,
  .prev {
    padding: 12px;
    font-size: 16px;
  }
  .dot {
    height: 10px;
    width: 10px;
    margin: 0 3px;
  }
  .dots-container {
    padding: 15px 0;
  }
}
@media (max-width: 480px) {
  .slideshow-container {
    height: auto;
    border-radius: 8px;
    margin: 10px auto;
  }
  .slide {
    flex: 0 0 50%;
    padding: 3px;
  }
  .next,
  .prev {
    padding: 10px;
    font-size: 14px;
  }
  .dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
  }
  .dots-container {
    padding: 10px 0;
    gap: 5px;
  }
}
@media (min-width: 1200px) {
  .slideshow-container {
    height: auto;
  }
  .slide {
    flex: 0 0 33.333%;
  }
}
@media (min-width: 1600px) {
  .slideshow-container {
    height: auto;
  }
  .slide {
    flex: 0 0 25%;
  }
}
.modal-content.zoom-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  height: 90%;
}
.zoomed-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.close-zoom {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
}
.close-zoom:focus,
.close-zoom:hover {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .dot,
  .next,
  .prev,
  .slide img,
  .slides-wrapper {
    transition: none !important;
  }
}
@media print {
  .dots-container,
  .next,
  .prev,
  .slideshow-container {
    display: none;
  }
}
