/* Seção completa */
.events-slider-section {
  position: relative;
  width: 100%;
  height: 800px; /* Ajuste conforme o design */
  overflow: hidden;
}

.events-header {
  position: absolute;
  top: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}
.events-section-title a {
  text-decoration: none;
  font-size: 50px;
  font-family: "Lora", serif;
  font-weight: lighter;
  color: #fff;
}

.events-section-title :hover {
  color: #f3ca4c;
}

/* Container do slider */
.events-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Cada slide - fade */
/* Cada slide - usando position absolute para empilhar e transição fade */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  display: flex; /* Para centralizar o conteúdo */
  justify-content: center;
  align-items: center;
}
.slide.active {
  opacity: 1;
}

/* Overlay para camada preta transparente */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Ajuste a transparência conforme necessário */
  z-index: 1;
}

/* Conteúdo do slide (texto e card de imagem) */
.slide-content {
  position: relative;
  z-index: 2; /* Acima da camada ::before */
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
/* Título e subtítulo */
.slide-title {
  font-size: 2rem;
}
.slide-subtitle {
  font-size: 1.2rem;
}

/* Card de imagem no centro ajustado para metade da altura do background */
/* Card da imagem centralizado, com limitação máxima */
.image-card {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  max-width: 80%;
  max-height: 80%;
  margin: 0 auto;
}

.image-card img {
  width: 100%;
  height: 100%;
  max-height: 600px; /* limite máximo de altura desejado */
  max-width: 100%; /* limita largura a 100% do container */
  object-fit: contain; /* mantém proporção original sem cortes */
  object-position: center;
  display: block;
}
/* Setas de navegação (apenas símbolo) */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  background: transparent;
  border: none;
  padding: 0 10px;
}
.arrow-left {
  left: 10px;
}
.arrow-right {
  right: 10px;
}

/* Thumbnails embaixo */
.events-thumbnails {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 4;
}
.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent; /* para possibilitar a borda branca */
  opacity: 0.7;
  transition: opacity 0.3s, border-color 0.3s;
}
.thumbnail:hover {
  opacity: 1;
}
/* Borda branca na thumbnail ativa */
.thumbnail.active-thumb {
  opacity: 1;
  border-color: #fff;
}

/* Responsividade */
@media (max-width: 768px) {
  .events-slider-section {
    height: 600px; /* ajuste conforme necessário */
  }

  .image-card {
    max-height: 300px; /* menor em telas pequenas */
    max-width: 90%;
  }

  .image-card img {
    max-height: 100%; /* ajustado automaticamente pela altura do card */
  }
  .slide-title {
    font-size: 1.8rem;
  }
  .slide-subtitle {
    font-size: 1rem;
  }
  .arrow {
    font-size: 2rem;
  }
  .image-card {
    height: auto; /* Altura fixa de 350px (metade dos 700px da seção) */
    width: auto;
    max-width: 70vw;
  }
}
