
/* Slide da galeria da Aster */
.gallery-slider {
    position: relative;
    display: block;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    background: #e9eee9;
    box-shadow: 0 16px 40px rgba(24, 49, 39, 0.14);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.gallery-slider:hover {
    color: #fff;
}

.gallery-slider:focus-visible {
    outline: 3px solid #86b69b;
    outline-offset: 5px;
}

.gallery-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(13, 35, 27, 0.84) 0%,
        rgba(13, 35, 27, 0.35) 38%,
        rgba(13, 35, 27, 0.02) 72%
    );
}

.gallery-slider-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.65s ease, transform 5s ease;
}

.gallery-slider-image.is-changing {
    opacity: 0.25;
    transform: scale(1.035);
}

.gallery-slider:hover .gallery-slider-image {
    transform: scale(1.035);
}

.gallery-slider-caption {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 28px;
    left: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.gallery-slider-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-slider-title {
    max-width: 100%;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    overflow-wrap: anywhere;
}

.gallery-slider-description {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.96rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.gallery-slider-counter {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(20, 35, 29, 0.48);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-slider-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(20, 35, 29, 0.35);
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.gallery-slider-arrow-left {
    left: 16px;
}

.gallery-slider-arrow-right {
    right: 16px;
}

.gallery-slider:hover .gallery-slider-arrow {
    opacity: 1;
}

.gallery-slider-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #edf2ed;
    color: #385d49;
    font-size: 0.95rem;
}

.gallery-slider-loading[hidden] {
    display: none !important;
}

.gallery-slider-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    color: #527b62;
}

@media (max-width: 991.98px) {
    .gallery-slider {
        min-height: 300px;
    }

    .gallery-slider-arrow {
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .gallery-slider {
        min-height: 280px;
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .gallery-slider-caption {
        right: 16px;
        bottom: 20px;
        left: 16px;
        gap: 6px;
    }

    .gallery-slider-label {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .gallery-slider-title {
        font-size: 1.3rem;
    }

    .gallery-slider-description {
        font-size: 0.85rem;
    }

    .gallery-slider-counter {
        top: 12px;
        right: 12px;
        font-size: 0.75rem;
    }

    .gallery-slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .gallery-slider-arrow-left {
        left: 10px;
    }

    .gallery-slider-arrow-right {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-slider-image,
    .gallery-slider-arrow {
        transition: none;
    }
}
