/* ==========================================================================
   ACZ Digital Portal - Media Gallery Experience Stylesheet
   Design System Standard: Zimbabwean Forest Green (#071e12, #0f3d23, #1b5e20)
   ========================================================================== */

/* ── Hero Banner Section ── */
.gallery-hero {
    background: linear-gradient(135deg, #05180e 0%, #0c331d 55%, #15572e 100%);
    position: relative;
    padding: 3.5rem 0 3rem;
    color: #ffffff;
    overflow: hidden;
    border-bottom: 3px solid #2e7d32;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 222, 128, 0.08) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 36px 36px, 36px 36px;
    pointer-events: none;
}

.gallery-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
}

.gallery-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.gallery-hero .breadcrumb-item a:hover {
    color: #4ade80;
}

.gallery-hero .breadcrumb-item.active {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.gallery-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #4ade80;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.gallery-hero-title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.gallery-hero-lead {
    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 720px;
    line-height: 1.55;
    margin: 0 auto;
}

/* ── View Switcher Navigation Bar ── */
.gallery-view-nav {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    gap: 4px;
}

.gallery-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.gallery-view-btn:hover {
    color: #0f3d23;
    background: rgba(255, 255, 255, 0.7);
}

.gallery-view-btn.active {
    background: #0f3d23;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(15, 61, 35, 0.25);
}

.gallery-view-btn .badge-pill-count {
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 9999px;
    font-weight: 700;
}

.gallery-view-btn.active .badge-pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ── Airport & Topic Filter Chips ── */
.gallery-filter-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.gallery-filter-scroll::-webkit-scrollbar {
    height: 4px;
}

.gallery-filter-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.gallery-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.825rem;
    font-weight: 500;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.gallery-filter-chip:hover {
    color: #0f3d23;
    border-color: #0f3d23;
    background: #f8fafc;
}

.gallery-filter-chip.active {
    background: #0f3d23;
    color: #ffffff;
    border-color: #0f3d23;
    box-shadow: 0 2px 6px rgba(15, 61, 35, 0.2);
}

/* ── Album Grid Cards ── */
.gallery-album-card {
    background: #ffffff;
    border: 1px solid rgba(15, 61, 35, 0.08);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.gallery-album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(15, 61, 35, 0.12);
    border-color: rgba(15, 61, 35, 0.25);
}

.gallery-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #071e12;
    overflow: hidden;
}

.gallery-card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-album-card:hover .gallery-card-thumb-wrap img {
    transform: scale(1.05);
}

.gallery-card-overlay-badges {
    position: absolute;
    inset: auto 12px 12px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.gallery-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(7, 30, 18, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.gallery-card-title a {
    color: inherit;
    text-decoration: none;
}

.gallery-card-title a:hover {
    color: #0f3d23;
}

.gallery-card-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.gallery-card-footer {
    padding-top: 0.85rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
}

.gallery-card-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #0f3d23;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.gallery-album-card:hover .gallery-card-action {
    color: #1b5e20;
    transform: translateX(3px);
}

/* ── Photo Stream Grid ── */
.gallery-photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #071e12;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

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

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

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 30, 18, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    color: #ffffff;
}

.gallery-photo-item:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-photo-zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
}

/* ── Video Card Styles ── */
.gallery-video-card {
    border: 1px solid rgba(15, 61, 35, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.gallery-video-card .ratio {
    border-bottom: 1px solid #e2e8f0;
}

/* ── Responsive Refinements ── */
@media (max-width: 768px) {
    .gallery-hero {
        padding: 2.5rem 0 2rem;
    }
    
    .gallery-view-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .gallery-view-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .gallery-photo-item {
        aspect-ratio: 1;
    }
}
