/* Gallery page */
.page-hero {
    background: linear-gradient(135deg, var(--rgc-navy) 0%, var(--rgc-blue) 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
}

.page-hero h1 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.page-hero-lead {
    max-width: 640px;
    margin-bottom: 0;
    opacity: 0.92;
    font-size: 1.05rem;
}

.gallery-breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.55);
}

.gallery-breadcrumb .breadcrumb-item,
.gallery-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.gallery-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.gallery-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.gallery-hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-page {
    background: var(--rgc-light);
}

.gallery-album-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(11, 45, 92, 0.08);
}

.gallery-album-title {
    color: var(--rgc-navy);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.gallery-album-desc {
    color: #666;
    margin-bottom: 0;
    max-width: 720px;
}

.gallery-album-count {
    flex-shrink: 0;
    background: #fff;
    color: var(--rgc-blue);
    border: 1px solid rgba(26, 79, 140, 0.15);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(11, 45, 92, 0.08);
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(11, 45, 92, 0.05), rgba(11, 45, 92, 0.72));
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-card-overlay i {
    font-size: 2rem;
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(11, 45, 92, 0.16);
    outline: none;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
    opacity: 1;
}

.gallery-card:hover .gallery-card-overlay i,
.gallery-card:focus-visible .gallery-card-overlay i {
    transform: scale(1);
}

.gallery-empty-icon {
    font-size: 3rem;
    color: var(--rgc-blue);
    opacity: 0.65;
}

.gallery-lightbox .modal-content {
    background: #0b1f3d;
    color: #fff;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-lightbox .modal-header,
.gallery-lightbox .modal-footer {
    background: rgba(0, 0, 0, 0.2);
}

.gallery-lightbox .modal-title {
    color: #fff;
    font-weight: 700;
}

.gallery-lightbox .carousel-item {
    min-height: 320px;
    max-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-lightbox .carousel-item img {
    max-height: 72vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.gallery-lightbox .carousel-control-prev,
.gallery-lightbox .carousel-control-next {
    width: 8%;
}

.gallery-lightbox-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.gallery-thumb-link {
    display: block;
    color: inherit;
}

.gallery-thumb-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 0.75rem;
    background: linear-gradient(180deg, transparent, rgba(11, 45, 92, 0.88));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-thumb-link:hover .gallery-thumb-label,
.gallery-thumb-link:focus .gallery-thumb-label {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .gallery-album-header {
        flex-direction: column;
    }

    .gallery-album-count {
        align-self: flex-start;
    }
}
