/*
 * LUKÁŠ HORKÝ · HLAVNÍ STYLY OSOBNÍHO WEBU
 *
 * Jak soubor upravovat:
 * - Společné hodnoty jsou níže; další pravidla hledejte podle číslovaných sekcí.
 * - Responzivní úpravy jsou u příslušné komponenty, nikoli na konci souboru.
 * - Dodržujte pořadí pravidel v sekci: některé varianty přepisují základní vzhled.
 * - lh- označuje osobní web. Sdílená média mají wz- v embedded-media.css.
 * - Detaily tvůrčích projektů doplňuje creative-projects.css.
 * - Po změně zvyšte verzi odkazu na CSS v lukashorkyLayout.phtml.
 */

:root {
    /* Rodina písma a maximální šířka celé stránky. */
    --lh-font-body: 'Lukash Sans', Arial, sans-serif;
    --lh-page-width: 1280px;
    /* Nadpis h1: plynulá velikost, váha, řádkování a mezery mezi písmeny. */
    --lh-title-size: clamp(36px, 6vw, 64px);
    --lh-title-weight: 700;
    --lh-title-leading: 1.1;
    --lh-title-tracking: -.03em;
}

/* ==========================================================================
   01 · ZÁKLAD A PÍSMA
   Lokální fonty se načítají bez externích služeb. .lh-site je kořen osobního webu.
   ========================================================================== */

* {
    box-sizing: border-box;
}

/* Základ dokumentu; osobní web následně používá rodinu písma z .lh-site. */
body {
    margin: 0;
    background: #fff;
    color: #202020;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-underline-offset: .25em;
}

button {
    font: inherit;
    cursor: pointer;
}

@font-face {
    font-family: 'Lukash Sans';
    src: url('/fonts/lukashorky/lukashsansregular-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lukash Sans';
    src: url('/fonts/lukashorky/lukashorkysansbold-webfont.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lukash Sans';
    src: url('/fonts/lukashorky/lukashsansitalic-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Lukash Wordmark';
    src: url('/fonts/lukashorky/icons-lukashorky-webfont.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.lh-site {
    font-family: var(--lh-font-body);
    line-height: 1.6;
    color: #161616;
}

@font-face {
    font-family: lh-social-icons;
    src: url('/css/fonts/bootstrap-icons.woff2') format('woff2');
    font-display: block;
}

/* ==========================================================================
   02 · SPOLEČNÁ TYPOGRAFIE
   Názvy stránek h1 upravujte zde, nikoli v jednotlivých šablonách.
   Velikost na mobilu a desktopu řídí proměnné na začátku souboru.
   ========================================================================== */

.lh-eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #666;
}

.lh-lead {
    max-width: 760px;
    font-size: 21px;
    line-height: 1.65;
}

.lh-body {
    max-width: 760px;
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 48px;
}

.lh-body img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .lh-lead {
        font-size: 18px;
    }
}

.lh-site h1 {
    font-family: inherit;
    font-size: var(--lh-title-size);
    font-weight: var(--lh-title-weight);
    line-height: var(--lh-title-leading);
    letter-spacing: var(--lh-title-tracking);
    margin: 16px 0 28px;
}

.lh-site .lh-lead,
.lh-site .lh-static-lead {
    font-size: 20px;
    line-height: 1.65;
}

@media (max-width: 700px) {
    .lh-site .lh-lead,
    .lh-site .lh-static-lead {
        font-size: 18px;
    }
}

/* ==========================================================================
   03 · ROZVRŽENÍ, HLAVIČKA A PATIČKA
   Sdílená šířka stránky, okraje a logo. Hlavička zůstává při posouvání nahoře.
   ========================================================================== */

.lh-header,
.lh-main,
.lh-footer {
    max-width: var(--lh-page-width);
    margin: auto;
    padding: 32px clamp(20px, 5vw, 72px);
}

.lh-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
}

.lh-brand {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.lh-brand span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 7px;
    color: #666;
}

.lh-header nav {
    font-size: 14px;
}

.lh-back {
    font-size: 14px;
    color: #666;
}

.lh-intro {
    padding: 48px 0 36px;
}

.lh-footer {
    margin-top: 72px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

@media (max-width: 640px) {
    .lh-intro {
        padding: 32px 0;
    }

    .lh-footer {
        gap: 18px;
        flex-direction: column;
    }
}

.lh-site .lh-header {
    top: 0;
    z-index: 20;
    max-width: none;
    padding: 12px clamp(20px, 3vw, 48px);
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    align-items: center;
    flex-wrap: nowrap;
    min-height: 90px;
    gap: 28px;
    padding-block: 16px;
}

.lh-site .lh-brand {
    display: block;
    flex: 0 0 auto;
    color: #111;
}

.lh-site .lh-brand .lh-wordmark {
    font-family: 'Lukash Wordmark';
    font-size: 50px;
    line-height: .85;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: inherit;
    margin: 0;
}

.lh-site .lh-main {
    padding-top: 40px;
    min-height: 65vh;
}

.lh-site .lh-footer {
    padding-top: 32px;
    padding-bottom: 40px;
    align-items: flex-start;
    gap: 32px;
    font-size: 15px;
    margin-top: 32px;
}

.lh-footer-name {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

.lh-footer p {
    margin: 6px 0 16px;
}

.lh-footer-links {
    text-align: right;
}

.lh-footer-links nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 20px;
    margin-top: 20px;
    max-width: 520px;
}

@media (max-width: 700px) {
    .lh-site .lh-brand .lh-wordmark {
        font-size: 44px;
    }

    .lh-site .lh-main {
        padding-top: 24px;
    }

    .lh-site .lh-footer {
        flex-direction: column;
    }

    .lh-footer-links {
        text-align: left;
    }

    .lh-footer-links nav {
        justify-content: flex-start;
    }
}

@media (max-width: 1299px) {
    .lh-site .lh-header {
        min-height: 78px;
        padding: 14px clamp(20px, 5vw, 40px);
        justify-content: space-between;
    }
}

@media (max-width: 400px) {
    .lh-site .lh-header {
        gap: 16px;
    }
}

.lh-preview-notice {
    padding: 16px 20px;
    margin: 0 0 28px;
    background: #f5f1e8;
    border: 1px solid #dfd5be;
    font-size: 15px;
    line-height: 1.6;
}

.lh-preview-notice a {
    margin-left: 12px;
}

/* ==========================================================================
   04 · HLAVNÍ MENU A PODMENU
   Desktop od 1300 px; pod touto šířkou se používá mobilní <details>.
   aria-current="page" značí stránku, "location" její nadřazenou sekci.
   Otevření, Escape a návrat fokusu obsluhují lukashorky-site.js a lukashorky-submenus.js.
   ========================================================================== */

.lh-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.25vw, 24px);
}

