/* ===========================================
   GALERIE ZLATÉ RYBKY
   Design must not compete with the art.
   =========================================== */

:root {
    --bg: #fbf7f0;          /* teplé krémové pozadí */
    --bg-soft: #f3e9d9;     /* pískové pro sekce */
    --bg-warm: #f7ede0;     /* mezitón */
    --ink: #2b2117;         /* teplá tmavě hnědá (ne studená černá) */
    --ink-soft: #6b5d4d;
    --ink-faint: #a99b86;
    --rule: #e7d9c4;        /* jemné teplé linky */
    --accent: #b8862f;      /* sytější zlatá */
    --accent-deep: #8a6e3c; /* tlumená zlatá (původní) */
    --accent-2: #c4663a;    /* teplý korál/terakota — hravý pop */
    --accent-2-soft: #f0d9cb;
    --gold-soft: #efe0c2;   /* světlé zlaté pozadí akcentů */

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --gutter: clamp(20px, 4vw, 56px);
    --max:    1480px;
    --letter: 0.16em;
    --letter-wide: 0.32em;
    --radius: 10px;

    /* rybka — silueta pro mask (obarví se background-colorem) */
    --fish: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M41 20C41 12 33 6 23 6S3 12 3 20s10 14 20 14 18-6 18-14z'/%3E%3Cpath d='M40 20l16-12-4 12 4 12z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; transition: color .35s ease; }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: rgba(196, 102, 58, 0.20); color: var(--ink); }

/* ===== Rybka — sdílená ozdoba (mask se obarví background-colorem) ===== */
.fish-mark {
    display: inline-block;
    width: 26px;
    height: 16px;
    background-color: var(--accent);
    -webkit-mask: var(--fish) center / contain no-repeat;
    mask: var(--fish) center / contain no-repeat;
    flex: none;
}

/* ============= NAVIGATION ============= */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(251,247,240,0.92);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    transition: background .4s ease, box-shadow .4s ease;
}
.site-nav.is-scrolled {
    background: rgba(251,247,240,0.95);
    box-shadow: 0 1px 0 var(--rule);
}
.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.brand::before {
    content: "";
    width: 26px;
    height: 16px;
    background-color: var(--accent);
    -webkit-mask: var(--fish) center / contain no-repeat;
    mask: var(--fish) center / contain no-repeat;
    transform-origin: 70% 50%;
    animation: brand-swim 3.6s ease-in-out infinite;
}
.brand:hover::before { animation-duration: 1.4s; }   /* po najetí plave svižněji */
@keyframes brand-swim {
    0%   { transform: translateY(0)    rotate(0deg); }
    25%  { transform: translateY(-2px) rotate(-7deg); }
    50%  { transform: translateY(0)    rotate(0deg); }
    75%  { transform: translateY(2px)  rotate(7deg); }
    100% { transform: translateY(0)    rotate(0deg); }
}
.site-nav nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 36px;
}
.site-nav nav a {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    transition: color .25s ease;
}
.site-nav nav a:hover { color: var(--accent); }
.site-nav nav a.nav-fb { color: var(--accent-deep); }
.site-nav nav a.nav-fb:hover { color: var(--accent); }

.nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    min-width: 44px;    /* dotykový cíl ≥ 44×44 (Apple HIG) */
    min-height: 44px;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform .35s ease, opacity .35s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 760px) {
    .site-nav nav {
        position: fixed;
        inset: 0;
        background: var(--bg);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .45s ease;
    }
    .site-nav nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }
    .site-nav nav ul {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .site-nav nav a {
        font-family: var(--serif);
        font-size: 28px;
        text-transform: none;
        letter-spacing: 0;
        color: var(--ink);
    }
    .nav-burger { display: flex; position: relative; z-index: 60; }
}

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--gutter) 80px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 55% at 50% 38%, var(--bg-warm) 0%, rgba(247,237,224,0) 70%),
        linear-gradient(180deg, var(--gold-soft) 0%, var(--bg) 60%);
}
.hero-inner { max-width: 880px; position: relative; z-index: 2; }
.hero-eyebrow {
    margin: 0 0 28px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--accent-2);
}
/* hejno rybek nad nadpisem */
.hero-fish {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
}
.hero-fish span {
    display: block;
    background-color: var(--accent);
    -webkit-mask: var(--fish) center / contain no-repeat;
    mask: var(--fish) center / contain no-repeat;
    animation: fish-bob 4s ease-in-out infinite;
}
.hero-fish span:nth-child(1) { width: 34px; height: 21px; opacity: .55; animation-delay: -1.2s; }
.hero-fish span:nth-child(2) { width: 52px; height: 32px; background-color: var(--accent-2); }
.hero-fish span:nth-child(3) { width: 34px; height: 21px; opacity: .55; animation-delay: -2.4s; transform: scaleX(-1); }
.hero-fish span:nth-child(3) {
    -webkit-mask: var(--fish) center / contain no-repeat;
    mask: var(--fish) center / contain no-repeat;
}
@keyframes fish-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
.hero-fish span:nth-child(3) { animation-name: fish-bob-flip; }
@keyframes fish-bob-flip {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50%      { transform: scaleX(-1) translateY(-7px); }
}
.hero-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(48px, 9vw, 128px);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.hero-title .accent-word { color: var(--accent); font-style: italic; }
.hero-tagline {
    margin: 32px auto 0;
    max-width: 560px;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--ink-soft);
    line-height: 1.5;
}
.hero-events {
    margin: 38px auto 0;
    max-width: 560px;
}
.hero-events-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--accent-deep);
}
.hero-events-title::before,
.hero-events-title::after {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--accent-deep);
    opacity: 0.4;
}
.hero-events ul { list-style: none; margin: 0; padding: 0; }
.hero-events li {
    text-align: center;
    padding: 7px 0;
}
.hero-events-when {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(19px, 2vw, 23px);
    color: var(--ink);
    line-height: 1.3;
}
.hero-events-text {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
}
.hero-scroll {
    display: inline-block;
    margin-top: 40px;
    padding-bottom: 4px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
}
.hero-scroll:hover { color: var(--accent); border-color: var(--accent); }

/* ============= PRUH DĚL (pod hero, jemně se posouvá) ============= */
.dila-strip {
    width: 100%;
    overflow: hidden;
    background: var(--bg-soft);
    border-top: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
}
.dila-track {
    display: flex;
    gap: 12px;
    width: max-content;
    padding: 14px 6px;
    animation: dila-scroll 70s linear infinite;
}
.dila-strip:hover .dila-track { animation-play-state: paused; }
.dila-frame {
    flex: none;
    height: clamp(170px, 24vw, 280px);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-warm);
    box-shadow: 0 2px 6px rgba(43,33,23,0.08);
}
.dila-frame img {
    height: 100%;
    width: auto;
    display: block;
}
@keyframes dila-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============= SECTION ============= */
.section {
    padding: 96px var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
}
.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-head h2,
.section h2,
.page-head h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.005em;
    margin: 12px 0;
}
.eyebrow {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: "";
    width: 20px;
    height: 13px;
    background-color: var(--accent-2);
    -webkit-mask: var(--fish) center / contain no-repeat;
    mask: var(--fish) center / contain no-repeat;
}
.section-head .eyebrow { justify-content: center; }

/* Rybka u nadpisu Kontakt — plave a občas vesele poskočí a otočí se */
.contact .eyebrow::before {
    transform-origin: 60% 50%;
    animation: kontakt-fish 3.6s ease-in-out infinite;
}
.contact .section-head:hover .eyebrow::before {
    animation-duration: 1.1s;   /* po najetí myší plave splašeně */
}
@keyframes kontakt-fish {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    8%   { transform: translateY(-3px) rotate(-14deg); }
    18%  { transform: translateY(0) rotate(0deg); }
    28%  { transform: translateY(3px) rotate(12deg); }
    38%  { transform: translateY(0) rotate(0deg); }
    /* veselý poskok a otočka */
    52%  { transform: translateY(-7px) rotate(-18deg) scale(1.18); }
    62%  { transform: translateY(-8px) rotateY(180deg) rotate(8deg) scale(1.18); }
    74%  { transform: translateY(0) rotateY(180deg) rotate(0deg); }
    86%  { transform: translateY(-2px) rotateY(180deg) rotate(-8deg); }
    96%  { transform: translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
    .contact .eyebrow::before { animation: none; }
}
.dim {
    margin: 8px 0 0;
    color: var(--ink-faint);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* ============= YEAR TABS ============= */
.year-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 48px;
}
.year-tab {
    padding: 8px 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-soft);
    border-radius: 100px;
    transition: color .3s ease, background .3s ease;
}
.year-tab:hover { color: var(--ink); }
.year-tab.is-active {
    background: var(--ink);
    color: var(--bg);
}
.tab-count {
    margin-left: 6px;
    opacity: 0.5;
    font-size: 10px;
}

