/* ==================================================
   Galerie - přehled alb
================================================== */

.gallery-albums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    background: var(--white);
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 36, 82, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 36, 82, 0.1);
}

.gallery-card-button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.gallery-card-button:hover img {
    transform: scale(1.03);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-card-body {
    padding: 18px;
}

.gallery-card-date {
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gallery-card-body h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.4;
    color: var(--text-color);
}

.gallery-card-body p {
    margin-bottom: 10px;
    color: #5f6b7a;
    line-height: 1.55;
}

.gallery-card-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gallery-empty {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ==================================================
   Lightbox
================================================== */

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(8, 16, 28, 0.88);
    z-index: 9999;
    padding: 24px;
}

.gallery-lightbox[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 1200px;
}

.lightbox-main {
    flex: 1;
    text-align: center;
}

.lightbox-main img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-caption {
    margin-top: 14px;
    color: var(--white);
}

.lightbox-caption h3 {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: var(--white);
}

.lightbox-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.lightbox-close,
.lightbox-nav {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-nav {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 900px) {
    .gallery-albums {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-card img {
        height: 220px;
    }
}

@media (max-width: 600px) {
    .gallery-albums {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-card img {
        height: 210px;
    }

    .gallery-card-body {
        padding: 16px;
    }

    .gallery-card-body h3 {
        font-size: 1rem;
    }

    .gallery-card-body p {
        font-size: 0.92rem;
    }

    .gallery-lightbox {
        padding: 16px;
    }

    .lightbox-content {
        gap: 10px;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .lightbox-main img {
        max-height: 68vh;
    }

    .lightbox-caption h3 {
        font-size: 1rem;
    }

    .lightbox-caption p {
        font-size: 0.85rem;
    }
}