/* ============================================================
   WR GALLERY COMPONENT CSS
   Unique prefix: wrg-
   Paste into your existing stylesheet or a <style> tag
============================================================ */



/* ---------- Section Shell ---------- */
.wrg-section {
    background: #0D1B2A;
    padding: 72px 24px 80px;
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    box-sizing: border-box;
}

/* ---------- Header ---------- */
.wrg-header {
    text-align: center;
    margin-bottom: 48px;
}

.wrg-eyebrow {
    display: inline-block;
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #C9960C;
    margin-bottom: 12px;
}

.wrg-title {
    font-family: 'Cinzel', 'Noto Sans Tamil', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: #FAF3E0;
    margin: 0 0 16px;
    line-height: 1.15;
}

.wrg-subtitle {
    font-size: 15px;
    color: #a89b7e;
    margin: 12px 0 0;
    letter-spacing: 0.04em;
}

/* ---------- Gold Ornament ---------- */
.wrg-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    width: fit-content;
}

.wrg-ornament-line {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9960C);
}

.wrg-ornament-line:last-child {
    background: linear-gradient(90deg, #C9960C, transparent);
}

.wrg-ornament-icon {
    width: 40px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Grid ---------- */
.wrg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .wrg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 680px) {
    .wrg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .wrg-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */
.wrg-card {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    background: #122236;
    border: 1px solid rgba(201, 150, 12, 0.2);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wrg-card:hover {
    border-color: #C9960C;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(201, 150, 12, 0.18);
}

.wrg-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.wrg-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.wrg-card:hover .wrg-thumb {
    transform: scale(1.06);
}

.wrg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wrg-card:hover .wrg-overlay {
    opacity: 1;
}

.wrg-zoom-icon {
    font-size: 32px;
    color: #EDD98A;
    line-height: 1;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.wrg-caption {
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #EDD98A;
    text-align: center;
    padding: 10px 8px;
    margin: 0;
}

/* ---------- Lightbox ---------- */
.wrg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wrg-lightbox.wrg-lb-open {
    opacity: 1;
    pointer-events: all;
}

.wrg-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.92);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.wrg-lb-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.wrg-lightbox.wrg-lb-open .wrg-lb-container {
    transform: scale(1);
}

.wrg-lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 85vw;
    max-height: 75vh;
}

.wrg-lb-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border: 2px solid rgba(201, 150, 12, 0.4);
    border-radius: 4px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    display: block;
}

/* Nav & Close buttons */
.wrg-lb-close,
.wrg-lb-prev,
.wrg-lb-next {
    background: rgba(201, 150, 12, 0.15);
    border: 1px solid rgba(201, 150, 12, 0.5);
    color: #EDD98A;
    cursor: pointer;
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
}

.wrg-lb-close:hover,
.wrg-lb-prev:hover,
.wrg-lb-next:hover {
    background: rgba(201, 150, 12, 0.4);
    color: #FAF3E0;
}

.wrg-lb-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrg-lb-prev,
.wrg-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrg-lb-prev {
    left: -60px;
}

.wrg-lb-next {
    right: -60px;
}

@media (max-width: 680px) {
    .wrg-lb-prev {
        left: 8px;
        top: auto;
        bottom: 56px;
        transform: none;
    }

    .wrg-lb-next {
        right: 8px;
        top: auto;
        bottom: 56px;
        transform: none;
    }

    .wrg-lb-close {
        top: 8px;
        right: 8px;
        position: fixed;
    }
}

.wrg-lb-caption {
    font-family: 'Cinzel', 'Noto Sans Tamil', serif;
    font-size: 14px;
    font-weight: 600;
    color: #EDD98A;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 14px;
}

.wrg-lb-counter {
    font-family: 'Lato', 'Noto Sans Tamil', sans-serif;
    font-size: 11px;
    color: #a89b7e;
    letter-spacing: 0.15em;
    margin-top: 6px;
    text-align: center;
}