/* ============= MASONRY ============= */
.masonry {
    width: 100%;
}
.masonry .tile {
    display: block;
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: 0 1px 2px rgba(43,33,23,0.04);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .9s ease, transform .9s ease, box-shadow .4s ease;
}
.masonry .tile.is-visible {
    opacity: 1;
    transform: none;
}
.masonry .tile img {
    width: 100%;
    height: auto;
    transition: transform 1s ease;
}
.masonry .tile:hover {
    box-shadow: 0 10px 28px rgba(43,33,23,0.16);
}
.masonry .tile:hover img {
    transform: scale(1.05);
}
.tile-meta {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px 16px 14px;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(74,46,26,0.78) 100%);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .4s ease, transform .4s ease;
}
.masonry .tile:hover .tile-meta { opacity: 1; transform: none; }

.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--ink-faint);
    font-style: italic;
    font-family: var(--serif);
    font-size: 20px;
}

/* ============= ABOUT ============= */
.about {
    background: var(--bg-soft);
    max-width: none;
}
.about-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.about-portrait img {
    width: 100%;
    max-width: 380px;
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(43,33,23,0.14);
}
.about-text h2 { margin-top: 8px; }
.about-text p {
    font-family: var(--serif);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.8;
    color: var(--ink);
    margin: 0 0 1em;
}
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { display: flex; justify-content: center; }
}

/* ============= CONTACT ============= */
.contact {
    background: var(--bg-soft);
    max-width: none;
    padding: 96px var(--gutter) 110px;
}
.contact .section-head { margin-bottom: 44px; }
.contact-inner { max-width: 760px; margin: 0 auto; }  /* generic — používá i stránka Autoři */

.contact-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(43,33,23,0.10);
    overflow: hidden;
}
.contact-card-top {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
}
.contact-map {
    position: relative;
    border-top: 1px solid var(--rule);
    line-height: 0;
}
.contact-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
    pointer-events: none;        /* mapa je jen náhled — nezoomuje a netáhne se scrollem */
    /* ztlumení palety do teplého sepia tónu, ať ladí s krémovou */
    filter: grayscale(0.28) sepia(0.32) saturate(0.62) brightness(1.05) contrast(0.9);
    transition: filter .4s ease;
}
/* klikací překryv — otevře plnou mapu v nové záložce */
.contact-map-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}
.contact-map:hover iframe {
    /* po najetí myší plná barva (lepší orientace při hledání cesty) */
    filter: none;
}
.contact-col { padding: clamp(28px, 3.6vw, 46px); }
.contact-col--hours {
    background: var(--bg-warm);
    border-left: 1px solid var(--rule);
}
.ccol-title {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 22px;
    color: var(--ink);
}
.contact-address {
    font-family: var(--serif);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.32;
    color: var(--ink);
    margin: 0 0 12px;
}
.map-link {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}
.map-link:hover { border-bottom-color: var(--accent); }

