#wipa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    flex-direction: row;
    z-index: 9999;
}

#wipa-popup-overlay.position-center {
    justify-content: center;
    align-items: center;
}

#wipa-popup-overlay.position-top-left {
    justify-content: flex-start;
    align-items: flex-start;
}

#wipa-popup-overlay.position-top-center {
    justify-content: center;
    align-items: flex-start;
}

#wipa-popup-overlay.position-top-right {
    justify-content: flex-end;
    align-items: flex-start;
}

#wipa-popup-overlay.position-bottom-left {
    justify-content: flex-start;
    align-items: flex-end;
}

#wipa-popup-overlay.position-bottom-center {
    justify-content: center;
    align-items: flex-end;
}

#wipa-popup-overlay.position-bottom-right {
    justify-content: flex-end;
    align-items: flex-end;
}

#wipa-popup-overlay.position-left-center {
    justify-content: flex-start;
    align-items: center;
}

#wipa-popup-overlay.position-right-center {
    justify-content: flex-end;
    align-items: center;
}

#wipa-popup {
    position: relative;
    border: none;
    background: transparent;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
}

#wipa-popup-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wipa-popup-content img,
#wipa-popup-content div,
#wipa-popup-content ins {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#wipa-popup-content ins {
    display: block;
}

#wipa-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffffff; /* White square background */
    color: #000000; /* Black X icon */
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0; /* Square shape */
    z-index: 1000; /* Ensure it’s above content */
}

/* Fixed Ratios */
.ratio-1-1 {
    aspect-ratio: 1 / 1;
    width: 300px; /* Default, adjusts responsively */
}

.ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 600px;
}

.ratio-9-16 {
    aspect-ratio: 9 / 16;
    height: 600px;
    width: auto;
}

/* Sidebar Plugin List Styling */
.wipa-sidebar {
    font-size: 14px;
}

.wipa-plugin-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wipa-plugin-list li {
    margin-bottom: 10px;
}

.wipa-serial {
    font-weight: bold;
    margin-right: 10px;
}

.wipa-plugin-button {
    display: block;
    text-align: center;
}

/* Admin Image Preview Close Button */
.wipa-image-preview {
    position: relative;
    display: inline-block;
}

.wipa-remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ffffff; /* White square background */
    color: #000000; /* Black X icon */
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0; /* Square shape */
    z-index: 1000; /* Ensure above image */
}

/* Responsive */
@media (max-width: 768px) {
    .ratio-1-1 {
        width: 80vw;
    }
    .ratio-16-9 {
        width: 90vw;
    }
    .ratio-9-16 {
        height: 80vh;
    }

    #wipa-close {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .wipa-remove-image {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .wipa-sidebar {
        font-size: 12px;
    }
}