/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/










/* =========================================
   1. CONTENT IMAGE STYLES (The Cards)
   ========================================= */

/* Card Container Styling */
figure.wp-block-image, 
.wp-block-gallery .wp-block-image, 
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2em;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;

 /* NEW: Makes the whole card show the pointer */
    cursor: zoom-in; 
}

/* Hover Lift Effect */
figure.wp-block-image:hover, 
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* Image Interaction */
figure.wp-block-image img, 
.wp-block-gallery img,
.gallery-item img,
.entry-content img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    cursor: zoom-in;
    pointer-events: auto !important; /* Vital for script to work */
    -webkit-user-select: none;
    user-select: none;
}

figure.wp-block-image:hover img,
.gallery-item:hover img {
    transform: scale(1.03);
}

/* --- EXPAND ICON (Bottom Right of thumbnails) --- */
figure.wp-block-image::after, 
.gallery-item::after {
    content: '';
    position: absolute;
    bottom: 12px; right: 12px;
    width: 36px; height: 36px;
    /* High contrast expand icon */
    background: rgba(0, 0, 0, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cpolyline points='9 21 3 21 3 15'%3E%3C/polyline%3E%3Cline x1='21' y1='3' x2='14' y2='10'%3E%3C/line%3E%3Cline x1='3' y1='21' x2='10' y2='14'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    background-size: 18px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    opacity: 1; 
    pointer-events: none; 
    z-index: 10;
    transition: all 0.3s ease;
}

/* On Desktop, hide expand icon until hover */
@media (min-width: 769px) {
    figure.wp-block-image::after, 
    .gallery-item::after {
        opacity: 0;
        transform: scale(0.8);
    }
    figure.wp-block-image:hover::after, 
    .gallery-item:hover::after {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   2. LIGHTBOX INTERFACE (The Popup)
   ========================================= */

#premium-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999999;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
#premium-lightbox.active { opacity: 1; visibility: visible; }

/* Dark Backdrop */
.plb-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(10px);
    z-index: -1;
}

/* Header Bar */
.plb-header {
    position: absolute; top: 0; left: 0; width: 100%; height: 70px;
    padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
}

.plb-counter { 
    color: #a0a0a0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    font-size: 1rem; 
    font-weight: 500;
}

/* CLOSE BUTTON - UPDATED SIZE */
.plb-close {
    background: rgba(255,255,255,0.15); 
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 50px; height: 50px; /* Bigger touch target */
    display: flex; align-items: center; justify-content: center;
    color: #fff; 
    cursor: pointer;
    transition: background 0.2s;
}
.plb-close:hover { background: rgba(255,255,255,0.25); }
.plb-close:active { transform: scale(0.95); }

/* Main Content Area */
.plb-content-wrapper {
    flex: 1; width: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* The Image Container */
.plb-figure {
    position: relative; 
    max-width: 100%; 
    max-height: 85vh;
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none; /* Let clicks pass through to dismiss */
}

#plb-img {
    max-width: 100vw; 
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto; /* Re-enable pointer on the image itself */
}

/* NAVIGATION BUTTONS - UPDATED VISIBILITY */
.plb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; /* Bigger buttons */
    background: rgba(60, 60, 60, 0.6); /* Visible dark background */
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; 
    color: #fff; 
    z-index: 200; /* Ensure above image */
    transition: all 0.2s ease;
}

.plb-nav:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.plb-nav:active { transform: translateY(-50%) scale(0.95); }

.plb-prev { left: 25px; }
.plb-next { right: 25px; }

/* Caption Styling */
#plb-caption-container {
    margin-top: 20px; text-align: center; width: 100%; pointer-events: none;
    position: absolute; bottom: -50px;
}
#plb-caption {
    background: rgba(0,0,0,0.6); color: #f0f0f0;
    padding: 8px 16px; border-radius: 20px;
    font-family: sans-serif; font-size: 0.9rem;
    display: inline-block;
    backdrop-filter: blur(4px);
}

/* Loading Spinner */
.plb-loader {
    position: absolute; top: 50%; left: 50%; width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.8s linear infinite; margin: -20px; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
   3. MOBILE RESPONSIVE TWEAKS
   ========================================= */
@media (max-width: 768px) {
    /* Slightly smaller buttons on mobile, but strictly visible */
    .plb-nav { 
        width: 50px; height: 50px; 
        background: rgba(30, 30, 30, 0.7); /* Darker bg for contrast on mobile */
    }
    .plb-nav svg { width: 28px; height: 28px; }
    
    .plb-prev { left: 10px; } 
    .plb-next { right: 10px; }
    
    /* Ensure close button clears status bars */
    .plb-header { height: auto; padding-top: 15px; }
    
    /* Always show the small expand icon on the thumbnails */
    figure.wp-block-image::after, .gallery-item::after { 
        opacity: 1 !important; 
        transform: scale(1) !important; 
    }
}















/* --- SIDEBAR UPGRADE --- */

/* 1. Turn the Sidebar Widget into a Card */
.sidebar-main {
    background: #fff;
padding: 25px;/*
    border-radius: 8px; /* Slightly more rounded */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Soft shadow */
    margin-bottom: 30px; /* Space between widgets */
}

/* 2. Style the Title (if you have widget titles) */
.sidebar-main .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; /* Subtle separator */
}

/* 3. Style the List Items */
.sidebar-main ul {
    list-style: none;
padding: 0;/*
    margin: 0;*/
}

.sidebar-main ul li {
    margin-bottom: 0; /* Remove default margin */
    border-bottom: 1px solid #f5f5f5; /* Light separator lines */
}

.sidebar-main ul li:last-child {
    border-bottom: none;
}

/* 4. Style the Links (The Buttons) */
.sidebar-main ul li a {
    display: block; /* Makes the whole area clickable */
    padding: 12px 0;
    font-size: 16px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none; /* Removes underline */
    display: flex; /* Aligns icon and text */
    align-items: center;
}

/* 5. Hover Effect */
.sidebar-main ul li a:hover {
    color: #00a99d; /* Your Brand Teal */
    padding-left: 8px; /* Little slide animation */
}

/* 6. Add a pseudo-icon (Chevron >) automatically */
.sidebar-main ul li a::before {
    content: "›"; /* Chevron icon */
    font-size: 20px;
    line-height: 1;
    margin-right: 10px;
    color: #ccc;
    transition: color 0.3s ease;
}

.sidebar-main ul li a:hover::before {
    color: #00a99d; /* Icon turns teal on hover */
}

