/* Podtržítko */

#mod-menu111 > li > a {
    position: relative;
    display: inline-block;
}

#mod-menu111 > li > a::after {
    content: "";
    position: absolute;
    left: -4px;
    bottom: 0;

    width: calc(100% + 8px);
    height: 10px;

    background: url("/images/underline_red.svg") center / 100% 100% no-repeat;

    pointer-events: none;

    /* Animace zleva doprava */
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s ease-out;
}

#mod-menu111 > li:hover > a::after,
#mod-menu111 > li.active > a::after,
#mod-menu111 > li.current > a::after {
    transform: scaleX(1);
}
/* zalamovací menu */

.ba-nav-menu-items {
    display: flex;
    flex-wrap: wrap;
       
}

#mod-menu112 {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: px;
  justify-content: center;
}


/* Rozestupy mezi social ikonami */
.ba-item-social-icons .ba-icon-wrapper a:not(:last-child) {
    margin-right: 20px !important;
}


/* bold bolder */
.ba-item-text strong,
.ba-item-text b {
    font-weight: 900 !important;
}

/* hr */
hr {
    border: 0;
    height: 1px;
    background: #295e3e;
    margin: 10px 0;
}

/* shadow */
.png-stin img {
    filter: drop-shadow(10px 10px 8px rgba(0, 0, 0, 0.7));
}

/*shadow text*/

.shadow-class {
text-shadow: 3px 3px 6px #000000;
}

/* Shape divider nad sliderem #item-17815403940 */
 .ba-shape-divider{
    z-index: 2 !important;
    pointer-events: none !important;
}

/* Brush nadpisy */
.brush-black .content-text,
.brush-red .content-text,
.brush-white .content-text{
    display: table;
    margin: 0 auto;

    padding: 19px 80px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* Černý brush */
.brush-black .content-text{
    background-image: url('/images/brush_black.svg');
}

/* Červený brush */
.brush-red .content-text{
    background-image: url('/images/brush_red.svg');
}

/* Bílý brush */
.brush-white .content-text{
    background-image: url('/images/brush_white.svg');
}

/* HISTORIE KAPELY – obrázky vložené v textu */

.historie-kapely img {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
}

/* obrázek vlevo */
.historie-kapely img.history-img-left {
    margin: 5px 12px 12px 0 !important;
}

/* obrázek vpravo */
.historie-kapely img.history-img-right {
    margin: 5px 0 12px 12px !important;
}

/* LIGHTBOX HISTORIE */

.history-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease;
    cursor: zoom-out;
}

.history-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.history-lightbox img {
    display: block;

    max-width: 90vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);

    cursor: default;
}

.history-lightbox-close {
    position: fixed;
    top: 18px;
    right: 28px;

    font-size: 48px;
    line-height: 1;

    color: #fff;

    cursor: pointer;
    user-select: none;
}

body.history-lightbox-open {
    overflow: hidden;
}


/* One Page Menu – ikona napravo */
a[href="#item-1786354262311"] {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

a[href="#item-1786354262311"] .ba-menu-item-icon {
    order: 1;
    margin: 0 !important;
}

/* oprava zúžených obrázků na mobilu */

/* Pouze textove bloky s Custom Class Suffix: tn-novinky */
.tn-novinky {
    --tn-news-image-width: 34%;
    --tn-news-gap: 28px;
}

.tn-novinky .tn-news-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px 0;
    margin: 0;
}

.tn-novinky .tn-news-title {
    margin: 0 !important;
    text-align: left !important;
}

.tn-novinky .tn-news-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: var(--tn-news-gap);
    min-width: 0;
}

.tn-novinky .tn-news-body.tn-news-has-image {
    grid-template-columns: minmax(0, var(--tn-news-image-width)) minmax(0, 1fr);
}

.tn-novinky .tn-news-media,
.tn-novinky .tn-news-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tn-novinky .tn-news-media > *,
.tn-novinky .tn-news-copy > :first-child {
    margin-top: 0 !important;
}

