.slider-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  gap: 16px;
  position: relative;
}
.main-image {
  flex: 3;
  aspect-ratio: 3 / 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main-slide {
  border-radius: 8px;
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease-in-out;
  opacity: 1;
}
.thumbnails {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  z-index: 1;
}
.thumbnails img {
  aspect-ratio: 3 / 2;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  border-radius: 6px;
  transform: scale(1.5);
  transform-origin: center;
}
.thumbnails img:hover {
  opacity: 1;
}



.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  user-select: none;
}
.arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.arrow-left {
  left: 12px;
}
.arrow-right {
  right: 12px;
}


/* Ukrywanie miniaturek i rozszerzanie zdjęcia głównego na mobile */
  .hide-thumbs-mobile .thumbnails {
    display: none !important;
  }
  .hide-thumbs-mobile .main-image {
    flex: 1 1 100% !important;
  }
}


  .hide-arrows-mobile .arrow {
    display: none !important;
  }
  .hide-dots-mobile 
}

.slider-container .main-image {
    position: relative;
}
.arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.main-image .slide {
  position: relative;
  display: none;
  text-align: center;
}

.main-image .slide.active {
  display: block;
}



.slide-button {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: #333;
  cursor: pointer;
  z-index: 999;
  user-select: none;
}
.slider-arrow-left { left: 10px; }
.slider-arrow-right { right: 10px; }

.thumbnail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  border-radius: 4px;
  z-index: 1;
}
.left-thumb { left: -150px!important; }
.right-thumb { right: -150px!important; }


.dots-container 





.slide-caption .slide-button:hover {
  background: #333;
}



.slider-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-thumb,
.right-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  z-index: 3;
  transition: all 0.3s ease;
}

.left-thumb img,
.right-thumb img {
  display: block;
}

.left-thumb {
  left: -120px;
}

.right-thumb {
  right: -120px;
}







.slide-caption .slide-button:hover {
  background: #444;
}



.slide-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  gap: 20px;
  flex-wrap: wrap;
}
.slide-caption h3 {
  flex: 1;
  text-align: left;
  margin: 0;
}
.slide-caption .slide-button {
  flex: 1;
  text-align: right;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.slide-caption .slide-button:hover {
  background: #333;
}

/* Zapobiega zasłanianiu zdjęcia głównego przez miniatury */
.thumbnail {
  pointer-events: none;
  opacity: 0.75;
  clip-path: inset(0 0 0 0); /* można ograniczyć widoczność */
}

.left-thumb {
  left: -80px; /* dalej na lewo */
}

.right-thumb {
  right: -80px; /* dalej na prawo */
}

/* Zapewnia pełną widoczność głównego zdjęcia */
.main-image {
  z-index: 100;
  position: relative;
}


/* Nawigacja: kropki na środku głównego slidera */
.dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  z-index: 10;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50% !important;
  background-color: #ff5588;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot:hover {
  transform: scale(1.15);
  background-color: #ff77a8;
}

.dot.active {
  background-color: #1f1f2e;
  border-color: #ff5588;
}


@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-40px); }
}

.fade-right {
  animation: fadeRight 0.6s ease forwards;
}

.fade-left {
  animation: fadeLeft 0.6s ease forwards;
}

.dots-container {
  animation: none !important;
}

/* --- Responsive Slider Styles --- */
@media (max-width: 768px) {
  .slider-container {
    flex-direction: column;
    align-items: center;
  }

  .main-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }

  .thumbnail.left-thumb,
  .thumbnail.right-thumb {
    display: none;
  }

  .slide-caption {
    text-align: center;
    padding: 10px;
  }

  .slider-arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .dots-container {
    justify-content: center;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .slide-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 10px;
  }

  .custom-slider-title {
    margin-bottom: 10px;
    font-size: 1.2em;
  }

  .custom-slider-button {
    display: inline-block;
    padding: 8px 16px;
  }
}
