.img-carousel[data-carousel] {
  position: relative;
  width: 100%;
  max-width: 900px;   
  margin: 12px 0 18px;
  background: #0b0b0b10;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
  touch-action: pan-y; /* allow vertical scroll on mobile */
}

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  height: 320px;          
  object-fit: contain;    
  background: #d9d9d9;
  padding-top: 5px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  background: #f6f6f6;
  color: black;
  font-size: 30px;
  line-height: 32px;
  display: grid;
  z-index: 2;
}

.carousel-btn:hover {
	background: white;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  background-color: #d9d9d9;
  gap: 10px;
  padding: 6px 0;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: white;

}

.carousel-dot[aria-current="true"] {
  background: #00040d;
}

.carousel-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

.carousel-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.carousel-caption {
  margin: 0;
  padding: 6px 12px 6px;
  font-size: 0.75rem;
  color: #00040d;
  text-align: center;
  background-color: #d9d9d9;
  min-height: 3.4em; /* stops layout jump when caption length varies */
}