.lh-navigation a {
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    padding: 12px 0;
    color: #333;
}

.lh-navigation a:hover,
.lh-navigation a:is([aria-current="page"], [aria-current="location"]) {
    color: #202020;
}

.lh-navigation a:is([aria-current="page"], [aria-current="location"])::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: currentColor;
}

@media (max-width: 1299px) {
    .lh-navigation {
        flex: 1 0 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 24px;
        padding: 12px 0;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
    }

    .lh-navigation a {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
        white-space: normal;
    }

    .lh-navigation a:is([aria-current="page"], [aria-current="location"])::after {
        display: none;
    }
}

.lh-desktop-navigation {
    gap: clamp(12px, 1.3vw, 24px);
}

.lh-desktop-navigation a {
    letter-spacing: .015em;
    color: #555;
    padding-block: 14px;
    transition: color .15s ease;
    font-size: 16px;
}

.lh-desktop-navigation a:hover,
.lh-desktop-navigation a:is([aria-current="page"], [aria-current="location"]) {
    color: #111;
}

.lh-desktop-navigation a:is([aria-current="page"], [aria-current="location"])::after {
    height: 1px;
    bottom: 7px;
    background: #111;
}

.lh-mobile-menu {
    display: none;
}

@media (max-width: 1299px) {
    .lh-desktop-navigation {
        display: none;
    }

    .lh-mobile-menu {
        display: block;
        flex: 0 0 auto;
    }

    .lh-mobile-menu:not([open]) .lh-mobile-navigation {
        display: none;
    }

    .lh-mobile-menu summary {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 44px;
        padding: 8px 0 8px 16px;
        cursor: pointer;
        list-style: none;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #555;
        user-select: none;
    }

    .lh-mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .lh-menu-mark {
        position: relative;
        display: block;
        width: 16px;
        height: 16px;
    }

    .lh-menu-mark::before,
    .lh-menu-mark::after {
        content: '';
        position: absolute;
        top: 7px;
        left: 1px;
        width: 14px;
        height: 1px;
        background: currentColor;
    }

    .lh-menu-mark::after {
        transform: rotate(90deg);
        transition: transform .15s ease;
    }

    .lh-mobile-menu[open] .lh-menu-mark::after {
        transform: rotate(0deg);
    }

    .lh-mobile-menu[open] summary {
        color: #111;
    }

    .lh-mobile-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 25;
        display: grid;
        gap: 0;
        padding: 16px clamp(24px, 6vw, 64px) 24px;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        border-bottom: 1px solid #e8e8e8;
        box-shadow: 0 18px 30px #0000000d;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .lh-mobile-navigation a {
        position: relative;
        display: block;
        padding: 12px 32px 12px 0;
        border-bottom: 1px solid #e8e8e8;
        color: #333;
        font-size: 25px;
        line-height: 1.3;
        text-decoration: none;
        font-weight: 400;
        letter-spacing: 0;
        min-height: 48px;
    }

    .lh-mobile-navigation a:last-child {
        border-bottom: 0;
    }

    .lh-mobile-navigation a:hover,
    .lh-mobile-navigation a:is([aria-current="page"], [aria-current="location"]) {
        color: #111;
    }

    .lh-mobile-navigation a:is([aria-current="page"], [aria-current="location"]) {
        font-weight: 700;
    }

    .lh-mobile-navigation a:is([aria-current="page"], [aria-current="location"])::after {
        content: '↗';
        position: absolute;
        right: 0;
        top: 12px;
        font-weight: 400;
        font-size: 23px;
    }
}

