/* Close Window Lightbox CSS - Custom styling for lightbox close button */
/* Prefix: close-window-page to avoid conflicts */

.close-window-page-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.close-window-page-lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.close-window-page-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-window-page-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.close-window-page-lightbox-close-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.close-window-page-lightbox-close-button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.close-window-page-lightbox-close-button:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.close-window-page-lightbox-close-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .close-window-page-lightbox-close-container {
        top: 15px;
        right: 15px;
    }

    .close-window-page-lightbox-close-button {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: 20px;
    }
}

/* Hide original UIkit close button */
.uk-lightbox .uk-lightbox-close,
.uk-lightbox .uk-close-large,
.uk-lightbox [uk-close] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Animation for smooth appearance */
.close-window-page-lightbox-content {
    animation: closeWindowPageFadeIn 0.3s ease-out;
}

@keyframes closeWindowPageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
