/**
 * @file public-albums.css
 * @brief ستايلات صفحات الألبومات (Photo + Video) — قوائم + Gallery + Lightbox.
 * @namespace alb-*
 */

.alb-wrap { padding: 40px 0 72px; }

/* ============ Albums List Grid ============ */
.alb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.alb-card {
    /* Warm ivory surface — premium, lifts gently off the beige page */
    background: #FFFDF8;
    border: 1px solid var(--pub-border);
    border-radius: var(--pub-r-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgba(43,45,41,0.04), 0 6px 18px rgba(43,45,41,0.05);
    /* Animate only compositor-friendly props (transform / shadow / border) */
    transition: transform .35s cubic-bezier(.22,.61,.36,1),
                box-shadow .35s cubic-bezier(.22,.61,.36,1),
                border-color .3s ease;
}
.alb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(43,45,41,0.06), 0 22px 44px rgba(43,45,41,0.12);
    border-color: rgba(var(--pub-primary-rgb), 0.45);
}
.alb-card__cover {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--pub-bg-soft), #ECE7D8);
    overflow: hidden;
    position: relative;
}
.alb-card__cover-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--pub-ink-mute);
    font-size: 48px;
}
.alb-card__cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.alb-card:hover .alb-card__cover { will-change: transform; }
.alb-card:hover .alb-card__cover img { transform: scale(1.05); }
.alb-card__cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(43,45,41,0.55));
    pointer-events: none;
}
.alb-card__count {
    position: absolute;
    bottom: 12px; left: 12px;
    background: rgba(43,45,41,0.82);
    color: #fff;
    padding: 6px 13px;
    border-radius: var(--pub-r-full);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    z-index: 1;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), background .25s ease;
}
.alb-card:hover .alb-card__count {
    transform: translateY(-2px);
    background: var(--pub-primary-dark);
}

/* ============ Quick Preview Overlay (Index) ============ */
.alb-card__quick-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .3s ease;
    cursor: pointer;
}
.alb-card__cover:hover .alb-card__quick-overlay {
    background: rgba(43,45,41,0.42);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.alb-card__quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,253,248,0.95);
    color: var(--pub-ink);
    padding: 10px 22px;
    border-radius: var(--pub-r-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(8px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.22,.61,.36,1), opacity .25s ease, background .2s, box-shadow .2s, color .2s;
    box-shadow: 0 6px 18px rgba(43,45,41,0.22);
    pointer-events: none;
    border: none;
}
.alb-card__cover:hover .alb-card__quick-btn {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.alb-card__quick-btn:hover {
    background: var(--pub-primary);
    color: var(--pub-primary-dark);
    box-shadow: 0 8px 22px rgba(var(--pub-primary-rgb),0.45);
    transform: translateY(-1px);
}
.alb-card__quick-btn i { font-size: 16px; }

.alb-card__title-link {
    text-decoration: none;
    color: inherit;
}
.alb-card__title-link .alb-card__title {
    transition: color .2s ease;
}
.alb-card__title-link:hover .alb-card__title {
    color: var(--pub-primary-dark);
}
.alb-card__count i { color: var(--pub-primary); }
.alb-card__badge-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 22px;
    color: var(--pub-primary-dark);
    z-index: 1;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.alb-card:hover .alb-card__badge-video {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--pub-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(245,183,62,0.35);
}
.alb-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
}
.alb-card__text { flex: 1; min-width: 0; }
.alb-card__title {
    font-size: 17px;
    font-weight: 800;
    color: var(--pub-ink);
    margin: 0 0 6px;
    line-height: 1.45;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.alb-card__desc {
    color: var(--pub-ink-soft);
    font-size: 13.5px;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Circular "open album" chevron (bottom-left of card body) */
.alb-card__open {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--pub-primary-dark);
    background: rgba(var(--pub-primary-rgb), 0.14);
    border: 1px solid rgba(var(--pub-primary-rgb), 0.30);
    font-size: 14px;
    text-decoration: none;
    transition: transform .25s cubic-bezier(.22,.61,.36,1), background .2s ease, color .2s ease, box-shadow .2s ease;
}
.alb-card__open:hover {
    background: var(--pub-primary-dark);
    color: #fff;
    transform: translateX(-2px);
    box-shadow: 0 6px 16px rgba(58,75,41,0.30);
}
.alb-card__open i { transition: transform .25s ease; }
.alb-card:hover .alb-card__open i { transform: translateX(-2px); }
.alb-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--pub-border);
    font-size: 12.5px;
    color: var(--pub-ink-soft);
}
.alb-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.alb-card__meta strong { color: var(--pub-primary-dark); font-weight: 700; }

/* ============ Decorative Olive Divider ============ */
.alb-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 34px;
    max-width: 280px;
    color: var(--pub-primary);
}
.alb-ornament__line {
    height: 1px;
    width: 64px;
    background: linear-gradient(90deg, transparent, rgba(var(--pub-primary-rgb), 0.7));
}
.alb-ornament__line:last-child {
    background: linear-gradient(90deg, rgba(var(--pub-primary-rgb), 0.7), transparent);
}
.alb-ornament i {
    font-size: 15px;
    color: var(--pub-primary);
    opacity: 0.9;
}

