/* Popup Overlay */
.tlp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    background-color: transparent;
}

.tlp-overlay.tlp-show {
    display: flex;
}

/* Popup Container */
.tlp-popup {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    overflow: hidden;
}

/* Close Button */
.tlp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.tlp-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
}

/* Content */
.tlp-content {
    position: relative;
}

.tlp-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tlp-content a {
    display: block;
    line-height: 0;
}

/* Animations */
.tlp-animation-fade {
    animation: tlpFadeIn 0.5s ease-out;
}

.tlp-animation-slide-down {
    animation: tlpSlideDown 0.5s ease-out;
}

.tlp-animation-slide-up {
    animation: tlpSlideUp 0.5s ease-out;
}

.tlp-animation-zoom {
    animation: tlpZoomIn 0.5s ease-out;
}

@keyframes tlpFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tlpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tlpSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tlpZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Closing Animation */
.tlp-overlay.tlp-closing {
    animation: tlpOverlayFadeOut 0.3s ease-out forwards;
}

.tlp-overlay.tlp-closing .tlp-popup {
    animation: tlpZoomOut 0.3s ease-out forwards;
}

@keyframes tlpOverlayFadeOut {
    to {
        background-color: transparent;
    }
}

@keyframes tlpZoomOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tlp-popup {
        max-width: 90%;
        max-height: 85vh;
        margin: 0 20px;
    }
    
    .tlp-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .tlp-popup {
        max-width: 92%;
        margin: 0 15px;
        border-radius: 8px;
    }
    
    .tlp-image {
        border-radius: 8px;
    }
}

