/* =============================================
   GALERÍA FPINNOVA26 — Self-contained styles
   Imports design tokens from ../assets/css/index.css
   ============================================= */

/* ── Header ── */
.gal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 22, 48, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
@supports (backdrop-filter: blur(1px)) {
    .gal-header {
        background: rgba(10, 22, 48, 0.82);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.gal-header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    justify-self: start;
}
.gal-header-symbol { height: 30px; width: auto; }
.gal-header-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gal-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gal-header-logo-strip {
    height: 32px;
    width: auto;
    max-width: 460px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.2s ease;
}
.gal-header-logo-strip:hover { opacity: 0.9; }
.gal-header-actions { justify-self: end; }

/* Language Switcher */
.gal-lang-switcher {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5px;
    border-radius: 100px;
    display: flex;
    gap: 3px;
}
.gal-lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    padding: 0.5rem 1.1rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.gal-lang-btn:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); }
.gal-lang-btn.active { background: #fff; color: var(--bg-deep); }

/* ── Hero ── */
.gal-hero {
    background: url('../../assets/img/hero-background.webp') center/cover no-repeat;
    background-color: var(--bg-deep);
    position: relative;
    padding: 4rem 2rem 3rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 110%, rgba(59,130,246,0.18) 0%, transparent 60%),
        linear-gradient(to bottom, rgba(4,13,31,0.68) 0%, rgba(6,18,44,0.85) 100%);
    z-index: 1;
}
.gal-hero-inner { position: relative; z-index: 2; }
.gal-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both;
    opacity: 0;
}
.gal-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    animation: galFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.25s both;
    opacity: 0;
}
.gal-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: galFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
    opacity: 0;
}
.gal-back-home:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateX(-3px);
}
.gal-back-home i { width: 16px; height: 16px; }

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

/* ── Album Grid ── */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.gal-album-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(10,18,38,0.7);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.gal-album-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.15);
}
.gal-album-card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.gal-album-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gal-album-card:hover .gal-album-card-img { transform: scale(1.08); }

.gal-album-card-meta {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #fff;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
}
.gal-album-card-meta i { width: 14px; height: 14px; }

.gal-album-card-content {
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(4,13,31,1));
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gal-album-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.gal-album-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeleton */
.gal-skeleton {
    background: linear-gradient(110deg, rgba(15,23,42,0.8) 30%, rgba(30,45,75,0.6) 50%, rgba(15,23,42,0.8) 70%);
    background-size: 200% 100%;
    animation: galShimmer 1.5s ease-in-out infinite;
}
@keyframes galShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Credits ── */
.gal-credits {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 2rem;
    background: rgba(10,18,38,0.7);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gal-credits-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.gal-credits-title i { width: 22px; height: 22px; color: #60a5fa; }
.gal-credits-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.gal-credits-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.gal-credits-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.gal-credits-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.gal-credits-link i { width: 14px; height: 14px; opacity: 0.7; }

/* ── Album Detail Header ── */
.gal-album-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.gal-album-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.gal-album-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}
.gal-album-back:hover { color: #fff; background: rgba(255,255,255,0.1); transform: translateX(-3px); }
.gal-album-back i { width: 16px; height: 16px; }

/* Title row: icon + combo or plain title */
.gal-album-title-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.gal-album-title-icon {
    width: 22px;
    height: 22px;
    color: #60a5fa;
    flex-shrink: 0;
}
.gal-album-detail-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}
.gal-album-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}
.gal-album-count i { width: 14px; height: 14px; }

/* ── Photo Mosaic Grid ── */
.gal-mosaic {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 6px 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    grid-auto-flow: dense;
}
.gal-photo {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(15,23,42,0.6);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    aspect-ratio: 1;
}
.gal-photo:nth-child(10n+1) { grid-column: span 2; grid-row: span 2; }
.gal-photo:nth-child(10n+6) { grid-column: span 2; grid-row: span 2; }
.gal-photo:hover {
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.gal-photo.is-loaded { animation: galPhotoIn 0.35s ease forwards; }
@keyframes galPhotoIn { from { opacity: 0.5; } to { opacity: 1; } }

.gal-photo-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.gal-photo:hover .gal-photo-img { transform: scale(1.05); }

.gal-photo.is-loading {
    background: linear-gradient(110deg, rgba(15,23,42,0.8) 30%, rgba(30,45,75,0.6) 50%, rgba(15,23,42,0.8) 70%);
    background-size: 200% 100%;
    animation: galShimmer 1.5s ease-in-out infinite;
}

/* ── Load More ── */
.gal-load-more {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}
.gal-load-more-btn {
    padding: 0.85rem 2.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(8px);
}
.gal-load-more-btn:hover {
    color: #fff;
    background: rgba(59,130,246,0.12);
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.15);
}
.gal-load-more-btn i { width: 18px; height: 18px; }