/* ============ Load More Button ============ */
.alb-loadmore {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}
.alb-loadmore__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 34px;
    border-radius: var(--pub-r-full);
    border: 1px solid rgba(var(--pub-primary-rgb), 0.55);
    background: #fff;
    color: var(--pub-primary-dark);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(43,45,41,0.06);
    transition: transform .25s cubic-bezier(.22,.61,.36,1), background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.alb-loadmore__btn:hover {
    background: var(--pub-primary-dark);
    color: #fff;
    border-color: var(--pub-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(58,75,41,0.22);
}
.alb-loadmore__btn i { font-size: 13px; }

/* ============ Photo Album Show — Masonry Grid ============ */
.alb-header {
    background: linear-gradient(135deg, var(--pub-ink) 0%, var(--pub-ink-2) 100%);
    color: #fff;
    padding: 50px 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.alb-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(245,183,62,0.18), transparent 60%);
    pointer-events: none;
}
.alb-header__crumbs {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 12px;
    position: relative;
}
.alb-header__crumbs a { color: rgba(255,255,255,0.7); }
.alb-header__crumbs a:hover { color: var(--pub-primary); }
.alb-header h1 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    position: relative;
}
.alb-header__desc {
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 720px;
    line-height: 1.7;
    position: relative;
}
.alb-header__meta {
    display: flex;
    gap: 22px;
    margin-top: 16px;
    flex-wrap: wrap;
    position: relative;
}
.alb-header__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.alb-header__meta i { color: var(--pub-primary); }

/* Masonry-like gallery */
.alb-gallery {
    columns: 4 280px;
    column-gap: 14px;
}
.alb-gallery__item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: var(--pub-r-md);
    overflow: hidden;
    cursor: zoom-in;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(229,233,239,0.55);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    display: block;
}
.alb-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13,27,47,0.08);
}
.alb-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.alb-gallery__item:hover img { transform: scale(1.05); }
.alb-gallery__item figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 10px 14px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 12.5px;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.alb-gallery__item:hover figcaption { transform: translateY(0); }

/* ============ Premium Quick View Lightbox ============ */
.alb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
}
.alb-lightbox.is-open { display: block; }
.alb-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: albOverlayIn .3s ease;
}
@keyframes albOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes albOverlayOut { from { opacity: 1; } to { opacity: 0; } }
.alb-lightbox.is-closing .alb-lightbox__overlay { animation: albOverlayOut .25s ease forwards; }

.alb-lightbox__stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
}
.alb-lightbox__viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.alb-lightbox__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: albZoomIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes albZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes albZoomOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.85); }
}
.alb-lightbox.is-closing .alb-lightbox__slide { animation: albZoomOut .25s ease forwards; }
.alb-lightbox.is-switching .alb-lightbox__slide { animation: none; }

.alb-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.alb-lightbox__img.is-loaded { opacity: 1; }

.alb-lightbox__spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.5);
    font-size: 32px;
    pointer-events: none;
    transition: opacity .3s ease;
}
.alb-lightbox__spinner.is-hidden { opacity: 0; }

