/* ==========================================================================
   CUSTOM CAROUSEL STYLESHEET (Bootstrap 3 Compatible)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AFBEELDINGEN & VERHOUDING (Aspect Ratio & Centrering)
   -------------------------------------------------------------------------- */

/* Zorg dat de carrousel-container een consistente hoogte heeft */
.carousel-inner {
    background-color: #1a1a1a; /* Donkere achtergrond voor eventuele lege ruimtes aan de zijkanten */
    border-radius: 8px;
    overflow: hidden;
}

/* Behoud de originele fotoverhouding zonder vervorming/uitrekken */
.carousel-inner > .item {
    text-align: center; /* Centreert de afbeelding horizontaal */
}

.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 600px; /* Maximum hoogte op grote schermen; pas aan naar wens */
    width: auto;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Zorgt dat de volledige foto zichtbaar blijft in originele verhouding */
}

/* --------------------------------------------------------------------------
   2. CAROUSEL CAPTIONS (Onderschriften & Titels)
   -------------------------------------------------------------------------- */

.carousel-caption {
    position: absolute;
    right: 15%;
    bottom: 25px;
    left: 15%;
    z-index: 10;
    padding: 15px 20px;
    color: #ffffff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35); /* Half-transparante zwarte achtergrond */
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px); /* Optioneel: subtiel 'frosted glass' effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.carousel-caption p {
    margin-bottom: 0;
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   3. CAROUSEL CONTROLS (Pijltjes Links / Rechts)
   -------------------------------------------------------------------------- */

/* Verwijder de standaard zwarte Bootstrap verloopstroom (gradient) */
.carousel-control.left,
.carousel-control.right {
    background-image: none !important;
    filter: none !important;
    width: 8%; /* Ruimte van de klikbare zone */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.carousel-control:hover,
.carousel-control:focus {
    opacity: 1;
    background-image: none !important;
}

/* Styling en positionering van de pijl-pictogrammen */
.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    font-size: 28px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 12px 14px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-control .glyphicon-chevron-left {
    left: 20px;
}

.carousel-control .glyphicon-chevron-right {
    right: 20px;
}

.carousel-control:hover .glyphicon-chevron-left,
.carousel-control:hover .glyphicon-chevron-right {
    background-color: rgba(0, 0, 0, 0.85);
}

/* --------------------------------------------------------------------------
   4. CAROUSEL INDICATORS (Bolletjes Onderaan)
   -------------------------------------------------------------------------- */

.carousel-indicators {
    bottom: 8px;
}

.carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 2px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.carousel-indicators .active {
    width: 12px;
    height: 12px;
    margin: 1px;
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE AANPASSINGEN (Mobiel & Tablets)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
	/* Verberg de bolletjes (indicators) op telefoons en kleine tablets */
    .carousel-indicators {
        display: none !important;
    }
    .carousel-inner > .item > img {
        max-height: 350px; /* Kleiner scherm, lagere maximale hoogte */
    }

    .carousel-caption {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #222222; /* Vaste donkere balk onder de foto op mobiel */
        border-radius: 0;
        border: none;
        padding: 12px 15px;
    }

    .carousel-caption h3 {
        font-size: 16px;
    }

    .carousel-caption p {
        font-size: 13px;
    }

    .carousel-control .glyphicon-chevron-left,
    .carousel-control .glyphicon-chevron-right {
        font-size: 20px;
        padding: 8px 10px;
    }

    .carousel-control .glyphicon-chevron-left {
        left: 5px;
    }

    .carousel-control .glyphicon-chevron-right {
        right: 5px;
    }
}
