/* Custom styles to enforce 9:16 aspect ratio (16 / 9 * 100 = 177.77%) */
.story-ratio-container {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; /* This creates the 9:16 aspect ratio */
    overflow: hidden;
}
.story-ratio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem; /* rounded-xl */
}
/* Custom scrollbar styling for the carousel */
.carousel-container {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.carousel-item {
    scroll-snap-align: start;
}

/* Carousel control buttons styling */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white; 
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    width: 40px;
    height: 40px;
    opacity: 0.8;
    /* Using !important to ensure these styles override any theme conflicts */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 1;
}
.carousel-control.left {
    left: -20px; /* Adjust as needed for alignment */
}
.carousel-control.right {
    right: -20px; /* Adjust as needed for alignment */
}
/* Hide controls on small screens, adjust breakpoint as needed */
@media (max-width: 768px) {
    .carousel-control {
        display: none;
    }
}
/* Base container padding adjustment for plugin embedding */
.story-showcase-wrapper {
    padding: 1rem;
}
