/* ============================================================
   VISA GRANTS GALLERY — FRONTEND STYLES
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

.vgg-gallery-wrap {
    font-family: 'Inter', -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ---- Section ---- */
.vgg-section {
    margin-bottom: 60px;
}

.vgg-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
}

.vgg-section-badge {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.vgg-badge-monthly {
    background: linear-gradient(135deg, #243c7c, #243c7c);
}
.vgg-badge-yearly {
    background: linear-gradient(135deg, #243c7c, #243c7c);
}

.vgg-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.vgg-section-monthly .vgg-section-title { color: #243c7c; }
.vgg-section-yearly  .vgg-section-title { color: #243c7c; }

.vgg-section-line {
    flex: 1;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, currentColor 0%, transparent 100%);
    opacity: .2;
}
.vgg-section-monthly .vgg-section-line { background: linear-gradient(90deg, #f3831c 0%, transparent 100%); opacity: .3; }
.vgg-section-yearly  .vgg-section-line { background: linear-gradient(90deg, #f3831c 0%, transparent 100%); opacity: .3; }

/* ---- Folder Section ---- */
.vgg-folder-section {
    margin-bottom: 40px;
}

.vgg-folder-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #243c7c;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.vgg-folder-icon { font-size: 20px; }

.vgg-folder-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: white;
    background: #243c7c;
    border: 1px solid #243c7c;
    border-radius: 20px;
    padding: 2px 12px;
}

/* ---- Grid ---- */
.vgg-grid {
    display: grid;
    gap: 20px;
}

.vgg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vgg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vgg-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vgg-cols-5 { grid-template-columns: repeat(5, 1fr); }
.vgg-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .vgg-cols-5, .vgg-cols-6 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .vgg-cols-3, .vgg-cols-4, .vgg-cols-5, .vgg-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .vgg-section-title { font-size: 24px; }
}
@media (max-width: 480px) {
    .vgg-cols-2, .vgg-cols-3, .vgg-cols-4, .vgg-cols-5, .vgg-cols-6 { grid-template-columns: 1fr 1fr; }
}

/* ---- Gallery Item ---- */
.vgg-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
    background: #f8fafc;
}

.vgg-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.vgg-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.vgg-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.vgg-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.vgg-item:hover .vgg-img-wrap img {
    transform: scale(1.07);
}

.vgg-img-overlay {
    position: absolute; inset: 0;
  background: rgba(36, 60, 124, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.vgg-item:hover .vgg-img-overlay { opacity: 1; }

.vgg-zoom-icon {
    font-size: 28px;
    transform: scale(0.6);
    transition: transform .3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.vgg-item:hover .vgg-zoom-icon { transform: scale(1); }

.vgg-img-caption {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Lightbox ---- */
.vgg-lightbox-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
    animation: vgg-lb-fade .25s ease;
}

@keyframes vgg-lb-fade { from { opacity: 0; } to { opacity: 1; } }

.vgg-lb-content {
    max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}

.vgg-lb-content img {
    max-width: 100%; max-height: 80vh;
    object-fit: contain; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: vgg-lb-img .3s cubic-bezier(.34,1.56,.64,1);
}

@keyframes vgg-lb-img { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.vgg-lb-caption {
    color: rgba(255,255,255,.8); margin-top: 16px;
    font-size: 14px; text-align: center;
}

.vgg-lb-close {
    position: fixed; top: 20px; right: 24px;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 28px; line-height: 1;
    width: 44px; height: 44px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.vgg-lb-close:hover { background: rgba(255,255,255,.25); }

.vgg-lb-nav {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 20px; width: 48px; height: 48px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.vgg-lb-nav:hover { background: rgba(255,255,255,.25); }
.vgg-lb-prev { left: 20px; }
.vgg-lb-next { right: 20px; }