.alb-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    width: 52px; height: 52px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}
.alb-lightbox__nav:hover {
    background: var(--pub-primary);
    color: var(--pub-ink);
    border-color: var(--pub-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 24px rgba(245,183,62,0.3);
}
.alb-lightbox__nav:active { transform: translateY(-50%) scale(0.95); }
.alb-lightbox__prev { right: 16px; }
.alb-lightbox__next { left: 16px; }
.alb-lightbox__nav.is-hidden { display: none; }

.alb-lightbox__close {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: background .25s, transform .25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}
.alb-lightbox__close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

.alb-lightbox__footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}
.alb-lightbox__counter {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 18px;
    border-radius: var(--pub-r-full);
    border: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
    user-select: none;
}
.alb-lightbox__caption {
    color: rgba(255,255,255,0.8);
    font-size: 13.5px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 18px;
    border-radius: var(--pub-r-full);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Video Album Show ============ */
.alb-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.alb-video-item {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(229,233,239,0.65);
    border-radius: var(--pub-r-lg);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s cubic-bezier(.34,1.56,.64,1), border-color .3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.alb-video-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(13,27,47,0.10), 0 4px 12px rgba(13,27,47,0.06);
    border-color: rgba(245,183,62,0.25);
}
.alb-video-item__thumb {
    aspect-ratio: 16/9;
    background: var(--pub-bg-soft);
    position: relative;
    overflow: hidden;
}
.alb-video-item__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.alb-video-item__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #0a1422;
    color: rgba(255,255,255,0.45);
    font-size: 42px;
}
.alb-video-item__play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 20px;
    color: var(--pub-primary-dark);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.alb-video-item:hover .alb-video-item__play {
    background: var(--pub-primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 10px 24px rgba(245,183,62,0.35);
}
.alb-video-item__body {
    padding: 14px 16px;
}
.alb-video-item__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pub-ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Video Modal */
.alb-vmodal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.alb-vmodal.is-open { display: flex; animation: albFadeIn .2s ease; }
.alb-vmodal__inner {
    width: 100%;
    max-width: 1000px;
    background: #000;
    border-radius: var(--pub-r-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,0.06);
}
.alb-vmodal__close {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    z-index: 1;
    transition: background .2s, transform .2s;
}
.alb-vmodal__close:hover { background: var(--pub-primary); color: var(--pub-ink); transform: scale(1.08); }
.alb-vmodal__frame {
    aspect-ratio: 16/9;
    width: 100%;
}
.alb-vmodal__frame iframe,
.alb-vmodal__frame video {
    width: 100%; height: 100%;
    border: 0;
    display: block;
}

/* ============ Empty State ============ */
.alb-empty {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(8px);
    border: 1px dashed var(--pub-border-strong);
    border-radius: var(--pub-r-lg);
    padding: 60px 20px;
    text-align: center;
    color: var(--pub-ink-soft);
}
.alb-empty i {
    font-size: 48px;
    color: var(--pub-ink-mute);
    margin-bottom: 14px;
    display: block;
}
.alb-empty h3 { margin: 0 0 6px; color: var(--pub-ink); font-size: 20px; }
.alb-empty__desc { margin: 0; }

/* ============ Quick Preview Lightbox (Index) ============ */
.qpl-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
}
.qpl-overlay.is-open { display: block; }
.qpl-overlay__bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: qplFadeIn .3s ease;
}
@keyframes qplFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes qplFadeOut { from { opacity: 1; } to { opacity: 0; } }
.qpl-overlay.is-closing .qpl-overlay__bg { animation: qplFadeOut .25s ease forwards; }

.qpl-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
}
.qpl-viewport {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.qpl-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: qplZoomIn .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes qplZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes qplZoomOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.85); }
}
.qpl-overlay.is-closing .qpl-slide { animation: qplZoomOut .25s ease forwards; }

.qpl-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0,0,0,.7);
    user-select: none;
    -webkit-user-drag: none;
    opacity: 0;
    transition: opacity .3s ease;
}
.qpl-img.is-loaded { opacity: 1; }

.qpl-spinner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.5);
    font-size: 32px;
    pointer-events: none;
    transition: opacity .3s ease;
}
.qpl-spinner.is-hidden { opacity: 0; }

.qpl-btn {
    position: absolute;
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .25s, transform .25s, box-shadow .25s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}
.qpl-btn--close {
    top: 16px; left: 16px;
    width: 44px; height: 44px;
    font-size: 20px;
    z-index: 3;
}
.qpl-btn--close:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}
.qpl-btn--nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    font-size: 20px;
}
.qpl-btn--nav:hover {
    background: var(--pub-primary);
    color: var(--pub-ink);
    border-color: var(--pub-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 24px rgba(245,183,62,0.3);
}
.qpl-btn--nav:active { transform: translateY(-50%) scale(0.95); }
.qpl-btn--prev { right: 16px; }
.qpl-btn--next { left: 16px; }
.qpl-btn.is-hidden { display: none; }

.qpl-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80vw;
}
.qpl-counter,
.qpl-album-title,
.qpl-caption {
    color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 18px;
    border-radius: var(--pub-r-full);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}
.qpl-counter { letter-spacing: 0.5px; }
.qpl-album-title {
    color: var(--pub-primary);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qpl-caption {
    font-weight: 400;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .alb-grid { grid-template-columns: repeat(2, 1fr); }
    .alb-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .alb-grid,
    .alb-video-grid { grid-template-columns: 1fr; }
    .alb-gallery { columns: 2 180px; }
    .alb-lightbox__stage { padding: 12px; }
    .alb-lightbox__nav { width: 42px; height: 42px; font-size: 16px; }
    .alb-lightbox__prev { right: 6px; }
    .alb-lightbox__next { left: 6px; }
    .alb-lightbox__close { top: 10px; left: 10px; width: 38px; height: 38px; font-size: 17px; }
    .alb-lightbox__footer { bottom: 14px; gap: 10px; }
    .alb-lightbox__counter { font-size: 12px; padding: 5px 14px; }
    .alb-lightbox__caption { display: none; }
    .alb-lightbox__img { max-width: 96vw; max-height: 85vh; }
    .qpl-stage { padding: 12px; }
    .qpl-btn--nav { width: 42px; height: 42px; font-size: 16px; }
    .qpl-btn--prev { right: 6px; }
    .qpl-btn--next { left: 6px; }
    .qpl-btn--close { top: 10px; left: 10px; width: 38px; height: 38px; font-size: 17px; }
    .qpl-footer { bottom: 14px; gap: 8px; }
    .qpl-counter { font-size: 12px; padding: 5px 14px; }
    .qpl-album-title,
    .qpl-caption { display: none; }
    .qpl-img { max-width: 96vw; max-height: 85vh; }
}
