/* ============================================================
   Lindenrust Gallery — gallery.css  v1.2
   ============================================================ */

.lrg-gallery { width: 100%; }
.lrg-grid    { width: 100%; box-sizing: border-box; }

/* ── Images ── */
.lrg-item img {
    transition: transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.32s ease, opacity 0.4s ease;
}
.lrg-item img[data-src] { opacity: 0; }
.lrg-item img.lrg-loaded { opacity: 1; }

/* ── Hover effects ── */
.lrg-hover-zoom:hover      img { transform: scale(1.07); }
.lrg-hover-fade:hover      img { filter: brightness(0.68); }
.lrg-hover-zoom-fade:hover img { transform: scale(1.07); filter: brightness(0.68); }

/* ── Caption ── */
.lrg-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    font-size: 13px; line-height: 1.35;
    z-index: 5; pointer-events: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-sizing: border-box;
}
/* hover: hidden until mouseenter */
.lrg-cap-hover {
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.lrg-item:hover .lrg-cap-hover { opacity: 1; transform: translateY(0); }

/* below: always visible, outside the image */
.lrg-cap-below {
    position: relative;
    opacity: 1; transform: none;
    background: transparent !important;
    color: #444 !important;
    padding: 5px 2px;
    white-space: normal;
}

/* ── Pagination ── */
.lrg-pagination {
    display: flex; flex-wrap: wrap;
    align-items: center; justify-content: center; gap: 6px;
}
.lrg-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: none; border-radius: 4px; cursor: pointer;
    font-size: 14px; font-weight: 500;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}
.lrg-page-btn:hover           { transform: translateY(-1px); }
.lrg-page-btn.lrg-page-dots  { cursor: default; background: none !important; }
.lrg-load-more-btn {
    display: inline-block; padding: 10px 28px;
    border: none; border-radius: 4px; cursor: pointer;
    font-size: 14px; font-weight: 500;
    transition: opacity 0.2s, transform 0.15s;
}
.lrg-load-more-btn:hover:not(:disabled) { transform: translateY(-2px); opacity: 0.9; }
.lrg-load-more-btn:disabled { cursor: default; opacity: 0.5; }
.lrg-sentinel { width: 100%; height: 1px; }
.lrg-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid currentColor; border-top-color: transparent;
    border-radius: 50%; animation: lrg-spin 0.7s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes lrg-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════ */
.lrg-lb-backdrop {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.28s ease;
}
.lrg-lb-backdrop.lrg-lb-open { opacity: 1; pointer-events: all; }

.lrg-lb-stage {
    position: relative; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.lrg-lb-img-wrap {
    position: relative; max-width: 90vw; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.lrg-lb-img-wrap img {
    max-width: 90vw; max-height: 82vh; width: auto; height: auto;
    display: block; border-radius: 3px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.lrg-lb-img-wrap img.lrg-lb-entering { opacity: 0; transform: scale(0.97); }
.lrg-lb-img-wrap img.lrg-lb-visible  { opacity: 1; transform: scale(1); }

.lrg-lb-caption {
    margin-top: 10px; font-size: 13px;
    text-align: center; opacity: 0.75; max-width: 80vw;
}
.lrg-lb-counter {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    font-size: 13px; opacity: 0.55; pointer-events: none; white-space: nowrap;
}
.lrg-lb-close {
    position: fixed; top: 14px; right: 18px;
    background: none; border: none; cursor: pointer;
    padding: 6px; line-height: 0; opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s; z-index: 10;
}
.lrg-lb-close:hover { opacity: 1; transform: scale(1.1) rotate(90deg); }
.lrg-lb-prev, .lrg-lb-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.25); border: none; cursor: pointer;
    padding: 20px 14px; line-height: 0; border-radius: 4px; opacity: 0.7;
    transition: opacity 0.2s, background 0.2s; z-index: 10;
}
.lrg-lb-prev { left: 14px; }
.lrg-lb-next { right: 14px; }
.lrg-lb-prev:hover, .lrg-lb-next:hover { opacity: 1; background: rgba(0,0,0,0.5); }

body.lrg-lb-open { overflow: hidden; }

@media (max-width: 600px) {
    .lrg-lb-prev { left: 4px; padding: 14px 10px; }
    .lrg-lb-next { right: 4px; padding: 14px 10px; }
    .lrg-lb-img-wrap img { max-width: 96vw; }
}
