.carousel-thumbnails-container::-webkit-scrollbar {
    height: 4px;
}
.carousel-thumbnails-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.thumbnail-trigger-btn {
    outline: none !important;
}
.border-transparent {
    border-color: transparent !important;
}
.object-fit-cover {
    object-fit: cover;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.carousel-3d-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 450px;
}

.carousel-3d-item {
    transition: all 0.4s ease-in-out;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

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

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

.overlay-content {
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.overlay-icon {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
}

.overlay-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-3d-item:hover .carousel-overlay {
    opacity: 1;
}

.item-left {
    position: absolute;
    width: 60%;
    height: 90%;
    left: -200px;
    z-index: 1;
    opacity: 0.95;
    transform: scale(0.8);
    filter: blur(2px);
    transition: all 0.4s ease-in-out;
}

.item-center {
    position: relative;
    max-width: 500px;
    height: 90%;
    z-index: 3;
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.item-right {
    position: absolute;
    width: 60%;
    height: 90%;
    right: -200px;
    z-index: 1;
    opacity: 0.95;
    transform: scale(0.8);
    filter: blur(2px);
    transition: all 0.4s ease-in-out;
}

.item-left:hover, .item-right:hover {
    filter: none;
    opacity: 0.9;
}

.carousel-title {
    font-family: system-ui, -apple-system, sans-serif;
    color: #3A473D;
    font-weight: 500;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.carousel-thumbnails-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 16px 0;
    margin-top: 0;
    margin-bottom: 0;

    -webkit-overflow-scrolling: touch;
}

.carousel-thumbnails-container::-webkit-scrollbar {
    height: 5px;
}
.carousel-thumbnails-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.carousel-indicators-custom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    width: max-content;
    margin: 0 auto;
}

.thumb-btn {
    background: none;
    border: 2px solid transparent !impont;
    padding: 0;
    margin: 0;
    opacity: 0.4;
    transition: opacity 0.2s ease, border-color 0.2s ease;
    cursor: pointer;

    flex-shrink: 0;

    display: block;
}

.thumb-btn img {
    display: block;
    width: 100px;
    height: 66px;
    object-fit: cover;
    border-radius: 4px;
}

.thumb-btn.active,
.thumb-btn:hover {
    opacity: 1;
    border-color: #ffffff;
}

.carousel-adaptive-image-container {
    width: 100%;
    height: 65vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-adaptive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--bs-border-radius-lg, 0.375rem);
    box-shadow: var(--bs-box-shadow-sm, 0 .125rem .25rem rgba(0,0,0,.075));
}

@media (min-width: 768px) {
    .carousel-adaptive-image-container {
        height: auto;
        max-height: 65vh;
    }

    .carousel-adaptive-img {
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin: 0 auto;
    }
}

@media (max-width: 1150px) {
    .item-left {
      left: -100px;
    }
    .item-right {
      right: -100px;
    }
}

@media (max-width: 900px) {
    .item-left {
      left: -50px;
    }
    .item-right {
      right: -50px;
    }
}

@media (max-width: 700px) {
  .item-right, .item-left {
    display: none;
  }

  .item-center {
    transform: scale(1);
  }

  .carousel-3d-item .carousel-overlay {
    opacity: 1;
  }
  .thumb-btn {
    opacity: 1;
    border-color: #ffffff;
  }

  .carousel-3d-row {
      min-height: 50px;
  }

}

@media (max-width: 575.98px) {
    .carousel-indicators-custom {
        justify-content: flex-start;
        margin: 0;
        gap: 8px;
        padding: 0 16px;
    }

    .thumb-btn img {
        width: 75px;
        height: 50px;
    }

  .carousel-control {
    display: none;
  }
}
