
.dynamic-additional-gallery {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.dynamic-additional-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151; /* Tailored slate-700 */
}

.dynamic-additional-images-wrapper {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.dynamic-additional-images-wrapper::-webkit-scrollbar {
  height: 6px;
}

.dynamic-additional-images-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9; 
  border-radius: 4px;
}

.dynamic-additional-images-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}

.dynamic-additional-images-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

.dynamic-additional-image {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.dynamic-additional-image:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .dynamic-additional-image {
    width: 200px;
    height: 200px;
  }
}

/* LIGHTBOX STYLES */
.dynamic-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.dynamic-lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: dynamic-zoom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes dynamic-zoom {
  from {transform:scale(0.8); opacity:0}
  to {transform:scale(1); opacity:1}
}

.dynamic-lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.dynamic-lightbox-close:hover {
  color: #bbb;
}

.dynamic-lightbox-prev, .dynamic-lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 20px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 35px;
  transition: 0.3s;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 10000;
}

.dynamic-lightbox-prev {
  left: 15px;
}

.dynamic-lightbox-next {
  right: 15px;
  border-radius: 3px 0 0 3px;
}

.dynamic-lightbox-prev:hover, .dynamic-lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@media only screen and (max-width: 640px) {
  .dynamic-lightbox-prev, .dynamic-lightbox-next {
    font-size: 25px;
    padding: 10px;
  }
  .dynamic-lightbox-close {
    font-size: 40px;
    top: 15px;
    right: 20px;
  }
}
