/* === lp3 TABBED PORTFOLIO === */
.lp3-port-sec {
  background: #f8f5ff;
}

/* Tabs */
.lp3-port-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.lp3-ptab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: #1a0a3d;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #e0d8ff;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.lp3-ptab i {
  font-size: 13px;
  color: #6C3CE1;
}
.lp3-ptab:hover {
  border-color: #6C3CE1;
  color: #6C3CE1;
  background: #f3eeff;
}
.lp3-ptab.active {
  background: linear-gradient(135deg, #6C3CE1 0%, #5228c4 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(108,60,225,0.35);
}
.lp3-ptab.active i {
  color: #F5A623;
}

/* Panels */
.lp3-port-panel {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  animation: lp3FadeIn 0.35s ease;
}
.lp3-port-panel.active {
  display: grid;
}
@keyframes lp3FadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Thumbnails — uniform size */
.lp3-port-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: #e0d8ff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(108,60,225,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.lp3-port-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(108,60,225,0.25);
}
.lp3-port-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.lp3-port-thumb:hover img {
  transform: scale(1.07);
}
.lp3-port-zoom {
  position: absolute;
  inset: 0;
  background: rgba(108,60,225,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.lp3-port-zoom i {
  color: #fff;
  font-size: 28px;
}
.lp3-port-thumb:hover .lp3-port-zoom {
  opacity: 1;
}

/* Lightbox */
.lp3-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.lp3-lightbox.open {
  display: flex;
}
.lp3-lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,2,30,0.92);
  cursor: pointer;
}
.lp3-lb-img-wrap {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp3-lb-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}
.lp3-lb-close,
.lp3-lb-prev,
.lp3-lb-next {
  position: absolute;
  z-index: 3;
  background: rgba(108,60,225,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lp3-lb-close:hover,
.lp3-lb-prev:hover,
.lp3-lb-next:hover {
  background: #6C3CE1;
}
.lp3-lb-close {
  top: 20px;
  right: 20px;
}
.lp3-lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lp3-lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 991px) {
  .lp3-port-panel.active {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 575px) {
  .lp3-port-panel.active {
    grid-template-columns: repeat(2, 1fr);
  }
  .lp3-ptab {
    font-size: 12px;
    padding: 8px 14px;
    gap: 5px;
  }
}
