/* Popup Styles */
.se-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.se-popup-overlay.se-show {
    opacity: 1;
    visibility: visible;
}

.se-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: se-pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.se-popup-content img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    width: auto;
    height: auto;
}

.se-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: #ff4444; /* Red color */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    padding: 0;
    transition: background 0.3s;
}

.se-popup-close:hover {
    background: #cc0000;
}

@keyframes se-pop-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Canvas Styles (Effects) */
#se-effect-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Clicks pass through */
    z-index: 99998; /* Below popup but above content */
}

/* Decoration Styles */
.se-decoration {
    position: fixed;
    z-index: 99990;
    pointer-events: none; /* Container lets clicks through */
    max-width: 150px;
    transition: transform 0.3s ease;
}

.se-decoration a,
.se-decoration img {
    pointer-events: auto; /* Image/Link captures clicks */
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.se-decoration:hover img {
    transform: scale(1.1); /* Zoom effect */
}

.se-pos-top-left { top: 0; left: 0; transform-origin: top left; }
.se-pos-top-right { top: 0; right: 0; transform-origin: top right; }
.se-pos-bottom-left { bottom: 0; left: 0; transform-origin: bottom left; }
.se-pos-bottom-right { bottom: 0; right: 0; transform-origin: bottom right; }

/* Mobile adjustments */
@media (max-width: 600px) {
    .se-decoration {
        max-width: 100px;
    }
}