.i {
  position: fixed;       /* Fixa o popup na tela */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6); /* fundo semi-transparente */
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.i.s {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.img-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.c {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: rgba(255,0,0,0.8);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.c:hover {
  background: rgba(255,0,0,1);
  transform: scale(1.1);
}

.i img {
  display: block;
  max-height: 80vh;
  height: 60vh;
  max-width: 80vw;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
}


.indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.indicators .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.indicators .dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Container do carrossel */
.coverflow-container {
  position: relative;
  width: 80vw;
  height: 60vh;
  perspective: 1200px; /* Adiciona profundidade 3D */
  overflow: hidden;
  border-radius: 12px;
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d; /* Permite transformações 3D nos filhos */
  transition: transform 0.6s ease;
}

.slide {
  position: absolute;
  width: 40%;
  height: auto;
  max-height: 100%;
  top: 50%;
  transform: translateY(-50%) scale(0.6) rotateY(0deg) translateZ(-100px); /* Posição inicial dos slides */
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.6s ease;
}

.slide.active {
  transform: translateY(-50%) scale(1) rotateY(0deg) translateZ(0);
  opacity: 1;
  z-index: 10;
  filter: none;
}

.slide.prev {
  transform: translateY(-50%) translateX(-60%) scale(0.8) rotateY(45deg) translateZ(-150px);
  opacity: 0.8;
  z-index: 5;
  filter: blur(5px);
}

.slide.next {
  transform: translateY(-50%) translateX(60%) scale(0.8) rotateY(-45deg) translateZ(-150px);
  opacity: 0.8;
  z-index: 5;
  filter: blur(5px);
}

.slide a, .slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.slide a:hover {
  transform: scale(1.05);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 15;
  padding: 0 15px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coverflow-container:hover .nav-button {
  opacity: 1;
}

.nav-button.prev-btn {
  left: 0;
  border-radius: 0 10px 10px 0;
}

.nav-button.next-btn {
  right: 0;
  border-radius: 10px 0 0 10px;
}