/* ── Lightbox ── */
.gal-lightbox {
    position: fixed; inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}
.gal-lightbox.active { opacity: 1; pointer-events: auto; }

.gal-lightbox-img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    cursor: zoom-in;
}
.gal-lightbox-img.zoomed { cursor: zoom-out; transform: scale(2); }
.gal-lightbox-img.slide-left { transform: translateX(-60px); opacity: 0; }
.gal-lightbox-img.slide-right { transform: translateX(60px); opacity: 0; }

.gal-lightbox-toolbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
    z-index: 10;
}
.gal-lightbox-counter-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.gal-lightbox-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    font-variant-numeric: tabular-nums;
}
.gal-lightbox-caption {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
    letter-spacing: 0.03em;
}
.gal-lightbox-actions { display: flex; gap: 0.5rem; }

.gal-lightbox-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
}
.gal-lightbox-btn:hover { background: rgba(255,255,255,0.18); color: #fff; transform: scale(1.08); }
.gal-lightbox-btn i { width: 20px; height: 20px; }

.gal-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.gal-lightbox:hover .gal-lightbox-nav { opacity: 1; }
.gal-lightbox-nav.prev { left: 1rem; }
.gal-lightbox-nav.next { right: 1rem; }
.gal-lightbox-nav-btn {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.gal-lightbox-nav-btn:hover {
    background: rgba(59,130,246,0.35);
    border-color: rgba(59,130,246,0.5);
    color: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 24px rgba(59,130,246,0.3);
}
.gal-lightbox-nav-btn:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}
.gal-lightbox-nav-btn i { width: 24px; height: 24px; }

/* Lightbox Progress Bar */
.gal-lightbox-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 11;
}
.gal-lightbox-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 0 2px 2px 0;
    transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 8px rgba(59,130,246,0.5);
}

/* ── Empty State ── */
.gal-empty {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-secondary);
}
.gal-empty-icon { width: 64px; height: 64px; color: rgba(255,255,255,0.1); margin: 0 auto 1.5rem; }
.gal-empty h3 { font-family: var(--font-display); font-size: 1.4rem; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }
.gal-empty p { font-size: 0.95rem; color: rgba(255,255,255,0.3); }

