/* ========== CARROSSEL (Swiper) ========== */
.carrossel-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.carrossel-overlay.active {
  display: flex;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.swiper-slide img {
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Botão fechar */
.fechar-carrossel {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
  border: none;
  min-width: 48px;
  min-height: 48px;
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1005;
  font-family: monospace;
  line-height: 1;
  padding: 0;
}

.fechar-carrossel:active {
  background: rgba(255, 255, 255, 0.2);
}

/* Setas de navegação - visíveis apenas em desktop */
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.6rem !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* Paginação (dots) - completamente removida */
.swiper-pagination {
  display: none !important;
}

/* Contador de posição - centralizado na parte inferior */
.contador-posicao {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  z-index: 1003;
  pointer-events: none;
  white-space: nowrap;
  font-family: "DM Sans", sans-serif;
}

@media (max-width: 768px) {
  .fechar-carrossel {
    top: 16px;
    right: 16px;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.6rem;
  }
  .swiper-slide img {
    max-width: 96vw;
    max-height: 82vh;
  }
  .contador-posicao {
    bottom: 20px;
    font-size: 12px;
    padding: 6px 16px;
  }
}