/* ============================================================
   pages/gallery.css
   Gallery Styles
   ============================================================ */

/* ===== GALERI CARD ===== */
.gallery-item {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--brand-300);
}
.gallery-item-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg-muted);
    transition: transform 0.4s ease;
    display: block;
}
.gallery-item:hover .gallery-item-img {
    transform: scale(1.04);
}
.gallery-item-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gallery-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}
.gallery-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkitline-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-item-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-600);
    background: var(--brand-50);
    padding: 3px 12px;
    border-radius: 20px;
    width: fit-content;
}

/* ===== LIGHTBOX / POPUP ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.lightbox-overlay.show {
    display: flex;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}
.lightbox-container {
    max-width: 1000px;
    width: 100%;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-image-wrap {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 400px;
}
.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: var(--radius-md);
}
.lightbox-info {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-surface);
}
.lightbox-info .category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-600);
    background: var(--brand-50);
    padding: 4px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
}
.lightbox-info h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.lightbox-info .desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.lightbox-info .meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
    .lightbox-container {
        grid-template-columns: 1fr;
        max-height: 95vh;
        overflow-y: auto;
    }
    .lightbox-image-wrap {
        min-height: 200px;
        padding: 12px;
    }
    .lightbox-image-wrap img {
        max-height: 300px;
    }
    .lightbox-info {
        padding: 20px 18px;
    }
    .lightbox-info h2 {
        font-size: 20px;
    }
}