.valencias-carousel {
    position: relative;
    display: block;
    clear: both;
    margin: 0 auto 20px;
    max-width: 100%;
}

.valencias-carousel-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f7f7f7;
}

.valencias-carousel-image {
    display: block;
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    cursor: zoom-in;
}

.valencias-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 25px;
    line-height: 42px;
    text-align: center;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}

.valencias-carousel:hover .valencias-carousel-control,
.valencias-carousel:focus-within .valencias-carousel-control {
    opacity: 1;
}

.valencias-carousel-control:hover,
.valencias-carousel-control:focus {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    outline: none;
}

.valencias-carousel-prev {
    left: 15px;
}

.valencias-carousel-next {
    right: 15px;
}

.valencias-carousel-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

/* Indicadores discretos do carrossel */
.valencias-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    margin: 10px auto 0;
    padding: 0 8px;
}

.valencias-carousel-dots button {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 7px !important;
    min-width: 7px !important;
    height: 7px !important;
    min-height: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(0, 0, 0, 0.18) !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px;
    overflow: hidden;
    cursor: pointer;
    opacity: .85;
    transition: width .2s ease, background .2s ease, opacity .2s ease, transform .2s ease;
}

.valencias-carousel-dots button:hover,
.valencias-carousel-dots button:focus {
    background: rgba(0, 0, 0, 0.32) !important;
    opacity: 1;
    outline: none;
}

.valencias-carousel-dots button.active {
    width: 18px !important;
    min-width: 18px !important;
    background: rgba(28, 168, 221, 0.95) !important;
    opacity: 1;
}

.valencias-lightbox-open,
.valencias-lightbox-open body {
    overflow: hidden;
}

.valencias-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 55px 70px;
    background: rgba(0, 0, 0, 0.9);
}

.valencias-lightbox.open {
    display: flex;
}

.valencias-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

.valencias-lightbox-close,
.valencias-lightbox-control {
    position: absolute;
    z-index: 100000;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    text-align: center;
    transition: background .2s ease;
}

.valencias-lightbox-close:hover,
.valencias-lightbox-close:focus,
.valencias-lightbox-control:hover,
.valencias-lightbox-control:focus {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    outline: none;
}

.valencias-lightbox-close {
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 40px;
}

.valencias-lightbox-control {
    top: 50%;
    width: 52px;
    height: 70px;
    margin-top: -35px;
    border-radius: 5px;
    font-size: 42px;
    line-height: 70px;
}

.valencias-lightbox-prev {
    left: 18px;
}

.valencias-lightbox-next {
    right: 18px;
}

.valencias-lightbox-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 767px) {

    .valencias-carousel-dots {
        gap: 6px;
        margin-top: 9px;
    }

    .valencias-carousel-dots button {
        width: 6px !important;
        min-width: 6px !important;
        height: 6px !important;
        min-height: 6px !important;
    }

    .valencias-carousel-dots button.active {
        width: 16px !important;
        min-width: 16px !important;
    }

    .valencias-carousel-control {
        opacity: 1;
        width: 36px;
        height: 36px;
        margin-top: -18px;
        font-size: 22px;
        line-height: 36px;
    }

    .valencias-carousel-prev {
        left: 8px;
    }

    .valencias-carousel-next {
        right: 8px;
    }

    .valencias-lightbox {
        padding: 55px 12px 45px;
    }

    .valencias-lightbox-control {
        width: 42px;
        height: 56px;
        margin-top: -28px;
        font-size: 34px;
        line-height: 56px;
    }

    .valencias-lightbox-prev {
        left: 8px;
    }

    .valencias-lightbox-next {
        right: 8px;
    }
}
