﻿.carouselr-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carouselr {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carouselr-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carouselr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .carouselr-img.loaded {
        opacity: 1;
    }

    .carouselr-img:hover {
        transform: scale(1.02);
    }

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 5;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #b38a00;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.carouselr-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(179, 138, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .carouselr-control:hover {
        background-color: #b38a00;
        transform: translateY(-50%) scale(1.1);
    }

    .carouselr-control.prev {
        left: 15px;
    }

    .carouselr-control.next {
        right: 15px;
    }

.carouselr-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

    .indicator.active {
        background-color: #b38a00;
        transform: scale(1.2);
    }

.modalr {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modalr.show {
        display: flex;
        opacity: 1;
    }

.modalr-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modalr-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .modalr-img.loaded {
        opacity: 1;
    }

.modalr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    min-width:300px;
}

.modalr-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .modalr-close:hover {
        color: #b38a00;
    }

.modalr-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(179, 138, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modalr-nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 105;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 50%;
}

    .modalr-nav-area.prev {
        left: 0;
        justify-content: flex-start;
        padding-left: 30px;
    }

    .modalr-nav-area.next {
        right: 0;
        justify-content: flex-end;
        padding-right: 30px;
    }

    .modalr-nav-area:hover {
        /*background-color: rgba(179, 138, 0, 0.1);*/
    }

        .modalr-nav-area:hover .nav-arrow {
            opacity: 1;
            transform: scale(1.2);
        }

.nav-arrow {
    width: 60px;
    height: 60px;
    background-color: rgba(179, 138, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.image-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
}

.instructions {
    max-width: 800px;
    margin: 30px auto 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .instructions h2 {
        color: #b38a00;
        margin-bottom: 15px;
    }

    .instructions ul {
        list-style-type: none;
        padding-left: 20px;
    }

    .instructions li {
        margin-bottom: 10px;
        position: relative;
        padding-left: 25px;
    }

        .instructions li:before {
            content: "•";
            color: #b38a00;
            font-size: 1.5rem;
            position: absolute;
            left: 0;
            top: -5px;
        }

@media (max-width: 768px) {
    .carouselr {
        height: 350px;
    }

    .modalr-nav-area {
        width: 40%;
        font-size: 2rem;
    }

        .modalr-nav-area.prev {
            padding-left: 15px;
        }

        .modalr-nav-area.next {
            padding-right: 15px;
        }

    .nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .carouselr {
        height: 250px;
    }

    h1 {
        font-size: 2rem;
    }

    .carouselr-control {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modalr-nav-area {
        width: 35%;
        font-size: 1.5rem;
    }

    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
