/* ===== CAROUSEL ===== */

.post-carousel-container {
  max-width: 1200px;
  width: 100%;
  margin: 20px auto;
}

.post-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.post-carousel-track {
  display: flex;
  gap: 15px;
  transition: transform 0.5s ease;
}

.post-carousel-track .wp-block-image {
  width: calc(25% - 11.25px);
  flex-shrink: 0;
  margin: 0;
}

.post-carousel-track .wp-block-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.post-carousel-track .wp-block-image img:hover {
  transform: scale(1.05);
}

/* ===== BOTÕES ===== */

.post-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
}

.post-carousel-btn.prev { left: 15px; }
.post-carousel-btn.next { right: 15px; }

/* ===== INDICADORES ===== */

.post-carousel-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.post-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
}

.post-carousel-indicator.active {
  background: #667eea;
  transform: scale(1.3);
}

/* ===== RESPONSIVO ===== */

@media (max-width:1024px) {
  .post-carousel-track .wp-block-image {
    width: calc(50% - 7.5px);
  }
}

@media (max-width:768px) {
  .post-carousel-track .wp-block-image {
    width: 100%;
  }

  .post-carousel-track .wp-block-image img {
    height: 200px;
  }
}

/* ===== LIGHTBOX ===== */

.post-carousel-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.post-carousel-lightbox.active {
  display: flex;
}

.post-carousel-lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.post-carousel-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ===== LIGHTBOX NAV ===== */
.post-carousel-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.8);
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  z-index: 1000;
}

.post-carousel-lightbox-nav.prev {
  left: 20px;
}

.post-carousel-lightbox-nav.next {
  right: 20px;
}
