/* NMG Lightbox Styles - Override Media Grid hidden styles */

#nmg_lb_wrap.nmg-lightbox {
    /* Force visibility */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;

    /* Full screen overlay */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;

    /* Stack above everything */
    z-index: 999999 !important;

    /* Flexbox centering */
    align-items: center;
    justify-content: center;

    /* Reset unwanted properties */
    line-height: normal !important;
    transition: none !important;
}

/* Overlay backdrop */
.nmg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
}

/* Modal container */
.nmg-modal {
    position: relative;
    z-index: 2;
    background: white;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Close button */
.nmg-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.nmg-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Image slider */
.nmg-slider {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmg_dialog_img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    display: block;
}

/* Navigation arrows */
.nmg-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}

.nmg-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.nmg-prev {
    left: 10px;
}

.nmg-next {
    right: 10px;
}

/* Content area */
.mg_item_content {
    padding: 30px;
}

.mg_item_title {
    margin: 0 0 20px 0;
    color: #0091cf;
}

.mg_cust_options {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.mg_cust_options li {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mg_cust_options li span {
    font-weight: bold;
    margin-right: 10px;
    min-width: 150px;
}

.mg_cust_options.features-title {
    border-top: none;
    border-bottom: none;
}

/* Copy link button */
.nmg-copy-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0091cf;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}

.nmg-copy-link:hover {
    background: #007ab8;
}
