@import url('./generic.css');

/* ── Gallery Album Grid ── */
.gallery-albums {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
@media (max-width: 768px) {
.gallery-albums {
    grid-template-columns: 1fr;
    gap: 16px;
}
}

.gallery-album {
    background: var(--nca-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--nca-shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-album:hover {
    transform: translateY(-4px);
    box-shadow: var(--nca-shadow-md);
}

.gallery-album__cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.gallery-album__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-album:hover .gallery-album__cover img {
    transform: scale(1.05);
}
.gallery-album__cover--placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--nca-gradient-pink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-album__cover--placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255,255,255,0.3);
}

.gallery-album__count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.gallery-album__body {
    padding: 16px 20px;
}
.gallery-album__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--nca-text-dark);
    margin-bottom: 4px;
}
.gallery-album__meta {
    font-size: 13px;
    color: var(--nca-text-muted);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.gallery-album__category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nca-magenta);
}

/* ── Album Lightbox Modal ── */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}
.gallery-lightbox.active {
    display: block;
}

.gallery-lightbox__header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}
.gallery-lightbox__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gallery-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
}
.gallery-lightbox__close svg {
    width: 22px;
    height: 22px;
}
.gallery-lightbox__info {
    flex: 1;
    margin-left: 16px;
}
.gallery-lightbox__title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.gallery-lightbox__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
    max-width: 600px;
}
.gallery-lightbox__counter {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.gallery-lightbox__body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

.gallery-lightbox__photo {
    margin-bottom: 20px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background: #111;
}
.gallery-lightbox__photo:last-child {
    margin-bottom: 40px;
}
.gallery-lightbox__photo img {
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
.gallery-lightbox__header {
    padding: 12px 16px;
}
.gallery-lightbox__title {
    font-size: 15px;
}
.gallery-lightbox__body {
    padding: 16px;
}
}

/* ── Empty State ── */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--nca-text-muted);
}
.gallery-empty svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}
.gallery-empty p {
    font-size: 16px;
}