.contact-rows {
    margin-top: 28px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
}
.crow {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: baseline;
    gap: 4px 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
}
.crow:last-child { border-bottom: 0; }
.crow-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--ink-soft);
}
.crow-val {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--ink);
}
a.crow-val:hover { color: var(--accent); }
.crow-phones { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.crow-phones a { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.crow-phones a:hover { color: var(--accent); }
@media (max-width: 420px) {
    .crow { grid-template-columns: 1fr; gap: 2px; }
}

.hours-note {
    margin: 22px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* tlačítko „Uložit kontakt do telefonu" (vCard) — decentní, neruší kartu */
.vcard-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    padding: 10px 18px;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    border-radius: 100px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.vcard-btn .fish-mark { background-color: var(--accent); width: 18px; height: 11px; }
.vcard-btn:hover {
    color: var(--accent-deep);
    border-color: var(--accent);
    background: var(--gold-soft);
}
@media (max-width: 720px) {
    .contact-card-top { grid-template-columns: 1fr; }
    .contact-col--hours { border-left: 0; border-top: 1px solid var(--rule); }
    .contact-map iframe { height: 260px; }
}

/* ============= EXHIBITION ============= */
.page-head {
    max-width: var(--max);
    margin: 0 auto;
    padding: 140px var(--gutter) 56px;
}
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink-faint);
}
.back-link:hover { color: var(--accent); }

/* ============= FOOTER ============= */
.site-foot {
    background: var(--bg-soft);
    border-top: 1px solid var(--rule);
    margin-top: 0;
}
.foot-top {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(36px, 4vw, 56px);
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 64px);
}
.foot-brand { max-width: 360px; }
.foot-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-size: 23px;
    color: var(--ink);
    margin-bottom: 14px;
}
.foot-name .fish-mark { width: 24px; height: 15px; background-color: var(--accent); }
.foot-name:hover { color: var(--accent); }
.foot-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 20px;
}
.foot-social { display: flex; gap: 18px; }
.foot-social a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--accent-deep);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
}
.foot-social a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.foot-h {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    margin: 0 0 16px;
}
.foot-col .foot-link,
.foot-addr {
    display: block;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 6px;
}
a.foot-link:hover { color: var(--accent); }
.foot-addr { margin-bottom: 12px; }

.foot-hours {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 3px 0;
}
.foot-hours li span:first-child { color: var(--ink); }

.foot-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px var(--gutter);
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter-wide);
    color: var(--ink-faint);
}
.foot-bottom a { color: var(--ink-faint); }
.foot-bottom a:hover { color: var(--accent); }

@media (max-width: 880px) {
    .foot-top { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
    .foot-brand { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 520px) {
    .foot-top { grid-template-columns: 1fr; }
    .foot-bottom { justify-content: center; text-align: center; }
}

/* ============= GLIGHTBOX OVERRIDES ============= */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gdesc-inner { padding: 16px 20px; }
.glightbox-clean .gslide-title {
    font-family: var(--serif);
    font-weight: 400;
}
.glightbox-clean .gnext, .glightbox-clean .gprev, .glightbox-clean .gclose {
    background: transparent;
}
.gbtn svg { fill: #fff; }

/* ============= CATEGORY TABS (galerie) ============= */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 48px;
}
.cat-tab {
    padding: 9px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-soft);
    background: var(--bg-soft);
    border-radius: 100px;
    transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.cat-tab:hover {
    color: var(--ink);
    background: var(--gold-soft);
    transform: translateY(-2px);
}
.cat-tab.is-active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184,134,47,0.35);
}
.cat-tab.is-active:hover { background: var(--accent); transform: translateY(-2px); }
.tab-count { margin-left: 6px; opacity: .55; font-size: 10px; }

/* ============= OTEVÍRACÍ DOBA (v kontaktní kartě) ============= */
.hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-day { color: var(--ink); }
.hours-time { color: var(--ink); }

