/* Dialog na cestě - úprava headeru */

@media (min-width: 1200px) {

  /* Header využije celou šířku kontejneru efektivněji */
  .header-block-2 .header-wrap {
    gap: 24px;
  }

  /* Logo/název držet kompaktní */
  .header-block-2 .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0;
    min-width: 160px;
  }

  /* Menu dostane všechen zbývající prostor */
  .header-block-2 .t4-navbar {
    flex: 1 1 auto;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Hlavní menu na jeden řádek */
  .header-block-2 .navbar-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .header-block-2 .navbar-nav > li > a {
    white-space: nowrap;
  }

  /* O něco menší rozestupy mezi položkami */
  .header-block-2 .navbar-nav > li > .nav-link {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Pravá část nezabírá prostor, pokud v ní nic není */
  .header-block-2 .t4-header-r {
    flex: 0 0 auto;
  }
}

/* Lehce kompaktnější název webu */
.header-block-2 .navbar-brand.logo-text .site-name {
  margin-bottom: 4px;
}

.header-block-2 .navbar-brand.logo-text .site-slogan {
  font-size: 0.9rem;
}


/* Dialog na cestě - jemné doladění obsahu */

.t4-main-body {
  padding-top: 32px;
}

.page-header h1,
.componentheading,
.blog-featured h1,
.blog h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.blog-item,
.items-leading > div,
.items-row > div {
  margin-bottom: 2.5rem;
}

.sidebar-r .t4-module,
.sidebar-r .moduletable {
  margin-bottom: 2rem;
}

.sidebar-r .module-title,
.sidebar-r h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.sidebar-r p {
  line-height: 1.55;
}

.article-body .legacy-image-caption,
.desc-article .legacy-image-caption,
.item-intro .legacy-image-caption {
    display: block;
    clear: both;
    width: 100%;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #666;
    font-style: italic;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

html.dark-active .article-body .legacy-image-caption,
html.dark-active .desc-article .legacy-image-caption,
html.dark-active .item-intro .legacy-image-caption {
    color: #aaa;
}

.acm-gallery.style-1 .item-media {
    margin-bottom: 0 !important;
}

.acm-gallery.style-1 .item-media img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767.98px) {
    .acm-gallery.style-1 .item-media img {
        height: 120px;
    }
}

.dialog-logo {
    color: #111;
}

.dark-active .dialog-logo {
    color: #fff;
}

.dialog-logo svg {
    display: block;
    width: 130px;
    height: auto;
    max-height: 70px;
}

#t4-header .dialog-logo svg {
    width: 200px;
}


.dark-active .dialog-logo,
.dark-active a .dialog-logo,
.dark-active a:hover .dialog-logo,
.dark-active a:focus .dialog-logo {
    color: #fff !important;
}

.dialog-logo,
a .dialog-logo,
a:hover .dialog-logo,
a:focus .dialog-logo,
a:active .dialog-logo {
    color: #111 !important;
}


/* spodní logo */
.dialog-logo-bottom,
.dialog-logo-bottom a,
.dialog-logo-bottom a:hover,
.dialog-logo-bottom a:focus,
.dialog-logo-bottom a:active,
.dialog-logo-bottom .dialog-logo {
    color: #111 !important;
}

.dialog-logo-bottom .dialog-logo svg {
    width: 120px  !important;
    height: auto;
}

/* dark mode */
.dark-active .dialog-logo-bottom,
.dark-active .dialog-logo-bottom a,
.dark-active .dialog-logo-bottom a:hover,
.dark-active .dialog-logo-bottom a:focus,
.dark-active .dialog-logo-bottom a:active,
.dark-active .dialog-logo-bottom .dialog-logo {
    color: #fff !important;
}


/* Obrázek v úvodníku - jednotný formát 16:9 */
.com-content-category-blog .item-image {
    width: 420px !important;
    min-width: 420px;
    height: 236px;
    overflow: hidden;
    margin-right: 24px;
    margin-bottom: 16px;
}

.com-content-category-blog .item-image img {
    display: block;
    width: 420px !important;
    height: 236px !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

/* mobil */
@media (max-width: 767.98px) {
    .com-content-category-blog .item-image {
        float: none !important;
        width: 100% !important;
        min-width: 0;
        height: auto;
        aspect-ratio: 16 / 9;
        margin-right: 0;
    }

    .com-content-category-blog .item-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }
}


/* Populární články – jednotné čtvercové náhledy */
#Mod119 .mostread-item .item-media {
    width: 86px;
    min-width: 86px;
    height: 86px;
    overflow: hidden;
}

#Mod119 .mostread-item .item-media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: center;
}

/* =========================================================
   MEMBERS / CV BLOG
   ========================================================= */

