/* ===== LIGHTBOX RAFA (rf-*) ===== */

.rf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* resto do estilo... */
}

.rf-lightbox.is-open {
    display: block;
}

/* Fundo escuro */
.rf-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

/* Conteúdo central */
.rf-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* botões e imagem reabilitam pointer */
}

/* Wrapper da imagem */
.rf-lightbox-image-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: #000;
    pointer-events: auto;
}

/* Imagem */
#rf-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

/* Botões (X, prev, next) */
.rf-lightbox-btn {
    position: absolute;
    pointer-events: auto;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 26px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rf-lightbox-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

/* X */
.rf-lightbox-close {
    top: 20px;
    right: 20px;
}

/* Prev / Next */
.rf-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.rf-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Contador */
.rf-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .rf-lightbox-content {
        padding: 20px;
    }
    .rf-lightbox-prev,
    .rf-lightbox-next {
        top: auto;
        bottom: 40px;
        transform: none;
    }
}

/* garante que as imagens da galeria mostram sempre o cursor de zoom */
.team-section-2 .team-image img {
    cursor: zoom-in !important;
}

.team-section-2 .team-image img {
    cursor: zoom-in;
}

/* Moldura branca + sombra leve para as imagens (igual ao print) */
.team-image {
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Arredondamento da imagem interna */
.team-image img {
    border-radius: 10px;
    width: 100%;
    display: block;
}

/* Efeito opcional no hover (igual cartão elevando) */
.team-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}




/*---------- NOVO ------*/
/* Para a imagem dentro do Lightbox */
.team-image img {
    width: 100%;  /* Ajusta a imagem à largura do contêiner */
    height: auto; /* Mantém a proporção da imagem */
}

/* Se desejar limitar o tamanho máximo da imagem no contêiner */
.team-image {
    max-width: 100%; /* Define o limite máximo de largura */
    margin: 0 auto; /* Centraliza o item */
}

/* Ajusta a imagem para manter a proporção e não ultrapassar o limite de tamanho */
.team-image {
    position: relative;
    overflow: hidden; /* Impede que a imagem ultrapasse o tamanho do contêiner */
}

/* Garantir que todas as imagens tenham o mesmo tamanho e proporção */
.team-image img {
    width: 100%;  /* Faz com que a imagem ocupe toda a largura disponível */
    height: 600px; /* Ajuste a altura para garantir que todas as imagens tenham a mesma altura - AQUI AJUSTA A ALTURA DAS IMAGENS */
    object-fit: cover; /* Faz a imagem preencher o contêiner sem distorcer a proporção */
}

/* Lightbox - Não é necessário adicionar mais código, apenas garantir que o link do lightbox funcione */




