/* ===========================
   CAROUSEL
   =========================== */
.portfolio-carousel-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.portfolio-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 15px;
  padding: 10px;
}
.portfolio-carousel::-webkit-scrollbar { display: none; }

/* THUMBNAILS */
.pc-thumb-wrapper {
  position: relative;
  width: 245px;
  height: 315px;
  overflow: hidden;
  border-radius: 8px;
}

.pc-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 0.25s ease;
}

/* Hover effect */
.pc-thumb-wrapper:hover .pc-thumb {
  transform: scale(1.05);
  filter: brightness(50%);
}

.pc-hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0;
  transition: 0.25s ease;
  text-align: center;
}
.pc-thumb-wrapper:hover .pc-hover-text { opacity: 1; }

/* FORCE REMOVE ANY CAPTION UNDER THUMBNAIL */
.pc-item > .pc-caption,
.pc-item > div:not(.pc-thumb-wrapper) { display: none !important; }

/* ARROWS */
.pc-arrow {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 6px;
}
.pc-arrow:hover { background: black; }

/* ===========================
   LIGHTBOX
   =========================== */
.pc-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 15px;
  z-index: 999999;
  overflow: hidden;
}

/* LIGHTBOX INNER */
.pc-lightbox-inner {
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
}

/* LIGHTBOX IMAGE */
.pc-lightbox-image {
  width: auto !important;
  height: auto !important;
  max-width: 90vw !important;
  max-height: 80vh !important;
  object-fit: contain !important;
  cursor: grab;
  transition: transform 0.25s ease;
}

/* CAPTION BELOW IMAGE */
.pc-lightbox-caption {
  margin-top: 15px;
  color: white;
  font-size: 20px;
  text-align: center;
}

/* CLOSE BUTTON */
.pc-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 45px;
  cursor: pointer;
  color: white;
}

/* LIGHTBOX ARROWS */
.pc-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 45px;
  cursor: pointer;
  padding: 20px;
  z-index: 50;
  user-select: none;
}
.pc-lb-left { left: 25px; }
.pc-lb-right { right: 25px; }
.pc-lb-arrow:hover { color: #ddd; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .pc-lightbox-image { max-width: 95vw !important; max-height: 75vh !important; }
}
@media (max-width: 480px) {
  .pc-lightbox-image { max-width: 98vw !important; max-height: 70vh !important; }
}