/* Position nav dots at the bottom center of the banner */
.banner-nav-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}
.banner-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0 2px;
}
.banner-nav-dot.active {
    background: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,1);
}
/* Hide non-active banners as a fallback */
.banner-image.hidden {
    display: none !important;
}
/* Ensure banner container is positioned for absolute children and hides overflow */
#banner-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}
/* Banner sliding transitions (gallery style) */
.banner-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s cubic-bezier(.77,0,.18,1);
    transform: translateX(100%);
    z-index: 1;
}
.banner-image img {
    width: 100%;
    height: 100%;
}
.banner-image.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
}
.banner-image.slide-in-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    animation: slideInFromRight 0.5s cubic-bezier(.77,0,.18,1) forwards;
}
.banner-image.slide-in-left {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    animation: slideInFromLeft 0.5s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes slideInFromRight {
    from { transform: translateX(100%); opacity: 1; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 1; }
    to { transform: translateX(0); opacity: 1; }
}
.banner-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    background-color: #000;
    width: 100%;
    height: auto; /* Allow the height to adjust based on the aspect ratio */
}
.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover; /* Ensure the image covers the container */
    background-position: center;
    background-repeat: no-repeat; /* Ensure the image does not repeat */
    transition: transform 1s ease-in-out; /* Add transition for slide effect */
}
.banner-image.hidden {
    transform: translateX(100%);
}
.banner-image.active {
    transform: translateX(0);
    z-index: 2;
}
.banner-image.previous {
    transform: translateX(-100%);
    z-index: 1;
}
.overlay-lg, 
.overlay-sm {
    position: absolute;
    color: white;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}
.preview-reload-btn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}
/* Media query to show/hide overlays based on screen width */
@media (min-width: 800px) {
    .overlay-lg {
        display: flex;
    }
    .overlay-sm {
        display: none;
    }
}
@media (max-width: 799px) {
    .overlay-lg {
        display: none;
    }
    .overlay-sm {
        display: flex;
    }
}