/* Restaurants page only: rotating food photos behind the title */

.restaurants-banner {
    position: relative;
    overflow: hidden;
    background: var(--primary-blue);
}

.banner-slides {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.banner-slide.is-active {
    opacity: 1;
}

/* Dark layer so the title stays readable on every photo */
.banner-slides::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(26, 26, 46, 0.5), rgba(26, 26, 46, 0.65));
}

.restaurants-banner .container {
    position: relative;
    z-index: 1;
    /* Soft shadow keeps the title readable on the lighter layer */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-credit {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.banner-credit {
    position: absolute;
    bottom: 52px;
    inset-inline-end: 15px;
    z-index: 1;
    max-width: calc(100% - 30px);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: end;
}

.banner-credit a {
    color: rgba(255, 255, 255, 0.9);
}

/* No automatic animation for visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    .banner-slide {
        transition: none;
    }
}
