:root {
    --primary-gold: #c5a059;
    --text-dark: #333;
    --bg-light: #fff; 
}

/* Scoped gallery container to ensure styles only affect this plugin */
.aarsun-gallery-wrapper { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-dark);
    line-height: 1.5;
}

.aarsun-gallery-wrapper * { 
    box-sizing: border-box; 
}

/* SECTION TITLES */
.aarsun-gallery-wrapper .section-title { 
    text-align: center; 
    margin: 50px 0 30px; 
}
.aarsun-gallery-wrapper .section-title h2 { 
    font-size: 1.5em; 
    display: inline-block; 
    margin: 0;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-gold);
    font-weight: 500;
}

/* GALLERY GRID */
.aarsun-gallery-wrapper .gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.aarsun-gallery-wrapper .gallery-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 60px; 
}

/* REVIEW CARDS */
.aarsun-gallery-wrapper .review-card {
    border: 1px solid #eee;
    border-radius: 4px; 
    overflow: hidden;
    background: #fff; 
    cursor: pointer; 
    transition: box-shadow 0.2s;
}

.aarsun-gallery-wrapper .review-card:hover { 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}

.aarsun-gallery-wrapper .review-card img { 
    width: 100%; 
    height: 250px; /* Fixed height for uniform grid */
    object-fit: cover; /* Crop to fit */
    display: block; 
}

/* OVERLAY / CAPTION */
.aarsun-gallery-wrapper .card-caption {
    padding: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    background: #fff;
    border-top: 1px solid #f5f5f5;
}

/* LIGHTBOX */
.aarsun-lightbox {
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.9); 
    z-index: 999999;
    display: none; 
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}

.aarsun-lightbox img { 
    max-width: 90vw; 
    max-height: 80vh; 
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

.aarsun-lightbox .lb-caption { 
    color: #ccc; 
    margin-top: 15px; 
    font-size: 1rem; 
    text-align: center;
}

.aarsun-lightbox .close-btn { 
    position: absolute; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 40px; 
    cursor: pointer; 
    z-index: 2001;
}

.aarsun-lightbox .nav-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    color: #fff; 
    font-size: 30px; 
    width: 50px; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer; 
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 2001;
    user-select: none;
}
.aarsun-lightbox .nav-btn:hover { background: rgba(255,255,255,0.2); }
.aarsun-lightbox .prev-btn { left: 20px; } 
.aarsun-lightbox .next-btn { right: 20px; }