@media (max-width: 400px) {
    .lh-mobile-navigation a {
        font-size: 23px;
    }
}

.lh-nav-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3px;
}

.lh-submenu>summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}

.lh-submenu>summary::-webkit-details-marker {
    display: none;
}

.lh-submenu[open]>summary span {
    transform: rotate(180deg);
}

.lh-submenu:not([open])>.lh-submenu-links {
    display: none;
}

.lh-submenu-links {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    min-width: 230px;
    max-width: min(360px, 85vw);
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 12px 24px #00000012;
}

.lh-desktop-navigation .lh-submenu-links a {
    display: block;
    white-space: normal;
    padding: 10px 0;
    line-height: 1.4;
}

.lh-navigation a[aria-current="location"] {
    color: #111;
}

@media (max-width: 1299px) {
    .lh-mobile-navigation .lh-nav-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0;
        border-bottom: 1px solid #e8e8e8;
    }

    .lh-mobile-navigation .lh-nav-group:last-child {
        border-bottom: 0;
    }

    .lh-mobile-navigation .lh-nav-group>a {
        border-bottom: 0;
    }

    .lh-mobile-navigation .lh-submenu {
        display: contents;
    }

    .lh-mobile-navigation .lh-submenu>summary {
        grid-column: 2;
        grid-row: 1;
        min-width: 48px;
        padding: 8px;
        font-size: 22px;
        letter-spacing: 0;
    }

    .lh-mobile-navigation .lh-submenu-links {
        grid-column: 1 / -1;
        position: static;
        min-width: 0;
        max-width: none;
        padding: 0 0 12px 20px;
        border: 0;
        box-shadow: none;
    }

    .lh-mobile-navigation .lh-submenu-links a {
        font-size: 19px;
        min-height: 44px;
    }
}

.lh-desktop-navigation .lh-submenu-heading {
    font-size: 16px;
    color: #555;
    gap: 6px;
}

@media (max-width: 1299px) {
    .lh-mobile-navigation .lh-submenu>summary.lh-submenu-heading {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding: 12px 0;
        font-size: 25px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: none;
    }
}

/* ==========================================================================
   05 · ÚVODNÍ STRÁNKA A NOVINKY
   Úvod s portrétem, bloky novinek a společné odkazy mezi sekcemi.
   ========================================================================== */

.lh-home-intro {
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 0 64px;
    display: block;
    padding: 28px 0 56px;
}

.lh-home-intro .lh-eyebrow {
    grid-column: 1/-1;
    margin: 0 0 20px;
}

