.slider-base {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.header__galeria {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: var(--cor-primaria);
}

.header__galeria-textos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem;
  max-width: 70rem;
  gap: 1rem;
  color: var(--cor-branco);
}

.header__galeria-textos h2 {
  color: var(--cor-complementar);
  text-transform: uppercase;
}

.galeria-destaque {
  color: var(--cor-branco);
  max-width: 50rem;
}

.header__galeria-textos p {
  color: var(--cor-branco);
  max-width: 44rem;
}

.slider-container {
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  will-change: transform;
  transition: transform 1s ease-in-out;
  width: max-content; /* Permite ajustar automaticamente à largura total dos itens */
}

.slider-item {
  flex: 0 0 auto; /* Garante que cada item tenha largura fixa */
}

.slider-item img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-item img {
  width: 100%;
  object-fit: cover;
}

/* Bloqueio de conteúdo */
body.lightbox-open {
  overflow: hidden; /* Bloqueia rolagem do conteúdo de fundo */
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox[aria-hidden="false"] {
  display: flex;
}

/* Conteúdo do Lightbox */
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
}

/* Imagem no Lightbox */
.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

/* Botões de Navegação */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Botão de Fechar */
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 740px) {
  .slider-base {
    padding: 0;
  }

  .slider-item img {
    max-height: 300px;
  }
}
