/* Galerie — filtry a mřížka alb */

.gallery-page {
    padding: 40px 0 60px;
    background: #f5f5f5;
}

.gallery-intro {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    max-width: 720px;
    margin-bottom: 28px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.gallery-filters-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #888;
    margin-right: 6px;
    width: 100%;
}
@media (min-width: 576px) {
    .gallery-filters-label { width: auto; margin-bottom: 0; }
}

.gallery-filter {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 10px 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: var(--dark);
    border-radius: 3px;
    cursor: pointer;
    transition: all .2s;
}
.gallery-filter:hover {
    border-color: var(--red);
    color: var(--red);
}
.gallery-filter.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.gallery-filter.is-active:hover {
    background: var(--primary-hover, #c41e21);
    border-color: var(--primary-hover, #c41e21);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.gallery-item {
    transition: opacity .25s ease, transform .25s ease;
}
.gallery-item.is-hidden {
    display: none;
}

.gallery-card {
    display: block;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    border-top: 3px solid transparent;
}
.gallery-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    transform: translateY(-3px);
    border-top-color: var(--red);
}
.gallery-card:focus {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.gallery-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1a1a;
}
.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.gallery-card:hover .gallery-card-img img {
    transform: scale(1.04);
}

.gallery-card-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(21,21,21,.85);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 5px 10px;
    border-radius: 2px;
}
.gallery-card-count i {
    margin-right: 5px;
    opacity: .85;
}

.gallery-card-body {
    padding: 16px 18px 18px;
}
.gallery-cat-badge {
    display: inline-block;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.gallery-cat-badge--a-tym {
    background: rgba(226,30,34,.12);
    color: var(--red);
}
.gallery-cat-badge--mladez {
    background: rgba(30,126,52,.12);
    color: #1e7e34;
}
.gallery-cat-badge--zeny {
    background: rgba(0,90,156,.12);
    color: #005a9c;
}
.gallery-cat-badge--klub {
    background: rgba(92,51,0,.12);
    color: #5c3300;
}

.gallery-card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dark);
    margin: 0 0 6px;
    line-height: 1.25;
}
.gallery-card:hover .gallery-card-title {
    color: var(--red);
}

.gallery-card-date {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    color: #999;
}

.gallery-empty {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 3px;
    border: 1px dashed #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #777;
}
.gallery-empty.is-visible {
    display: block;
    grid-column: 1 / -1;
}

/* Jednoduchý lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.gallery-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery-lightbox-stage-wrap {
    display: flex;
    justify-content: center;
}
.gallery-lightbox-stage {
    display: flex;
    justify-content: center;
}
.gallery-lightbox img#lightboxImg {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
    display: block;
}
.gallery-lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9001;
}
.gallery-lightbox-prev { left: 16px; }
.gallery-lightbox-next { right: 16px; }
.gallery-lightbox-nav:hover {
    background: var(--red);
}
.gallery-lightbox-nav:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.gallery-lightbox:not(.has-multiple) .gallery-lightbox-nav,
.gallery-lightbox:not(.has-multiple) .gallery-lightbox-counter,
.gallery-lightbox:not(.has-multiple) .gallery-lightbox-thumbs {
    display: none !important;
}
.gallery-lightbox-caption {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,.85);
    text-align: center;
    margin-top: 14px;
    padding: 0 12px;
}
.gallery-lightbox-counter {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    text-align: center;
    margin-top: 10px;
}
.gallery-lightbox-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    padding: 4px 0 2px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.gallery-lightbox-thumbs::-webkit-scrollbar {
    height: 6px;
}
.gallery-lightbox-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.25);
    border-radius: 3px;
}
.gallery-lightbox-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 48px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background: #222;
    opacity: .65;
    transition: opacity .2s, border-color .2s;
}
.gallery-lightbox-thumb:hover,
.gallery-lightbox-thumb:focus {
    opacity: 1;
    outline: none;
}
.gallery-lightbox-thumb.is-active {
    opacity: 1;
    border-color: var(--red);
}
.gallery-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1px;
}
.gallery-lightbox-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-lightbox-close:hover {
    background: var(--red);
}
@media (max-width: 600px) {
    .gallery-lightbox-close {
        top: auto;
        bottom: -52px;
        right: 50%;
        transform: translateX(50%);
    }
    .gallery-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .gallery-lightbox-prev { left: 6px; }
    .gallery-lightbox-next { right: 6px; }
    .gallery-lightbox img#lightboxImg {
        max-height: 62vh;
        max-width: 80vw;
    }
    .gallery-lightbox-thumb {
        width: 56px;
        height: 40px;
    }
}

/* ── Gallery detail page ─────────────────────────────────────────────────── */

.gal-detail-hero {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 28px;
    background: #111;
}
.gal-detail-hero img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.gal-detail-head {
    margin-bottom: 36px;
}

.gal-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.gal-detail-meta-item {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    color: #888;
}
.gal-detail-meta-item i {
    color: var(--red);
    margin-right: 5px;
}

.gal-detail-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    line-height: 1.05;
    margin: 0 0 16px;
}

.gal-detail-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    max-width: 720px;
}
.gal-detail-desc p { margin-bottom: 12px; }
.gal-detail-desc p:last-child { margin-bottom: 0; }
.gal-detail-desc strong { color: #111; }
.gal-detail-desc h2 { font-family: 'Roboto Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 20px 0 8px; }
.gal-detail-desc h3 { font-family: 'Roboto Condensed', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; margin: 16px 0 6px; }

@media (max-width: 767px) {
    .gal-detail-hero { max-height: 240px; }
    .gal-detail-hero img { max-height: 240px; }
    .gal-detail-title { font-size: 28px; }
}