.lh-home-intro h1 {
    margin: 0;
    margin-bottom: 26px;
}

.lh-home-intro>p:last-child {
    font-size: 20px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
    color: #666;
}

.lh-home-section {
    margin-bottom: 72px;
}

.lh-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    border-top: 1px solid #ddd;
    padding-top: 24px;
    margin-bottom: 28px;
}

.lh-section-heading h2 {
    font-size: 28px;
    margin: 0;
    font-weight: 700;
}

.lh-section-heading>a,
.lh-read-more {
    color: #202020;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}

.lh-section-heading>a:hover,
.lh-read-more:hover {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.lh-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}

.lh-news-item {
    min-width: 0;
}

.lh-news-item>a {
    display: block;
}

.lh-news-item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center;
}

.lh-news-featured {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 16px;
}

.lh-news-featured img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.lh-news-date {
    font-size: 14px;
    color: #666;
    margin: 20px 0 8px;
}

.lh-news-item h3 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 16px;
}

.lh-news-featured h3 {
    font-size: 34px;
}

.lh-news-item h3 a {
    text-decoration: none;
}

.lh-news-item h3 a:hover {
    color: #202020;
}

.lh-news-copy>p:not(.lh-news-date) {
    color: #555;
    line-height: 1.7;
}

@media (max-width: 700px) {
    .lh-home-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lh-home-intro .lh-eyebrow {
        margin: 0;
    }

    .lh-home-intro>p:last-child {
        font-size: 18px;
    }

    .lh-news-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lh-news-featured {
        grid-template-columns: 1fr;
        gap: 4px;
        margin: 0;
    }

    .lh-news-featured h3 {
        font-size: 28px;
    }

    .lh-news-item img {
        height: auto;
        max-height: 440px;
    }

    .lh-section-heading h2 {
        font-size: 24px;
    }

    .lh-section-heading>a {
        font-size: 14px;
    }

    .lh-home-section {
        margin-bottom: 48px;
    }
}

.lh-home-intro--portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 56px;
}

.lh-home-intro-text {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.75;
    color: #444;
}

.lh-home-intro-text p {
    margin: 0 0 18px;
}

.lh-home-intro-text p:first-child {
    font-size: 21px;
    color: #202020;
    line-height: 1.65;
}

.lh-home-portrait {
    margin: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    width: 100%;
}

.lh-home-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.65);
    transform-origin: 50% 8%;
}

@media (max-width: 900px) {
    .lh-home-intro--portrait {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .lh-home-intro--portrait {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .lh-home-portrait {
        grid-row: 1;
        width: 170px;
    }

    .lh-home-intro {
        padding-top: 12px;
    }

    .lh-home-intro-text p:first-child {
        font-size: 20px;
    }
}

/* ==========================================================================
   06 · PORTFOLIO A PROHLÍŽEČ FOTOGRAFIÍ
   data-gallery vybírá grid, mosaic nebo filmstrip.
   --photo-ratio dodává šablona; --strip-height určuje výšku vodorovného pásu.
   Styly ovládají jen prezentaci, nikoli uložené pořadí či původní soubory.
   ========================================================================== */

.lh-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.lh-tile {
    text-decoration: none;
}

.lh-tile img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    object-position: left;
}

.lh-tile h2 {
    font-size: 24px;
    font-weight: 500;
}

.lh-photographs {
    display: grid;
    gap: 64px;
}

.lh-photographs figure {
    margin: 0;
}

.lh-photographs img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.lh-photographs figcaption {
    margin-top: 14px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.lh-dialog {
    border: 0;
    background: #fff;
    padding: 20px;
    width: min(96vw, 1500px);
    max-width: 96vw;
    max-height: 96vh;
}

.lh-dialog::backdrop {
    background: #000d;
}

.lh-dialog img {
    display: block;
    max-width: 100%;
    height: 70vh;
    object-fit: contain;
    margin: auto;
}

.lh-dialog button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 16px;
}

.lh-dialog [data-close] {
    display: block;
    margin: 0 0 12px auto;
}

.lh-dialog-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 640px) {
    .lh-grid {
        grid-template-columns: 1fr;
    }

    .lh-photographs {
        gap: 32px;
    }

    .lh-tile img {
        height: auto;
    }

    .lh-dialog {
        padding: 12px;
    }

    .lh-dialog img {
        height: 60vh;
    }
}

