/* Estilos para o sistema Lightbox */

/* Container principal do lightbox */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-container.active {
    opacity: 1;
}

/* Overlay escuro */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Conteúdo central do lightbox */
.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 85%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Container da imagem */
.lightbox-image-container {
    position: relative;
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Estilos para a imagem */
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para imagens verticais vs horizontais */
.lightbox-image.vertical {
    max-height: 100%;
    width: auto;
}

.lightbox-image.horizontal {
    max-width: 100%;
    height: auto;
}

/* Controles do lightbox */
.lightbox-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Botões de navegação */
.lightbox-prev,
.lightbox-next,
.lightbox-close {
    background-color: rgba(255, 83, 0, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background-color: #ff5300;
    transform: scale(1.1);
}

/* Estilos para cards com imagens verticais */
.vertical-image {
    position: relative;
}

.vertical-image img {
    object-position: center !important;
}

.vertical-indicator {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vertical-image:hover .vertical-indicator {
    opacity: 1;
}

/* Indicador de zoom para todos os cards */
.zoom-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 83, 0, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    /* Sempre visível */
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.zoom-indicator:hover {
    transform: scale(1.1);
    background-color: #ff5300;
}

/* Ajustes para dispositivos móveis */
@media screen and (max-width: 768px) {
    .lightbox-controls {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        padding: 10px 20px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .lightbox-image-container {
        height: 100%;
    }

    .lightbox-content {
        height: 100%;
    }
}

/* Melhorias na visualização do slider nos cards */
.slider-container {
    position: relative;
}

.slider-item {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-img {
    transition: transform 0.5s ease;
}

/* Cursor de zoom ao passar o mouse */
.slider-img {
    cursor: zoom-in;
}

/* Efeito de hover para indicar interatividade */
.project-slider:hover .slider-img {
    transform: scale(1.03);
}

/* Adicione classes para ajustar a apresentação das imagens verticais nos cards */
.project-card {
    overflow: visible;
}

.project-slider {
    position: relative;
    overflow: hidden;
}

/* Ajuste para melhor exibição de imagens verticais */
.vertical-image img {
    object-position: top center;
}