/* Foto ampliada nas notícias (ver public/js/fucam-lightbox.js) */

.fucam-lightbox-trigger {
    cursor: zoom-in;
    transition: filter .15s ease;
}

.fucam-lightbox-trigger:hover {
    filter: brightness(.92);
}

.fucam-lightbox-trigger:focus-visible {
    outline: 3px solid #f5c400;
    outline-offset: 3px;
}

html.fucam-lightbox-open {
    overflow: hidden;
}

.fucam-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}

.fucam-lightbox::backdrop {
    background: rgba(5, 20, 14, .92);
}

.fucam-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 4rem 4.5rem 3.5rem;
    box-sizing: border-box;
}

.fucam-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 2.5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    cursor: default;
}

.fucam-lightbox__caption {
    max-width: 60rem;
    font-size: var(--fs-base);
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, .85);
}

.fucam-lightbox__counter {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    margin: 0;
    font-size: var(--fs-md);
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

.fucam-lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease;
}

.fucam-lightbox__btn:hover {
    background: rgba(255, 255, 255, .28);
}

.fucam-lightbox__btn:focus-visible {
    outline: 3px solid #f5c400;
    outline-offset: 2px;
}

.fucam-lightbox__btn[hidden] {
    display: none;
}

.fucam-lightbox__btn svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fucam-lightbox__close {
    top: 1rem;
    right: 1rem;
}

.fucam-lightbox__prev,
.fucam-lightbox__next {
    top: 50%;
    transform: translateY(-50%);
}

.fucam-lightbox__prev {
    left: 1rem;
}

.fucam-lightbox__next {
    right: 1rem;
}

@media (max-width: 640px) {
    .fucam-lightbox__figure {
        padding: 4rem .75rem 5.5rem;
    }

    .fucam-lightbox__prev,
    .fucam-lightbox__next {
        top: auto;
        bottom: 1.25rem;
        transform: none;
    }

    .fucam-lightbox__prev {
        left: calc(50% - 3.75rem);
    }

    .fucam-lightbox__next {
        right: calc(50% - 3.75rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fucam-lightbox-trigger,
    .fucam-lightbox__btn {
        transition: none;
    }
}
