/* Outer frame */
.single-image-slider.frame {
    border: solid 1px var(--bs-border-light, #ddd);
    padding: 5px;
}

/* Scrollable background strip */
.single-image-slider__scroll-container {
    overflow: hidden;
    position: relative;
    height: 200px; /* overridden inline per-instance */
    background-repeat: repeat-x;
    background-position-x: 0px;
    background-position-y: center;
    background-size: auto 200px; /* overridden inline per-instance */
    transition: background-position-x 0.5s ease; /* smooth like Astro */
}

/* Buttons */
.single-image-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 14px; /* rectangular look */
    font-size: 20px; /* icon size */
    border-radius: 5px; /* small rounding */
    z-index: 5; /* ⬅️ lower than overlay */
}

.single-image-slider__btn--left {
    left: 10px;
}
.single-image-slider__btn--right {
    right: 10px;
}

.single-image-slider__btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Float helpers */
.single-image-slider.float-left {
    float: left;
    margin-right: 20px;
}

.single-image-slider.float-right {
    float: right;
    margin-left: 20px;
}

/* Overlay */
.single-image-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    display: block;        
    align-items: center;
    justify-content: center;

    color: rgba(17, 92, 0, 0.75);
    font-size: 24px;

    font-size: 2em !important;
    font-weight: bold;
    text-align: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.8);

    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    line-height: 1.3;
    z-index: 10; /* ⬅️ higher than buttons */
    font-weight: 500;
}
.single-image-slider__overlay em {
  /* text-decoration: underline; */
  font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slider-image {
    margin-bottom: 20px;
    padding: 5px;
    /* border: 1px solid #ddd !important; */
}