.lh-layout-preview {
    margin: 0 0 32px;
    padding: 24px 0;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.lh-layout-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lh-layout-options a {
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: #202020;
    text-decoration: none;
    display: inline-block;
}

.lh-layout-options a[aria-current="true"] {
    background: #202020;
    color: #fff;
    border-color: #202020;
}

.lh-layout-preview p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 16px 0 0;
}

.lh-photographs[data-gallery="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.lh-photographs[data-gallery="grid"] img {
    aspect-ratio: 4/3;
    height: auto;
    max-height: none;
    object-fit: cover;
}

.lh-photographs[data-gallery="mosaic"] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.lh-photographs[data-gallery="mosaic"] figure {
    flex: var(--photo-ratio) 1 calc(220px * var(--photo-ratio));
    min-width: 0;
    max-width: 100%;
}

.lh-photographs[data-gallery="mosaic"] img {
    max-height: none;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .lh-photographs[data-gallery="grid"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .lh-layout-options a {
        padding: 10px 14px;
    }

    .lh-photographs[data-gallery="grid"] {
        gap: 16px;
    }

    .lh-photographs[data-gallery="mosaic"] {
        gap: 24px;
    }

    .lh-photographs[data-gallery="mosaic"] figure {
        flex-basis: 100%;
    }
}

#portfolio-gallery {
    scroll-margin-top: 24px;
}

.lh-site .lh-grid {
    gap: 40px;
}

.lh-site .lh-tile h3 {
    font-size: 24px;
    margin: 16px 0 0;
}

.lh-site .lh-tile:hover h3 {
    color: #202020;
}

.lh-site #portfolio-gallery {
    scroll-margin-top: 106px;
}

.lh-photographs a[data-photo] {
    display: block;
}

.lh-photographs[data-gallery="filmstrip"] {
    --strip-height: min(65vh, 640px);
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    padding: 8px 6px 22px;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: #999 #eee;
}

.lh-photographs[data-gallery="filmstrip"] figure {
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    max-width: none;
}

.lh-photographs[data-gallery="filmstrip"] img {
    width: auto;
    height: var(--strip-height);
    max-height: none;
    max-width: none;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.lh-photographs[data-gallery="filmstrip"] figcaption {
    width: 0;
    min-width: 100%;
    max-width: none;
}

.lh-photographs[data-gallery="filmstrip"] a {
    cursor: inherit;
}

.lh-photographs[data-gallery="filmstrip"].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.lh-filmstrip-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 12px 0 18px;
}

.lh-filmstrip-controls[hidden] {
    display: none;
}

.lh-filmstrip-controls p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.lh-filmstrip-controls>div {
    display: flex;
    gap: 10px;
}

.lh-filmstrip-controls button {
    background: #fff;
    border: 1px solid #bbb;
    color: #111;
    min-width: 44px;
    min-height: 44px;
    font-size: 24px;
}

.lh-filmstrip-controls button:disabled {
    opacity: .3;
    cursor: default;
}

@media (max-width: 640px) {
    .lh-photographs[data-gallery="filmstrip"] {
        --strip-height: 52vh;
        gap: 12px;
    }

    .lh-filmstrip-controls {
        gap: 12px;
    }
}

/* ==========================================================================
   07 · BIO A STATICKÉ STRÁNKY
   Rozvržení portrétu a dlouhého textu. Nadpis h1 dědí společnou typografii.
   Zvětšení portrétu je záměrný výřez původní fotografie.
   ========================================================================== */

.lh-static-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 0 80px;
}

.lh-static-hero {
    padding: 20px 0 55px;
    border-bottom: 1px solid #dedbe1;
}

.lh-static-hero.has-portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 70px;
}

.lh-static-hero h1 {
    max-width: 800px;
}

.lh-static-lead {
    max-width: 810px;
}

.lh-static-lead p {
    margin: 0 0 1em;
}

.lh-static-lead p:last-child {
    margin-bottom: 0;
}

.lh-static-portrait {
    margin: 0;
    width: 100%;
    aspect-ratio: 1;
}

