body {
    font-family: 'Nunito', sans-serif;
}
.swal2-popup, .swal2-title, .swal2-content, .toast, .alert {
    font-family: "Open Sans", Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    line-height: 1.5 !important;
}

.gallery-shell {
    --gallery-accent: #2a3855;
    --gallery-accent-soft: #3f5072;
    --gallery-ink: #23314a;
    --gallery-muted: #5c6b86;
}

.gallery-search-wrap {
    min-width: 280px;
    max-width: 380px;
    width: 100%;
}

.gallery-search-wrap .form-control {
    border: 1px solid rgba(42, 56, 85, 0.22);
    border-radius: 999px;
    padding: 0.7rem 1rem;
}

.gallery-search-wrap .form-control:focus {
    border-color: rgba(42, 56, 85, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(42, 56, 85, 0.14);
}

.gallery-filters {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    border: 1px solid rgba(42, 56, 85, 0.25);
    border-radius: 999px;
    background: #fff;
    color: var(--gallery-ink);
    padding: 0.45rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
    border-color: var(--gallery-accent);
    background: linear-gradient(135deg, var(--gallery-accent), var(--gallery-accent-soft));
    color: #fff;
    box-shadow: 0 10px 24px rgba(42, 56, 85, 0.28);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #101a2d;
    box-shadow: 0 12px 25px rgba(42, 56, 85, 0.24);
    transform: translateY(16px);
    opacity: 0;
    animation: galleryReveal 0.55s ease forwards;
    min-height: 280px;
}

.gallery-lightbox {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-card:nth-child(3n + 1) { animation-delay: 0.06s; }
.gallery-card:nth-child(3n + 2) { animation-delay: 0.12s; }
.gallery-card:nth-child(3n + 3) { animation-delay: 0.18s; }

.gallery-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(16, 26, 45, 0.02) 0%, rgba(16, 26, 45, 0.92) 78%);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.28s ease;
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-badge {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: rgba(235, 240, 250, 0.95);
    color: #2a3855;
}

.gallery-card-overlay h5 {
    color: #fff;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.gallery-card-overlay p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    line-height: 1.45;
}

.gallery-card.is-hidden {
    display: none;
}

.gallery-shell #galleryListing.is-loading {
    opacity: 0.7;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

@keyframes galleryReveal {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card-overlay {
        opacity: 1;
        transform: none;
    }
}