.blog-members {
    max-width: 980px;
    margin: 0 auto;
}


/* Joomla blog wrapper */

.blog-members .blog-items {
    display: block !important;
}

.blog-members .blog-item {
    width: 100%;
    margin: 0 0 60px;
    padding: 0;
}


/* Jeden člověk */

.blog-members .member-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 32px;
    align-items: center;

    width: 100%;
    margin: 0;
}


/* FOTO */

.blog-members .member-photo {
    width: 140px;
    height: 140px;
    margin: 0;
}

.blog-members .member-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-members .member-photo img {
    display: block;

    width: 140px;
    height: 140px;

    max-width: none;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.blog-members .member-photo a:hover img {
    transform: scale(1.025);
    opacity: .92;
}


/* TEXT */

.blog-members .member-content {
    min-width: 0;
    padding: 0;
}


/* NADPIS */

.blog-members .member-title {
    margin: 0 0 14px;
    padding: 0;

    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;

    text-transform: uppercase;
}

.blog-members .member-title a {
    color: inherit;
    text-decoration: none;
}

.blog-members .member-title a:hover {
    text-decoration: underline;
}


/* PEREX */

.blog-members .member-intro {
    max-width: 560px;

    font-size: 16px;
    line-height: 1.55;
}

.blog-members .member-intro > :first-child {
    margin-top: 0;
}

.blog-members .member-intro > :last-child {
    margin-bottom: 0;
}


/* PAGINACE */

.blog-members .com-content-category-blog__navigation {
    margin-top: 40px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .blog-members .member-item {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 28px;
    }

    .blog-members .member-photo,
    .blog-members .member-photo img {
        width: 120px;
        height: 120px;
    }

    .blog-members .member-title {
        font-size: 29px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .blog-members .blog-item {
        margin-bottom: 55px;
    }

    .blog-members .member-item {
        display: block;
        text-align: center;
    }

    .blog-members .member-photo {
        width: min(140px, 78vw);
        height: min(140px, 78vw);

        margin: 0 auto 20px;
    }

    .blog-members .member-photo img {
        width: 100%;
        height: 100%;
    }

    .blog-members .member-title {
        margin-bottom: 14px;
        font-size: 28px;
    }

    .blog-members .member-intro {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

}


@media (max-width: 400px) {

    .blog-members .member-photo {
        width: 220px;
        height: 220px;
    }

    .blog-members .member-title {
        font-size: 25px;
    }

}

.showtime-gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

.showtime-gallery .showtime-image {
    display: block !important;
    align-self: flex-start !important;
}


/* Showtime – popisky stejně jako u obrázku článku */
.showtime-gallery .legacy-image-caption {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
    color: #777;
}

.com-content-category-blog__children > h3 {
    display: none;
}

/* Off-canvas – menší mezery mezi moduly */
.t4-offcanvas .t4-off-canvas-body .t4-module {
    margin-top: 0;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
}

.t4-offcanvas .t4-off-canvas-body .t4-module + .t4-module {
    margin-top: 4px;
}

/* odstranit případné mezery z vnitřních obalů modulů */
.t4-offcanvas .t4-module .module-inner,
.t4-offcanvas .t4-module .module-ct {
    margin-top: 0;
    margin-bottom: 0;
}

/* MEMBERS LIST / A-Z */
.members-list {
    max-width: 980px;
    margin: 0 auto;
}

.members-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 28px 0 34px;
}

.members-alphabet__letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid currentColor;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.members-alphabet a.members-alphabet__letter:hover {
    opacity: .7;
    text-decoration: none;
}

.members-alphabet__letter.is-active {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.members-alphabet__letter.is-empty {
    opacity: .25;
    cursor: default;
}

.members-letter-heading {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.members-name-list {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 50px;
}

.members-name-list li {
    break-inside: avoid;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .10);
}

.members-name-list a {
    font-size: 18px;
    line-height: 1.35;
    text-decoration: none;
}

.members-name-list a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .members-alphabet { gap: 5px; }
    .members-alphabet__letter { width: 31px; height: 31px; font-size: 14px; }
    .members-name-list { columns: 1; }
    .members-name-list a { font-size: 17px; }
}

/* Obsah vícestránkového článku – vpravo */
.layout-4 .article-toc {
    float: right;
    width: 280px;
    max-width: 35%;
    margin: 0 0 1.5rem 2rem;
}

.layout-4 .article-toc .article-index {
    float: none !important;
    width: 100%;
    margin: 0 !important;
}

.layout-4 .article-body::after {
    content: "";
    display: block;
    clear: both;
}

@media (max-width: 767px) {
    .layout-4 .article-toc {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 1.5rem 0;
    }
}