/* =========================================
   1. MODERN MASONRY NEWS GRID
========================================= */
.news-page-wrapper { padding: 120px 0 60px; min-height: 100vh; }
.news-masonry { column-count: 3; column-gap: 30px; }

.lunews-grid { 
    break-inside: avoid; margin-bottom: 30px; position: relative; 
    cursor: pointer; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.lunews-grid:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.lunews-grid img { width: 100%; display: block; transition: transform 0.6s ease; }
.lunews-grid:hover img { transform: scale(1.05); }

.lunews-grid .overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.lunews-grid h5 { font-family: var(--primary-font); font-size: 18px; color: #fff !important; margin-bottom: 5px; }
.lunews-grid p { font-size: 13px; color: #C9B88B; margin: 0; opacity: 0.9; }

/* THE CULPRIT: This MUST be hidden so the articles don't blow up the grid! */
.news-hidden-content { display: none !important; }

/* =========================================
   2. AERO DYNAMIC GLASS MODAL
========================================= */
.glass-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
}
.glass-modal.active { pointer-events: auto; }

.glass-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); 
}

.glass-modal-box {
    position: relative; width: 90%; max-width: 1100px; height: 80vh;
    background-color: rgba(20, 20, 20, 0.25); 
    backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-radius: 20px; overflow: hidden; display: flex;
    transform: translateY(50px);
}

.glass-modal-image { 
    width: 50%; height: 100%; 
    background-size: cover; background-position: center; 
    box-sizing: border-box; 
}

.glass-modal-text { 
    width: 50%; height: 100%; padding: 60px 50px; 
    overflow-y: auto; 
    color: #fff; 
    box-sizing: border-box; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.glass-modal-text::-webkit-scrollbar { display: none; }
.glass-modal-text h3 { color: #C9B88B !important; margin-bottom: 20px; font-size: 32px; letter-spacing: 1px; }
.glass-modal-text p { color: #eaeaea; line-height: 1.8; font-size: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.8); padding-bottom: 40px; }

/* =========================================
   3. CUSTOM 3D "X" BUTTON
========================================= */
.glass-close-btn {
    position: absolute; top: 30px; right: 40px; z-index: 10000;
    display: flex; align-items: center; gap: 15px; cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: transparent; padding: 0;
}
.glass-close-btn:hover { transform: scale(1.1); }

.glass-close-text {
    color: #fff; font-family: 'Montserrat', sans-serif; font-size: 14px;
    text-align: right; line-height: 1.2; letter-spacing: 1px;
    display: block !important; 
}

.glass-x { width: 45px; height: 45px; position: relative; }
.glass-x::before, .glass-x::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 55px; height: 14px; border-radius: 10px;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.8), inset -2px -2px 4px rgba(0,0,0,0.3), 0 5px 15px rgba(0,0,0,0.5);
}
.glass-x::before {
    transform: translate(-50%, -50%) rotate(45deg);
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}
.glass-x::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    background: linear-gradient(135deg, #ffc3a0 0%, #ffafbd 100%);
}

/* =========================================
   4. MOBILE RESPONSIVE OVERRIDES
========================================= */
@media (max-width: 991px) { 
    .news-masonry { column-count: 2; } 
    .glass-close-btn { top: 20px; right: 20px; }
    
    /* Makes the entire box scrollable so the image moves up with the text */
    .glass-modal-box { 
        display: block !important; 
        height: 85vh; 
        overflow-y: auto !important; 
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    .glass-modal-box::-webkit-scrollbar { display: none; }
    
    .glass-modal-image { 
        width: 100% !important; 
        height: 400px !important; 
        flex: none !important; 
    }
    
    .glass-modal-text { 
        width: 100% !important; 
        height: auto !important; 
        flex: none !important; 
        padding: 30px 20px !important; 
        overflow-y: visible !important; 
    }
}
@media (max-width: 575px) { .news-masonry { column-count: 1; } }

/* =========================================
   5. MAGAZINE INLINE IMAGES
========================================= */
.magazine-img-left, .magazine-img-right {
    width: 45%; /* Takes up roughly half the text column */
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Aero Glass Edge */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: cover;
    display: block;
}

.magazine-img-left:hover, .magazine-img-right:hover {
    transform: scale(1.05); /* Pops out slightly on hover */
}

.magazine-img-left { float: left; margin: 10px 25px 15px 0; }
.magazine-img-right { float: right; margin: 10px 0 15px 25px; }

/* Mobile handling: Drop the float and stack them beautifully */
@media (max-width: 767px) {
    .magazine-img-left, .magazine-img-right {
        float: none; width: 100%; max-width: 100%; margin: 25px 0;
    }
}

/* =========================================
   6. NATIVE DIALOG GLASS POPUP (Click to enlarge)
========================================= */
.glass-dialog {
    background: transparent; border: none; padding: 0; outline: none;
    max-width: 90vw; max-height: 90vh; margin: auto; overflow: visible;
}
.glass-dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.glass-dialog-content {
    position: relative;
    background: rgba(20, 20, 20, 0.35);
    backdrop-filter: blur(25px) saturate(180%); -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px; padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.05);
}
.glass-dialog-content img {
    display: block; max-width: 100%; max-height: 80vh; border-radius: 8px;
}
.glass-dialog-close {
    position: absolute; top: -15px; right: -15px;
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 20px; font-weight: bold; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.glass-dialog-close:hover { transform: scale(1.15); background: rgba(255,255,255,0.3); }

/* =========================================
   7. MAGAZINE DROP CAP (First Letter)
========================================= */
.drop-cap {
    float: left;
    font-size: 55px; /* Makes the letter massive */
    line-height: 45px; /* Aligns it nicely with the paragraph lines */
    padding: 8px 10px 8px 0; /* Gives it breathing room from the other letters */
    color: #C9B88B; /* LUCHEN Gold */
    font-family: 'Montserrat', serif, var(--primary-font); /* Elegant serif fallback */
    font-weight: 500;
}