/* ============= AUTOŘI — teaser na home ============= */
.author-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 48px);
    max-width: 980px;
    margin: 0 auto;
}
.author-card { text-align: center; }
.author-card-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft);
}
.author-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 24px;
    margin: 0 0 6px;
}
.author-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-faint);
    margin: 0;
}
/* ===== Zakladatelé — větší klikací karty na home ===== */
.founder-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 56px);
    max-width: 1080px;
    margin: 0 auto;
}
.founder-card {
    display: block;
    text-align: center;
    padding: 30px 22px 26px;
    border: 1px solid var(--rule);
    border-radius: 18px;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(43,33,23,0.06);
    color: inherit;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.founder-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(43,33,23,0.14);
    border-color: var(--gold-soft);
    color: inherit;
}
.founder-card-photo {
    width: clamp(180px, 22vw, 230px);
    height: clamp(180px, 22vw, 230px);
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-soft);
    border: 3px solid var(--gold-soft);
}
.founder-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.founder-card:hover .founder-card-photo img { transform: scale(1.05); }
.founder-card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.founder-card-noimg .fish-mark { width: 56px; height: 35px; }
.founder-card h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 2.4vw, 30px);
    margin: 0 0 6px;
}
.founder-card .author-role { margin-bottom: 14px; }
.founder-card-cta {
    display: inline-block;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, color .25s ease;
}
.founder-card:hover .founder-card-cta { border-bottom-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) {
    .founder-cards { grid-template-columns: 1fr; gap: 32px; max-width: 360px; }
}

/* ===== Spřátelení autoři na home ===== */
.friends-home .friend-cards { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ===== Podstránka zakladatele ===== */
.author-role--lg { font-size: 13px; color: var(--accent-deep); margin-top: 8px; }
.author-intro-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}
.author-intro-photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 14px 40px rgba(43,33,23,0.10);
    position: sticky;
    top: 100px;
}
.author-intro-grid--nophoto { grid-template-columns: 1fr; max-width: 760px; }
.author-intro-photo img { width: 100%; display: block; }
.author-intro-text > p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.author-cv { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.author-cv-title {
    font-size: 11px; font-weight: 600; letter-spacing: var(--letter);
    text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px;
}
.author-cv-list { list-style: none; margin: 0; padding: 0; }
.author-cv-list li {
    font-size: 14px; line-height: 1.55; color: var(--ink-soft);
    padding: 7px 0; border-bottom: 1px solid var(--rule);
}
.author-cv-list li:last-child { border-bottom: 0; }
.author-contact { background: var(--bg-soft); max-width: none; padding: 72px var(--gutter) 90px; }
.author-contact-rows { margin: 18px 0; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.author-contact-rows p { margin: 4px 0; }
.author-contact-rows a:hover { color: var(--accent); }
@media (max-width: 760px) {
    .author-intro-grid { grid-template-columns: 1fr; }
    .author-intro-photo { position: static; max-width: 320px; margin: 0 auto; }
}

.teaser-cta { text-align: center; margin-top: 56px; }
.btn-line {
    display: inline-block;
    padding-bottom: 4px;
    font-size: 11px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
}
.btn-line:hover { color: var(--accent); }
@media (max-width: 700px) {
    .author-cards { grid-template-columns: 1fr; gap: 40px; }
}

/* ============= STRÁNKA AUTOŘI ============= */
.page-lead {
    max-width: 720px;
    margin: 20px 0 0;
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.6;
    color: var(--ink-soft);
}
.page-lead-sm {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 32px;
}

.medailons {
    display: flex;
    flex-direction: column;
    gap: 64px;
    max-width: var(--max);
    margin: 0 auto;
}
.medailon {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.medailon:nth-child(even) { direction: rtl; }
.medailon:nth-child(even) .medailon-text { direction: ltr; }
.medailon:nth-child(even) .medailon-photo { direction: ltr; }
.medailon-photo {
    background: var(--bg-soft);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(43,33,23,0.12);
}
.medailon-photo img { width: 100%; height: 100%; object-fit: cover; }
.medailon-text h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 40px);
    margin: 0 0 4px;
}
.medailon-text > p {
    font-family: var(--serif);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.75;
    color: var(--ink);
    margin: 16px 0;
}
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0;
}
.tags li {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--ink-soft);
    background: var(--bg-soft);
    padding: 5px 12px;
    border-radius: 100px;
}
.author-links { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 20px; }
.author-links a {
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-bottom: 1px solid transparent;
}
.author-links a:hover { border-bottom-color: var(--accent); }
@media (max-width: 700px) {
    .medailon, .medailon:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
    .medailon-photo { max-height: 320px; }
}