.lh-static-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.lh-static-body {
    max-width: 760px;
    margin: 55px auto 0;
    font-size: 19px;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.lh-static-body h2 {
    font-size: clamp(26px, 3vw, 35px);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 2.3em 0 .85em;
    color: #111;
}

.lh-static-body>h2:first-child {
    margin-top: 0;
}

.lh-static-body h3 {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 2em;
}

.lh-static-body p {
    margin: 0 0 1.3em;
}

.lh-static-body img {
    max-width: 100%;
    height: auto;
}

.lh-static-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.lh-static-body blockquote {
    margin: 2em 0;
    padding: 0 0 0 24px;
    border-left: 3px solid #73519b;
    font-size: 1.2em;
}

@media (max-width: 760px) {
    .lh-static-hero.has-portrait {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .lh-static-portrait {
        grid-row: 1;
        width: 190px;
    }

    .lh-static-hero {
        padding-top: 0;
        padding-bottom: 35px;
    }

    .lh-static-body {
        margin-top: 35px;
        font-size: 18px;
    }

    .lh-static-page {
        padding-top: 10px;
    }
}

.lh-static-page--bio .lh-static-portrait {
    border-radius: 50%;
    overflow: hidden;
}

.lh-static-page--bio .lh-static-portrait img {
    border-radius: 0;
    transform: scale(1.65);
    transform-origin: 50% 8%;
}

/* ==========================================================================
   08 · KONTAKT A SOCIÁLNÍ IKONY
   Stejné ikony používá Kontakt i patička. Ikona se vybírá podle cílové URL.
   Prázdný alternativní text u content nechává čtečkám pouze název sítě.
   Čára pod odkazem vynechává ikonu (1.2em) a mezeru (10px).
   ========================================================================== */

.lh-static-page--contact .lh-static-body ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
}

:is(.lh-static-page--contact .lh-static-body li, .lh-footer-links nav) a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: right calc(100% - .12em);
    background-size: calc(100% - 1.2em - 10px) 1px;
}

:is(.lh-static-page--contact .lh-static-body li, .lh-footer-links nav) a:hover {
    background-size: calc(100% - 1.2em - 10px) 2px;
}

:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.instagram.com/"]::before {
    content: '\f437' / '';
}

:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.facebook.com/"]::before {
    content: '\f344' / '';
}

:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.youtube.com/"]::before {
    content: '\f62b' / '';
}

:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.linkedin.com/"]::before {
    content: '\f472' / '';
}

:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.threads.com/"]::before,
:is(.lh-static-page--contact, .lh-footer-links) a[href^="https://www.threads.net/"]::before {
    content: '\f8d9' / '';
}

:is(.lh-static-page--contact .lh-static-body li, .lh-footer-links nav) a::before {
    font-family: lh-social-icons;
    font-style: normal;
    font-weight: normal;
    font-size: 1.2em;
    line-height: 1;
    flex-shrink: 0;
    width: 1em;
    text-align: center;
}

/* ==========================================================================
   09 · DENÍK A ARCHIV
   Výpis, detail, archivní navigace a vložené video.
   Reportážní varianta má další pravidla v blog-report.css.
   ========================================================================== */

.lh-diary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 28px;
}

.lh-diary-cards h2 {
    font-size: 25px;
    line-height: 1.3;
    margin: 0 0 16px;
}

.lh-diary-cards h2 a {
    text-decoration: none;
}

.lh-diary-cards h2 a:hover {
    color: #202020;
}

.lh-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    margin: 56px 0;
}

.lh-pagination a {
    padding: 10px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.lh-diary-detail {
    margin-bottom: 64px;
}

.lh-diary-detail h1 {
    max-width: 26ch;
}

.lh-diary-intro {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 48px;
    align-items: start;
}

.lh-diary-intro figure {
    margin: 0;
}

.lh-diary-intro figure img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}

.lh-diary-no-cover {
    grid-template-columns: minmax(0, 760px);
}

.lh-diary-text {
    font-size: 18px;
    line-height: 1.8;
    min-width: 0;
    overflow-wrap: anywhere;
}

.lh-diary-lead {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 700;
    margin-bottom: 28px;
}

.lh-diary-text img {
    max-width: 100%;
    height: auto;
}

.lh-diary-text iframe {
    max-width: 100%;
}

.lh-diary-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.lh-diary-text h2,
.lh-diary-text h3 {
    line-height: 1.3;
}

