﻿/* wwwroot/css/gallery.css */

/* --- Ensure CSS variables from site.css (:root) are available --- */

.gallery-page-container {
    padding: 3em 1em 4em 1em;
    /* REMOVED: background-color: var(--dark-bg); - Now uses body background */
    color: var(--light-text);
    min-height: 80vh;
    overflow-x: hidden;
}

/* Page Title, Carousel Styles */
/* Keep styles as previously defined */
.page-title.gallery-title {
    text-align: center;
    font-family: 'Bebas Neue', 'Oswald', Arial, sans-serif;
    font-size: clamp(3.8em, 10vw, 7.5em);
    color: var(--vibrant-pink);
    margin-bottom: 0.5em;
    text-shadow: 0 0 5px var(--vibrant-pink), 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}
/* Carousel Container */
#galleryCarousel {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
/* Carousel Item/Image */
.carousel-item {
    text-align: center;
    transition: opacity .6s ease-in-out;
    background-color: #000;
}

.gallery-image {
    display: block;
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}
/* Controls */
.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.15);
    width: 10%;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

    .carousel-control-prev:hover, .carousel-control-next:hover {
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 1;
    }

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: brightness(1.5) contrast(0.8);
    width: 1.5rem;
    height: 1.5rem;
}
/* Indicators */
.carousel-indicators button {
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--primary-orange);
}
/* Caption */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 5px;
    padding: 0.5em 1em !important;
    bottom: 1.5rem;
    font-size: clamp(0.75em, 2vw, 0.9em);
}

    .carousel-caption h5 {
        color: var(--light-text);
        margin: 0;
    }

/* --- Responsive Adjustments for Gallery (Keep as before) --- */
@media (max-width: 768px) {
    .gallery-image {
        max-height: 65vh;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 12%;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .gallery-image {
        max-height: 55vh;
    }

    .carousel-caption {
        display: none !important;
    }

    .carousel-control-prev, .carousel-control-next {
        width: 15%;
        background: none;
    }

        .carousel-control-prev:hover, .carousel-control-next:hover {
            background: rgba(0, 0, 0, 0.2);
        }
}
