/* ---------- Lightbox Caption ---------- */
.mfp-title {
    position: absolute;
    left: 50%;
    bottom: -70px !important;
    transform: translateX(-50%);
    width: 80%;
    text-align: center;
    line-height: 1.65;
    background: rgba(39, 60, 68, .35);
    backdrop-filter: blur(1.5em);
    border-radius: 8px;
    padding: 10px 14px;
}

/* ---------- Card Caption ---------- */
.gallery-caption {
    font-size: .9rem;
    line-height: 1.4;
}

/* ---------- Image Upscale on Hover ---------- */
.gallery-page .col-md-3 a[data-lightbox] {
    display: block;
    overflow: hidden;
    border-radius: .375rem;
}

.gallery-page .col-md-3 a[data-lightbox] img {
    transition: transform .4s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
}

.gallery-page .col-md-3 a[data-lightbox]:hover img {
    transform: scale(1.15);
}

/* ---------- Gallery Pages ---------- */
.gallery-page {
    display: none;
}

.gallery-page.active {
    display: flex;
}

/* ---------- Pagination (LAW STYLE) ---------- */
.gallery-pagination {
    margin-top: 35px;
}

.gallery-pagination .page-item {
    margin: 0 4px;
}

.gallery-pagination .page-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #f1f5ff;
    color: #ff7900;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.gallery-pagination .page-link:hover {
    background: #ff7900;
    color: #fff;
    transform: translateY(-2px);
}

.gallery-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #ff7900, #ff7900cc);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .35);
}
