/* ── Galerie — Albums ──────────────────────────────────────── */
.album-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.album-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f7fa;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(17,17,17,0.12);
    color: inherit;
}

.album-card-cover {
    height: 160px;
    overflow: hidden;
    background: #f5f7fa;
}

.album-card-cover img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.album-card:hover .album-card-cover img {
    transform: scale(1.05);
}

.album-card-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #e2e2e2;
}

.album-card-body {
    padding: 0.75rem 0.9rem 0.9rem;
}

.album-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #111;
}

.album-card-count {
    font-size: 0.75rem;
    color: #5c5c5c;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Galerie — Photos ──────────────────────────────────────── */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.photo-thumb {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border: none;
    padding: 0;
    background: #f5f7fa;
    cursor: pointer;
    border-radius: 6px;
}

.photo-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.2s;
}

.photo-thumb:hover img {
    transform: scale(1.06);
    opacity: 0.9;
}

.btn-back {
    font-size: 0.85rem;
    color: #5c5c5c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.btn-back:hover { color: #8B1929; }

.album-count-badge {
    font-size: 0.8rem;
    color: #5c5c5c;
    align-self: flex-end;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.14);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .album-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
