/* =========================================
   PLUGINHUB PRO - CUSTOM LIGHTBOX
   ========================================= */
.ph-lightbox {
width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ph-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.ph-lb-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ph-lb-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    user-select: none;
}
.ph-lb-image.loaded {
    opacity: 1;
    transform: scale(1);
}
.ph-lb-caption {
    color: #fff;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s; 
}
.ph-lb-caption.loaded {
    opacity: 1;
    transform: translateY(0);
}
.ph-lb-close,
.ph-lb-prev,
.ph-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    padding: 0;
    backdrop-filter: blur(4px);
}
.ph-lb-close:hover,
.ph-lb-prev:hover,
.ph-lb-next:hover {
    background: var(--ph-accent);
    border-color: var(--ph-accent);
}
.ph-lb-close {
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
}
.ph-lb-close:hover {
    transform: rotate(90deg);
}
.ph-lb-prev,
.ph-lb-next {
    top: 50%;
    transform: translateY(-50%); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
}
.ph-lb-prev:hover,
.ph-lb-next:hover {
    transform: translateY(-50%) scale(1.1); 
}
.ph-lb-prev { left: 30px; }
.ph-lb-next { right: 30px; }
.ph-lb-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    margin-left: -24px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: var(--ph-accent);
    border-radius: 50%;
    animation: phSpin 1s linear infinite;
    z-index: -1;
}
@keyframes phSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}