.lh-video {
    aspect-ratio: 16/9;
    margin: 24px 0;
}

.lh-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.lh-diary-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 48px 0;
}

.lh-diary-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.lh-archive {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 48px;
}

.lh-archive .lh-diary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lh-archive-navigation details {
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
}

.lh-archive-navigation summary {
    font-size: 20px;
    cursor: pointer;
}

.lh-archive-navigation a {
    display: block;
    padding: 6px 12px;
    text-decoration: none;
    color: #666;
}

.lh-archive-navigation a:is([aria-current="page"], [aria-current="location"]) {
    color: #202020;
    font-weight: 700;
}

@media (max-width: 900px) {
    .lh-diary-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lh-diary-intro {
        gap: 28px;
    }

    .lh-archive {
        grid-template-columns: 140px minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .lh-diary-cards,
    .lh-archive .lh-diary-cards {
        grid-template-columns: 1fr;
    }

    .lh-diary-intro {
        grid-template-columns: 1fr;
    }

    .lh-diary-intro figure img {
        max-height: 360px;
    }

    .lh-diary-gallery {
        grid-template-columns: 1fr;
    }

    .lh-archive {
        grid-template-columns: 1fr;
    }

    .lh-archive-navigation {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 16px;
        align-items: start;
    }

    .lh-pagination {
        gap: 16px;
    }

    .lh-diary-lead {
        font-size: 19px;
    }
}

.lh-news-item h3 a:hover,
.lh-diary-cards h2 a:hover,
.lh-event-card h2 a:hover,
.lh-project-timeline h3 a:hover,
.lh-site .lh-tile:hover h3 {
    text-decoration: underline;
    text-underline-offset: .25em;
}

/* ==========================================================================
   10 · UDÁLOSTI
   Karty událostí, datum, filtry a přepínání archivu.
   ========================================================================== */

.lh-event-list {
    display: grid;
    gap: 32px;
}

.lh-event-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    padding: 0 0 32px;
    border-bottom: 1px solid #e6e6e6;
}

.lh-event-card:last-child {
    border-bottom: 0;
}

.lh-event-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
}

.lh-event-date {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.lh-event-type {
    font-size: 13px;
    letter-spacing: .05em;
    color: #777;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.lh-event-card h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0 0 12px;
}

.lh-event-card h2 a {
    text-decoration: none;
}

.lh-event-card h2 a:hover {
    color: #202020;
}

.lh-event-place {
    color: #555;
    margin: 0 0 12px;
}

.lh-events-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 36px;
    border-bottom: 1px solid #ddd;
}

.lh-events-tabs a {
    padding: 12px 0;
    text-decoration: none;
}

.lh-events-tabs a:is([aria-current="page"], [aria-current="location"]) {
    border-bottom: 2px solid #222;
    font-weight: 700;
}

.lh-event-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.lh-event-filter select,
.lh-event-filter button {
    font: inherit;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 0;
    color: #222;
}

.lh-empty-state {
    padding: 24px 0 48px;
    color: #666;
}

@media (max-width: 640px) {
    .lh-event-card {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 18px;
    }

    .lh-event-image img {
        height: 140px;
    }

    .lh-event-card h2 {
        font-size: 23px;
    }

    .lh-event-date {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .lh-event-card {
        grid-template-columns: 1fr;
    }

    .lh-event-image img {
        height: 220px;
    }

    .lh-event-image {
        max-width: 220px;
    }
}

.lh-event-filter input[type=date] {
    font: inherit;
    padding: 8px;
    max-width: 100%;
    border: 1px solid #bbb;
    background: #fff;
    color: #111;
}

/* ==========================================================================
   11 · OBRAZEM
   Fotografie dne a archiv fotografií.
   ========================================================================== */

.lh-daily-photo {
    margin: 30px 0 48px;
}

.lh-daily-photo>a {
    display: block;
}

.lh-daily-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}

.lh-daily-photo figcaption {
    max-width: 760px;
    margin: 28px auto 0;
}

.lh-daily-caption {
    font-size: 20px;
    line-height: 1.75;
}

.lh-daily-note {
    font-size: 14px;
    color: #666;
}

.lh-daily-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
    margin: 36px 0;
}

.lh-daily-grid a {
    text-decoration: none;
}

.lh-daily-grid img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.lh-daily-grid span {
    display: block;
    margin-top: 12px;
    color: #555;
    font-size: 14px;
}