/* ── Footer ── */
.gal-footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gal-footer-logos {
    width: 90%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
.gal-footer-logos:hover { opacity: 0.85; }
.gal-footer-logos.top { margin-bottom: 0.5rem; }
.gal-footer-logos.bottom { margin-top: 0.5rem; }
.gal-footer-divider {
    width: 90%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 2rem 0;
}
.gal-footer-legal {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.gal-footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.gal-footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.gal-footer-links a:hover { color: #fff; }
.gal-footer-institution {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    text-align: center;
}

/* ── Album Select Nav ── */
.gal-album-nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}
.gal-album-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 0.75rem 2.8rem 0.75rem 1.2rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    width: 100%;
    min-height: 48px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.gal-album-select:hover, .gal-album-select:focus {
    background: rgba(15,23,42,0.8);
    border-color: rgba(59,130,246,0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.gal-album-select option {
    background: #0f172a;
    color: #fff;
    padding: 0.5rem;
}
.gal-album-select-icon {
    position: absolute;
    right: 1rem;
    pointer-events: none;
    color: rgba(255,255,255,0.6);
    width: 20px;
    height: 20px;
}

/* ── Bottom Nav ── */
.gal-bottom-nav {
    display: flex;
    justify-content: center;
    padding: 0 2rem 4rem;
    max-width: 1200px;
    margin: -1rem auto 0;
}
.gal-bottom-nav .gal-album-back {
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
}
.gal-bottom-nav .gal-album-back i {
    width: 18px;
    height: 18px;
}

/* ── Album Grid — entrance stagger ── */
.gal-album-card {
    animation: galCardIn 0.5s cubic-bezier(0.16,1,0.3,1) backwards;
}
.gal-album-card:nth-child(1) { animation-delay: 0.05s; }
.gal-album-card:nth-child(2) { animation-delay: 0.1s; }
.gal-album-card:nth-child(3) { animation-delay: 0.15s; }
.gal-album-card:nth-child(4) { animation-delay: 0.2s; }
.gal-album-card:nth-child(5) { animation-delay: 0.25s; }
.gal-album-card:nth-child(6) { animation-delay: 0.3s; }
.gal-album-card:nth-child(n+7) { animation-delay: 0.35s; }

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

/* Tap/active feedback */
.gal-album-card:active {
    transform: scale(0.97) !important;
    transition-duration: 0.1s !important;
}

/* Photo hover micro-interaction: slight brightness boost */
.gal-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s ease;
    z-index: 1;
    pointer-events: none;
}
.gal-photo:hover::after {
    background: rgba(255,255,255,0.04);
}

/* Photo active state */
.gal-photo:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* ── Blur-up effect ── */
.gal-photo-img.gal-blur-up {
    filter: blur(12px);
    transform: scale(1.08);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.gal-photo-img:not(.gal-blur-up) {
    filter: blur(0);
    transform: scale(1);
}

/* ── Progress Pill ── */
.gal-progress-pill {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem auto;
    padding: 0.4rem 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ── Responsive ── */
@media (max-width: 900px) {
    .gal-header-logos { display: none; }
    .gal-header { grid-template-columns: 1fr auto; }
}
@media (max-width: 1024px) {
    .gal-mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .gal-header { display: flex; justify-content: space-between; padding: 0.75rem 1.25rem; }
    .gal-grid { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 1rem 4rem; }
    .gal-album-card { border-radius: 14px; }
    .gal-mosaic { grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0.5rem 3px 4rem; }
    .gal-photo { border-radius: 2px; }
    .gal-album-header { padding: 1rem 1rem 0; gap: 0.4rem; }
    .gal-album-header-top { gap: 0.5rem; }
    .gal-album-title-row { gap: 0.5rem; }
    .gal-album-title-icon { width: 18px; height: 18px; }
    .gal-album-detail-title { font-size: 1.1rem; }
    .gal-album-select { font-size: 1rem; padding: 0.45rem 2rem 0.45rem 0.6rem; }
    .gal-lightbox-nav {
        opacity: 1;
    }
    .gal-lightbox-nav-btn {
        width: 36px;
        height: 36px;
        background: rgba(0,0,0,0.6);
    }
    .gal-lightbox-nav-btn i { width: 18px; height: 18px; }
    .gal-lightbox-nav.prev { left: 0.5rem; }
    .gal-lightbox-nav.next { right: 0.5rem; }
    .gal-lightbox-img { max-width: 98vw; max-height: 85vh; }
    .gal-hero { padding: 3rem 1.5rem 2rem; }
    .gal-footer { padding-bottom: 2rem; }
    .gal-bottom-nav { padding-bottom: 3rem; }
}

/* ── Mobile: Table-View Album Cards ── */
@media (max-width: 480px) {
    .gal-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1rem 0.75rem 4rem;
    }

    .gal-album-card {
        flex-direction: row;
        border-radius: 16px;
        min-height: 0;
        align-items: stretch;
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        border: 1px solid rgba(255,255,255,0.07);
    }
    .gal-album-card:hover {
        transform: translateX(4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 1px rgba(59,130,246,0.12);
    }

    .gal-album-card-img-wrap {
        aspect-ratio: 1;
        width: 90px;
        min-width: 90px;
        flex-shrink: 0;
        border-radius: 16px 0 0 16px;
    }
    .gal-album-card-img {
        border-radius: 16px 0 0 16px;
    }
    .gal-album-card:hover .gal-album-card-img {
        transform: scale(1.06);
    }

    .gal-album-card-meta {
        bottom: auto;
        top: 0.4rem;
        right: auto;
        left: 0.4rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
        border-radius: 8px;
    }
    .gal-album-card-meta i { width: 11px; height: 11px; }

    .gal-album-card-content {
        padding: 0.85rem 2.5rem 0.85rem 1rem;
        justify-content: center;
        background: transparent;
        min-width: 0;
    }
    .gal-album-card-title {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        line-height: 1.3;
    }
    .gal-album-card-desc {
        font-size: 0.78rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        line-height: 1.35;
        color: rgba(255,255,255,0.5);
    }

    /* Chevron hint */
    .gal-album-card-content::after {
        content: '›';
        position: absolute;
        right: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.4rem;
        color: rgba(255,255,255,0.2);
        font-weight: 300;
        transition: color 0.3s ease, transform 0.3s ease;
    }
    .gal-album-card:hover .gal-album-card-content::after {
        color: rgba(59,130,246,0.5);
        transform: translateY(-50%) translateX(2px);
    }

    .gal-mosaic { grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 0.25rem 2px 3rem; }
    .gal-photo { border-radius: 1px; }
}

