
/* ================= GALLERY PAGE ================= */

.gallery-card {
    position: relative;
    background: var(--color-bg-alt);
    border: none;
    border-radius: var(--radius-card);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    text-align: left;
    font-family: var(--font-main);
    display: block;
    width: 100%;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.gallery-card-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.gallery-card-body {
    padding: 12px 14px;
}

.gallery-card-body h3 {
    font-size: var(--font-size-sm);
    margin: 0 0 4px;
    color: var(--color-text);
}

.gallery-card-body span {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ---------- Lightbox ---------- */
.lightbox-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-backdrop.open { display: flex; }

.lightbox-backdrop img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
    margin-top: 16px;
    text-align: center;
    color: #fff;
}

.lightbox-caption #lightboxTitle {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 4px;
}

.lightbox-caption #lightboxCounter {
    font-size: 12px;
    opacity: 0.7;
}

@media (max-width: 767.98px) {
    .lightbox-nav { width: 36px; height: 36px; font-size: 14px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}