@media (max-width: 640px) {
    .lh-daily-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .lh-daily-grid img {
        height: 150px;
    }

    .lh-daily-caption {
        font-size: 18px;
    }
}

/* ==========================================================================
   12 · INSTAGRAM
   Mřížka příspěvků a svislá story. Skryté popisky zůstávají přístupné čtečkám.
   ========================================================================== */

.lh-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.lh-instagram-grid figure {
    margin: 0;
    min-width: 0;
}

.lh-instagram-grid a {
    display: block;
    position: relative;
}

.lh-instagram-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
}

.lh-instagram-grid figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    overflow-wrap: anywhere;
}

.lh-instagram-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: #fff;
    color: #222;
    padding: 4px 8px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .lh-instagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
}

.lh-instagram .lh-section-heading {
    align-items: center;
    flex-wrap: wrap;
    border-top-color: #222;
    gap: 16px;
}

.lh-instagram .lh-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #202020;
}

.lh-instagram-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: #202020;
    color: #fff;
    border-radius: 50%;
}

.lh-instagram-mark svg {
    display: block;
}

.lh-instagram .lh-section-heading>a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    color: #202020;
    box-sizing: border-box;
}

.lh-instagram .lh-section-heading>a:hover {
    background: #202020;
    border-color: #202020;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 640px) {
    .lh-instagram .lh-section-heading h2 {
        gap: 10px;
        font-size: 22px;
    }

    .lh-instagram-mark {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .lh-instagram-mark svg {
        width: 21px;
        height: 21px;
    }
}

.lh-instagram-content.has-story {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 3fr);
    gap: 24px;
    align-items: start;
}

.lh-instagram-content .lh-instagram-grid {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lh-instagram-content .lh-instagram-grid figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lh-instagram-story {
    display: block;
    position: relative;
    aspect-ratio: 9/16;
    overflow: hidden;
    border-radius: 20px;
    background: #161616;
}

.lh-instagram-story img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lh-instagram-story>span {
    position: absolute;
    inset: auto 0 0;
    padding: 36px 18px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
    font-size: 14px;
}

@media (max-width: 640px) {
    .lh-instagram-content.has-story {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lh-instagram-story {
        width: min(100%, 300px);
        justify-self: center;
    }

    .lh-instagram-content .lh-instagram-grid {
        gap: 10px;
    }

    .lh-instagram-content .lh-instagram-grid img {
        border-radius: 14px;
    }
}

/* ==========================================================================
   13 · PŘÍSTUPNOST A OVLÁDÁNÍ KLÁVESNICÍ
   Focus-visible zachovává rámeček při ovládání klávesnicí.
   Návrat fokusu po zavření galerie nemá vytvářet rámeček při klikání myší.
   prefers-reduced-motion omezuje pohyb podle nastavení uživatele.
   ========================================================================== */

.lh-skip {
    position: absolute;
    top: -100px;
    padding: 12px;
    background: #fff;
}

.lh-skip:focus {
    top: 0;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #444;
    outline-offset: 5px;
}

.lh-site .lh-skip {
    z-index: 30;
}

@media (max-width: 1299px) {
    .lh-mobile-menu summary:focus-visible {
        outline: 2px solid #555;
        outline-offset: 5px;
    }

    .lh-mobile-navigation a:focus-visible {
        outline-color: #444;
        outline-offset: -2px;
    }
}

.lh-photographs a[data-photo]:focus:not(:focus-visible) {
    outline: none;
}

.lh-photographs a[data-photo]:focus-visible {
    outline: 2px solid #444;
    outline-offset: 5px;
}

.lh-main#content[tabindex="-1"]:focus {
    outline: none;
}

.lh-photographs a[data-photo].lh-pointer-focus:focus {
    outline: none;
}

.lh-photographs[data-gallery="filmstrip"]:focus-visible {
    outline: 2px solid #444;
    outline-offset: 4px;
}

.lh-photographs[data-gallery="filmstrip"]:focus:not(:focus-visible) {
    outline: none;
}

.lh-submenu>summary:focus-visible {
    outline: 2px solid #555;
    outline-offset: 2px;
}

.lh-read-more:focus-visible {
    color: #000;
    text-decoration-thickness: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .lh-site * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