.authors-friends { background: var(--bg-soft); max-width: none; }
.authors-friends > .section-head,
.authors-friends > .friends-group-title,
.authors-friends > .friend-cards { max-width: var(--max); margin-left: auto; margin-right: auto; }
.friends-group-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 26px;
    margin: 48px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.friend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 16px;
}
.friend-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.friend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(43,33,23,0.12);
    border-color: var(--accent-2-soft);
}
.friend-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.friend-card:hover .friend-photo img { transform: scale(1.05); }
.friend-photo img { transition: transform .8s ease; }
.friend-photo img { width: 100%; height: 100%; object-fit: cover; }
.friend-body { padding: 22px 24px 26px; }
.friend-body h4 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    margin: 0 0 4px;
}
.friend-field {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: var(--letter);
    color: var(--accent);
    margin: 0 0 12px;
}
.friend-note {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 14px;
}

.authors-note { text-align: center; }
.authors-note .contact-inner { max-width: 720px; }
.pending-note {
    margin: 32px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--ink-faint);
}
.pending-note .meta-label {
    font-size: 10px;
    letter-spacing: var(--letter-wide);
    text-transform: uppercase;
}

/* ============= REDUCED MOTION ============= */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .masonry .tile { opacity: 1; transform: none; }
}

/* ============= MOBILNÍ DOTYKOVÉ CÍLE ============= */
@media (max-width: 600px) {
    /* filtr kategorií — vyšší tlačítka pro pohodlný dotek */
    .cat-tab { padding: 12px 18px; }
    /* textové CTA odkazy — větší klikací plocha */
    .hero-scroll, .btn-line { padding: 11px 6px; }
    .map-link { padding: 8px 0; }
    /* telefony, e-mail v kontaktu */
    .crow-phones a, a.crow-val { padding: 4px 0; }
    /* patička — odkazy s prostorem na dotek */
    .foot-link { padding: 7px 0; }
    .foot-social a { display: inline-block; padding: 8px 0; }
    .foot-bottom a { display: inline-block; padding: 6px 2px; }
    .foot-nav a { padding: 7px 0; }
}

/* ============= NEWSLETTER (odběr novinek) ============= */
.newsletter {
    background: var(--bg-soft);
    border-top: 1px solid var(--rule);
    padding: clamp(56px, 7vw, 88px) var(--gutter);
    text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 40px);
    margin: 8px 0 12px;
}
.newsletter .dim { margin: 0 auto 24px; max-width: 440px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.newsletter-form input[type=email] {
    flex: 1 1 240px;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    border-radius: 100px;
}
.newsletter-form input[type=email]:focus { outline: none; border-color: var(--accent); }
.newsletter-form button {
    flex: 0 0 auto;
    padding: 14px 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background .25s ease, transform .25s ease;
}
.newsletter-form button:hover { background: var(--accent-2); transform: translateY(-1px); }
.nl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-msg { margin: 0 0 16px; font-size: 14px; color: var(--ink-soft); }
.newsletter-msg.is-ok { color: #2e7d4f; }
.newsletter-msg.is-err { color: #b3261e; }
@media (max-width: 480px) {
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type=email], .newsletter-form button { width: 100%; }
}

/* spřátelený autor — klikací karta na jeho podstránku */
.friend-card { color: inherit; }
.friend-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 11px;
    letter-spacing: var(--letter);
    text-transform: uppercase;
    color: var(--accent-deep);
    transition: color .25s ease;
}
.friend-card:hover .friend-cta { color: var(--accent); }

/* ================================================
   TYPOGRAFIE — zalamování a nezlomitelné prvky
   (doplňuje serverový helper typo() v helpers.php)
   ================================================ */
/* Nadpisy — rovnoměrné zalomení, poslední slovo nezůstane samo */
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
/* Odstavce — hezčí zalomení (eliminuje osamělá slova na řádku) */
p { text-wrap: pretty; }
p, li, dd, .friend-note, .author-role { overflow-wrap: break-word; }

/* Nikdy nezlomit: telefon, e-mail, datum/čas, dny, utility .nowrap */
a[href^="tel"], a[href^="mailto"],
.crow-phones a, .hours-time, .hours-day,
.foot-hours span, .nowrap {
  white-space: nowrap;
}
a[href^="mailto"] { word-break: keep-all; }
