﻿
/* Default: show desktop carousel, hide mobile */
.desktop-carousel {
    display: block;
}

.mobile-carousel {
    display: none;
}

/* On mobile: switch them */
@media (max-width: 768px) {
    .desktop-carousel {
        display: none;
    }

    .mobile-carousel {
        display: block;
    }

    #mobileCarousel video {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* =============================
   Carousel Base Styles
   ============================= */
#siteCarousel,
#desktopCarousel,
#mobileCarousel {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: auto;
}

    /* Stretch images to fill container fully */
    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* stretches image to fill both width and height */
        display: block;
    }

/* =============================
   Overlay Styling
   ============================= */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid #6da0b5;
    pointer-events: none; /* don’t block clicks/swipes */
}

/* =============================
   Captions
   ============================= */
.carousel-caption {
    bottom: 60%;
}

.caption-f-l {
    color: #222;
    font-weight: bold;
    text-shadow: 1px 1px 5px rgba(255,255,255,0.7);
}

.caption-s-l {
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* =============================
   Small Screens (Phones)
   ============================= */
@media (max-width: 576px) {
    #siteCarousel,
    #desktopCarousel {
        height: auto;
        max-height: none;
    }

    .carousel-item img {
        height: auto;
        max-height: 250px;
        object-fit: contain;
    }

    .carousel-caption {
        position: absolute;
        bottom: 5%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        font-size: 0.9rem;
    }

    .caption-f-l {
        font-size: 1rem;
    }

    .caption-s-l {
        font-size: 0.75rem;
    }
}

/* =============================
   Custom Navigation Arrows
   ============================= */
#imgPrev,
#imgNext {
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.6));
    transition: transform .6s ease-in-out;
}

    #imgPrev:hover,
    #imgNext:hover {
        transform: rotate(360deg);
    }
