/* Hide default scrollbar */
.my-gsc-carousel-wrapper {
    position: relative;
    overflow: hidden; /* This hides the scrollbar */
}

/* Carousel container */
.my-gsc-carousel {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.my-gsc-carousel::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

/* Individual slides */
.my-gsc-slide {
    flex: 0 0 100%; /* Each slide takes up 100% of the carousel's width */
    scroll-snap-align: start;
    width: 100%;
    position: relative;
}

/* Images inside slides */
.my-gsc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default behavior */
}

/* New CSS rule for 'contain' fit */
.my-gsc-carousel-wrapper[data-fit="contain"] .my-gsc-slide img {
    object-fit: contain; /* Prevents images from being cropped */
}

/* Pagination arrows */
.my-gsc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.my-gsc-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.my-gsc-prev-arrow {
    left: 10px;
}

.my-gsc-next-arrow {
    right: 10px;
}

/* Pagination dots */
.my-gsc-dots-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.my-gsc-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.my-gsc-dot.active {
    background: rgba(255, 255, 255, 1);
}