/* ==================================
   BAZAR DETAIL – GALERIE JAKO KARTY
================================== */

.bazar-detail-gallery,
.gallery {
    width: 100%;
    max-width: 1180px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery .img,
.gallery-item {
    float: none;
    width: auto;
    height: auto;
    margin: 0;

    background: #fff;
    border-radius: 22px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.gallery .img:hover,
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,.14);
}

.gallery .img a,
.gallery-link {
    display: block;
    width: 100%;
    padding: 0;
    border: none !important;
    overflow: hidden;
}

.gallery .img a:hover {
    border: none !important;
}

.gallery img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    border: none;

    transition: transform .35s ease;
}

.gallery .img:hover img {
    transform: scale(1.05);
}

/* nadpis / komentář galerie */

.gallery-title,
.gallery h3 {
    margin: 0 0 32px 0;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    color: #222;
}

.gallerycomment {
    max-width: 820px;
    margin: 0 auto 28px auto;
    text-align: center;
    line-height: 1.7;
    color: #555;
    font-size: 16px;
}

.gallery-count {
    text-align: center;
    margin: 0 0 24px 0;
    color: #888;
    font-size: 14px;
}

.gallery-item-title {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* navigace */

.gallery .pagenavigation {
    height: auto;
    margin: 0 0 32px 0;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.gallery .prevpage,
.gallery .nextpage,
.gallery .parentlink,
.gallery .pagelinks {
    float: none;
}

.gallery .prevpage a,
.gallery .nextpage a,
.gallery .parentlink a,
.gallery .prevpage em,
.gallery .nextpage em {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    height: auto;
    min-width: 44px;

    padding: 11px 18px;
    margin: 0;

    text-indent: 0;
    overflow: visible;

    background: #1f1f1f;
    color: #fff;
    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.gallery .prevpage a,
.gallery .prevpage em,
.gallery .nextpage a,
.gallery .nextpage em,
.gallery .parentlink a {
    background-image: none !important;
}

.gallery .prevpage a:hover,
.gallery .nextpage a:hover,
.gallery .parentlink a:hover {
    background: #b00000;
    color: #fff;
}

.gallery .pagelinks {
    border-right: none;
    display: flex;
    gap: 6px;
}

.gallery .pagelinks a,
.gallery .pagelinks em {
    margin: 0;
    padding: 9px 13px;
    border-left: none;
    border-radius: 999px;

    background: #f2f2f2;
    color: #444;

    font: 600 13px Arial, sans-serif;
    text-decoration: none;
}

.gallery .pagelinks a:hover {
    background: #b00000;
    color: #fff;
}

.gallery .pagelinks em {
    background: #1f1f1f;
    color: #fff;
}

.galleryclear {
    clear: both;
}

/* responzivita */

@media (max-width: 1100px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery img {
        height: 300px;
    }
}

@media (max-width: 620px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 330px;
    }

    .gallery-title,
    .gallery h3 {
        font-size: 24px;
    }
}

/* ==================================
   OPRAVA LIGHTBOXU – ZOBRAZENÍ NAD STRÁNKOU
================================== */

.lightboxOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;

    width: 100% !important;
    height: 100% !important;

    z-index: 99998 !important;

    background: rgba(0,0,0,0.88) !important;
}

.lightbox {
    position: fixed !important;

    top: 50% !important;
    left: 50% !important;

    width: auto !important;
    max-width: 95vw !important;

    transform: translate(-50%, -50%) !important;

    z-index: 99999 !important;
}

.lb-outerContainer {
    max-width: 95vw !important;
    max-height: 85vh !important;

    background: #fff;
    border-radius: 18px;

    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.lightbox .lb-image {
    max-width: 92vw !important;
    max-height: 78vh !important;

    width: auto !important;
    height: auto !important;

    object-fit: contain !important;

    border-radius: 14px;
}