/* ─── Gallery Page ───────────────────────────────────────────────── */

.gal-page {
    position: relative;
    background-image: url('../img/hero.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.gal-page__overlay {
    position: absolute;
    inset: 0;
    background: #0000008a;
    z-index: 0;
}

.gal-page__content {
    position: relative;
    z-index: 1;
}

.gal-page-title {
    text-align: center;
    padding: 28px 0 20px;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,.45);
    margin: 0;
}

/* ─── Gallery Card ───────────────────────────────────────────────── */
.gal-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.22);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,.38);
}

.gal-card__img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.gal-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.gal-card:hover .gal-card__img img {
    transform: scale(1.07);
}

.gal-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s;
}

.gal-card:hover .gal-card__overlay {
    background: rgba(0,0,0,0.42);
}

.gal-card__zoom {
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .25s, transform .25s;
}

.gal-card:hover .gal-card__zoom {
    opacity: 1;
    transform: scale(1);
}

.gal-card__body {
    padding: 10px 14px 12px;
}

.gal-card__title {
    font-size: .84rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gal-card__date {
    font-size: .72rem;
    color: #f0c040;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ─── Load More ─────────────────────────────────────────────────── */
.gal-load-more {
    background: #1a7a1a;
    border: none;
    color: #fff;
    padding: 11px 32px;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background .2s, transform .2s;
}

.gal-load-more:hover {
    background: #145e14;
    transform: translateY(-2px);
}

/* ─── Pagination (kept for reference, unused) ────────────────────── */
.gal-pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
    border: 1px solid #1a7a1a;
    background: #1a7a1a;
    color: #fff;
    font-size: .8rem;
}

.gal-pagination .page-link:hover {
    background: #145e14;
    border-color: #145e14;
    color: #fff;
}

.gal-pagination .page-item.active .page-link {
    background: #f0a500;
    border-color: #f0a500;
    color: #fff;
}

.gal-pagination .page-item.disabled .page-link {
    background: #555;
    border-color: #555;
    color: #aaa;
    opacity: 1;
}

/* ─── Lightbox ───────────────────────────────────────────────────── */
.gal-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gal-lightbox.is-open {
    display: flex;
}

.gal-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    animation: galFadeIn .2s ease;
}

@keyframes galFadeIn { from { opacity: 0; } to { opacity: 1; } }

.gal-lightbox__modal {
    position: relative;
    z-index: 1;
    max-width: 880px;
    width: 100%;
    animation: galSlideUp .25s cubic-bezier(.34,1.56,.64,1);
}

@keyframes galSlideUp {
    from { transform: translateY(20px) scale(.96); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.gal-lightbox__close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s;
}

.gal-lightbox__close:hover { background: #c0392b; }

.gal-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}

.gal-lightbox__nav:hover { background: #1a7a1a; }
.gal-lightbox__nav--prev { left: -60px; }
.gal-lightbox__nav--next { right: -60px; }

.gal-lightbox__img-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,.6);
    line-height: 0;
    box-shadow: 0 30px 80px rgba(0,0,0,.7);
}

.gal-lightbox__img-wrap img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.gal-lightbox__info {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.gal-lightbox__title {
    font-size: .95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.gal-lightbox__date {
    font-size: .78rem;
    color: #f0c040;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.gal-lightbox__counter {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .gal-lightbox__nav--prev { left: 4px; }
    .gal-lightbox__nav--next { right: 4px; }
    .gal-lightbox__close { top: -46px; }
}
