.carousel-4by3 {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
}

.carousel-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-item {
  width: 100%;
  height: 100%;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.carousel-thumbnails {
  white-space: nowrap;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.carousel-thumbnails img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.carousel-thumbnails img.active {
  border: 4px solid #0d6efd;
  opacity: 1;
}
.carousel-thumbnails img:not(.active) {
  opacity: 0.6;
}

@media (min-width: 992px) {
  .carousel-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 4px;
    overflow: visible;
    white-space: normal;
  }

  .carousel-thumbnails img {
    width: 100%;
    height: 72px;
  }
}

.mobile-divider {
  height: 5px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
}

/* NEW */
.preview-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
}

.preview-wrapper img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
  border: none;
}

.remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.progress-bar {
  transition: width 0.3s ease;
}