/**
 * Emre Portfolio Pro - Lightbox Styles
 */

/* ===== Lightbox Base ===== */
.epp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.epp-lightbox-active {
    opacity: 1;
    visibility: visible;
}

/* ===== Overlay ===== */
.epp-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

/* ===== Container ===== */
.epp-lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== Content ===== */
.epp-lightbox-content {
    position: relative;
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epp-lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* ===== Loader ===== */
.epp-lightbox-loader {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: epp-spin 1s linear infinite;
}

@keyframes epp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Close Button ===== */
.epp-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epp-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== Navigation ===== */
.epp-lightbox-prev,
.epp-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.epp-lightbox-prev {
    left: -70px;
}

.epp-lightbox-next {
    right: -70px;
}

.epp-lightbox-prev:hover,
.epp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* ===== Caption ===== */
.epp-lightbox-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    max-width: 600px;
}

/* ===== Counter ===== */
.epp-lightbox-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ===== Body Lock ===== */
body.epp-lightbox-open {
    overflow: hidden;
}

/* ===== Video Modal ===== */
.epp-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.epp-modal-active {
    opacity: 1;
}

.epp-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.epp-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.epp-video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.epp-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.epp-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .epp-lightbox-prev {
        left: 10px;
    }

    .epp-lightbox-next {
        right: 10px;
    }

    .epp-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .epp-lightbox-counter {
        top: 10px;
        left: 10px;
    }

    .epp-lightbox-prev,
    .epp-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}