/* ================================
   PORTFOLIO CAROUSEL
================================ */
#portfolio {
  padding: 50px 0;
  background: #ffffff;
}

#portfolio .portfolio-title {
  font-family: 'Pacifico', cursive;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #000;
}

/* Carousel */
#portfolio .carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

#portfolio .carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

#portfolio .carousel-slide {
  flex: 0 0 100%;
  height: 70vh;
}

#portfolio .carousel-slide img,
#portfolio .carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Arrows */
#portfolio .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

#portfolio .carousel-arrow.prev { left: 20px; }
#portfolio .carousel-arrow.next { right: 20px; }

#portfolio .carousel-container:hover .carousel-arrow {
  opacity: 1;
}

/* ================================
   LIGHTBOX
================================ */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.portfolio-lightbox.active {
  display: flex;
}

.portfolio-lightbox img,
.portfolio-lightbox video {
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}

.lightbox-arrow.prev { left: 40px; }
.lightbox-arrow.next { right: 40px; }

/* Mobile */
@media (max-width: 768px) {
  #portfolio .carousel-slide {
    height: 50vh;
  }

  #portfolio .carousel-arrow {
    opacity: 1;
  }
}