.tn-novinky .tn-news-media > *,
.tn-novinky .tn-news-copy > :last-child {
    margin-bottom: 0 !important;
}

.tn-novinky .tn-news-media img {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

.tn-novinky .tn-news-zoom {
    cursor: zoom-in;
}

.tn-novinky .tn-news-media .tn-news-zoom {
    display: block;
}

.tn-novinky .tn-news-zoom:focus-visible {
    outline: 3px solid #e01910;
    outline-offset: 4px;
}

.tn-novinky .tn-news-divider {
    display: block;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin: 28px 0 !important;
}

/* Mobil: nadpis, obrazek, text, cara. */
@media (max-width: 767px) {
    .tn-novinky .tn-news-body.tn-news-has-image {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .tn-novinky .tn-news-media {
        width: 100%;
        max-width: 480px;
    }
}

/* Samostatny lightbox; nezasahuje do lightboxu Historie. */
dialog.tn-news-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    margin: 0;
    padding: 56px 20px 24px;
    border: 0;
    background: transparent;
    color: #fff;
}

dialog.tn-news-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog.tn-news-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

dialog.tn-news-lightbox img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
}

dialog.tn-news-lightbox .tn-news-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 40px/44px Arial, sans-serif;
    cursor: pointer;
}

html.tn-news-lightbox-open {
    overflow: hidden;
}

/* NOVINKY: doplnek pro pracovni plochu Gridboxu.
   Pridat ZA stavajici CSS. Puvodni CSS a JavaScript ponechat.
   Trida tn-novinky na textovem prvku zustava stejna.
   Pravidla pracuji jen v editoru a jen s dosud neseskupenym obsahem. */

:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) {
    display: flow-root;
}

/* Text drzi pravy sloupec i pod urovni spodni hrany obrazku. */
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > p {
    width: auto !important;
    margin-left: calc(var(--tn-news-image-width, 34%) + var(--tn-news-gap, 28px)) !important;
    margin-right: 0 !important;
    overflow-wrap: anywhere;
}

/* Samostatny obrazek vlevo, vcetne starsich obrazku vlozenych do H4. */
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > :is(p, h4):has(img) {
    float: left !important;
    clear: left;
    width: var(--tn-news-image-width, 34%) !important;
    max-width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0;
}

:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > :is(p, h4):has(img) img {
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* Nadpis pres celou sirku. Posledni dva selektory jsou pro stare nadpisy v P. */
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > h4:not(:has(img)),
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > p:first-child:not(:has(img)),
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > hr + p:not(:has(img)) {
    float: none !important;
    clear: both !important;
    width: auto !important;
    margin: 0 0 16px !important;
    text-align: left !important;
}

/* Oddelovac musi vzdy az pod obrazek i text. */
:is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > hr {
    display: block;
    float: none !important;
    clear: both !important;
    width: 100%;
    box-sizing: border-box;
    margin: 28px 0 !important;
}

/* Mobilni pracovni plocha. */
@media (max-width: 767px) {
    :is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > p {
        margin-left: 0 !important;
    }

    :is(body.editor, body.gridbox) .tn-novinky .content-text:not(:has(> .tn-news-item)) > :is(p, h4):has(img) {
        float: none !important;
        clear: both;
        width: 100% !important;
        max-width: 480px !important;
        margin: 0 0 18px !important;
    }
}

/* Gridbox muze mobilni nahled zapnout take tridou na BODY. */
:is(body.editor, body.gridbox):is(.phone, .phone-portrait) .tn-novinky .content-text:not(:has(> .tn-news-item)) > p {
    margin-left: 0 !important;
}

:is(body.editor, body.gridbox):is(.phone, .phone-portrait) .tn-novinky .content-text:not(:has(> .tn-news-item)) > :is(p, h4):has(img) {
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 0 18px !important;
}
