/* CSS para o Slide de Fotos */
.photo-slider {
    width: 100%;
    height: 98%;
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-container {
    width: 100%;
    height: calc(100% - 50px); /* Deixa espaço para os controles */
    position: relative;
    overflow: hidden;
}

.slide-track {
    display: flex;
    width: 1000%; /* 10 slides × 100% */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    width: 10%; /* 100% ÷ 5 slides */
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.slide-item img {
	width: 100%;
	 height: 100%;
	 object-fit: contain; /* Mudança de cover para contain */
	 transition: transform 0.3s ease;
	 background-color: #f5f5f5; /* Adicionar cor de fundo para preencher espaços vazios */
}

.slide-item:hover img {
    transform: scale(1.05);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.slide-item:hover .slide-caption {
    transform: translateY(0);
}

.slide-caption h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.slide-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Controles do slider */
.slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center; /*space-between;*/
    padding: 0 15px;
    backdrop-filter: blur(5px);
}

.control-btn {
    background: black;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    /*box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);*/
}

.control-btn:hover {
    background: darkgray;
    transform: scale(1.1);
    /*box-shadow: 0 4px 12px rgba(220, 20, 60, 0.5);*/
}

.control-btn:active {
    transform: scale(0.95);
}

.dots-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: #999;
    transform: scale(1.2);
}

.dot.active {
    background: black;
    border-color: black;
    /*box-shadow: 0 0 0 2px #dc143c;*/
}

/* Indicador de loading */
.slide-item img {
    background: #f0f0f0;
}

.slide-item img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsividade */
@media (max-width: 768px) {
    .slide-caption h3 {
        font-size: 14px;
    }
    
    .slide-caption p {
        font-size: 12px;
    }
    
    .control-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-controls {
        height: 45px;
        padding: 0 10px;
    }
}

/* Animação de entrada */
.photo-slider {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

