
:root {
    --red: #b51f2a;
    --red-dark: #86151d;
    --red-soft: #f8e9eb;
    --red-pale: #fff7f7;
    --ink: #25272b;
    --gray: #677078;
    --gray-light: #eef1f2;
    --cream: #fffaf7;
    --white: #ffffff;
    --line: #e5e1df;
    --shadow: 0 16px 38px rgba(41, 25, 25, .10);
    --content-width: 1180px;
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

/* ----------------------------------------------------------
   Menu / hlavicka
---------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 15px rgba(20, 20, 20, .08);
    backdrop-filter: blur(10px);
}

.site-header-inner {
    width: min(var(--content-width), calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.site-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    height: 100%;
    text-decoration: none;
    line-height: 0;
}

.site-brand-logo {
    display: block;
    width: auto;
    height: 100%;
    max-width: 260px;
    padding: 12px 0;
    box-sizing: border-box;
    object-fit: contain;
}

.main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 100%;
}

.main-menu a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 11px;
    height: 100%;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.main-menu a::after {
    position: absolute;
    right: 11px;
    bottom: 17px;
    left: 11px;
    height: 3px;
    background: var(--red);
    content: "";
    opacity: 0;
    transform: scaleX(.3);
    transition: .2s ease;
}

.main-menu a:hover {
    color: var(--red);
}

.main-menu a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-empty {
    color: var(--gray);
    font-size: 14px;
}

/* ----------------------------------------------------------
   Hero / banner
---------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(115deg, #311012 0%, #84202a 55%, #b51f2a 100%);
    display: flex;
    align-items: center;
}

.hero.has-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 17, 18, .76) 0%, rgba(18, 17, 18, .54) 43%, rgba(18, 17, 18, .10) 100%),
        linear-gradient(0deg, rgba(25, 18, 18, .34), transparent 48%);
}

.hero::after {
    position: absolute;
    z-index: 1;
    right: -8%;
    bottom: -135px;
    left: -8%;
    height: 210px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--cream);
    content: "";
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 95px 0 170px;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 17px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 5.2vw, 68px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.hero p {
    max-width: 565px;
    margin: 22px 0 30px;
    font-size: 19px;
    line-height: 1.55;
}

.hero-button {
    display: inline-block;
    padding: 13px 24px;
    border: 2px solid var(--red);
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: .2s ease;
}

.hero-button:hover {
    border-color: #fff;
    background: #fff;
    color: var(--red);
}


/* ============================================
   JEDNOTNY HORNI BANNER CMS STRANEK
   ============================================ */

.page-hero {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    background-color: #311b1d;
    background-image:
        linear-gradient(
            90deg,
            rgba(31, 16, 18, .78) 0%,
            rgba(76, 18, 23, .62) 48%,
            rgba(31, 16, 18, .72) 100%
        ),
        url("/uploads/site/header_photo.jpg");
    background-repeat: no-repeat;
    background-position: center 52%;
    background-size: cover;
}

.page-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 190px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .38);
}

.page-hero-line {
    display: block;
    width: 58px;
    height: 5px;
    margin-top: 16px;
    background: var(--red);
    clip-path: polygon(
        0 50%, 12% 0, 25% 50%, 38% 0, 50% 50%, 62% 0, 75% 50%, 88% 0,
        100% 50%, 88% 100%, 75% 50%, 62% 100%, 50% 50%, 38% 100%, 25% 50%, 12% 100%
    );
}

/* ----------------------------------------------------------
   Obecne sekce
---------------------------------------------------------- */

.page-content {
    overflow: hidden;
}

.front-section {
    position: relative;
    padding: 75px 0;
}

.front-section:nth-of-type(even) {
    background: var(--white);
}

.front-section:nth-of-type(odd) {
    background: var(--red-pale);
}

.front-section::before {
    position: absolute;
    top: -42px;
    right: -5%;
    left: -5%;
    height: 85px;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    background: inherit;
    content: "";
}

.front-section-inner {
    position: relative;
    z-index: 1;
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.section-heading h2::after {
    display: block;
    width: 64px;
    height: 6px;
    margin: 17px auto 0;
    border-radius: 10px;
    background:
        linear-gradient(135deg, transparent 0 18%, var(--red) 19% 39%, transparent 40% 59%, var(--red) 60% 80%, transparent 81%),
        linear-gradient(45deg, transparent 0 18%, var(--red) 19% 39%, transparent 40% 59%, var(--red) 60% 80%, transparent 81%);
    content: "";
}

.section-heading p {
    margin: 15px auto 0;
    color: var(--gray);
}

/* ----------------------------------------------------------
   Obsah z CKEditoru (jediny platny blok .rich-content)
---------------------------------------------------------- */

.rich-content {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.75;
    text-align: left;
    overflow-x: auto;
}

.rich-content p {
    margin: 0 0 18px;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 32px 0 14px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 700;
}

.rich-content h1 { font-size: 28px; }
.rich-content h2 { font-size: 24px; }
.rich-content h3 { font-size: 20px; }
.rich-content h4 { font-size: 17px; }

.rich-content h1:first-child,
.rich-content h2:first-child,
.rich-content h3:first-child {
    margin-top: 0;
}

.rich-content a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-content a:hover {
    text-decoration: none;
}

.rich-content strong { font-weight: 700; }
.rich-content em { font-style: italic; }

.rich-content ul,
.rich-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.rich-content li {
    margin-bottom: 8px;
}

.rich-content blockquote {
    margin: 24px 0;
    padding: 14px 20px;
    border-left: 4px solid var(--red);
    background: #faf2f1;
    color: #5a3a3c;
    font-style: italic;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 12px 0;
}

.rich-content hr {
    margin: 32px 0;
    border: none;
    border-top: 1px solid #e3dcdc;
}

.rich-content table {
    width: auto !important;
    max-width: 100% !important;
    margin: 20px auto !important;
    border-collapse: collapse;
    font-size: 15px;
}

.rich-content table td,
.rich-content table th {
    width: auto !important;
}

.rich-content table[border="0"],
.rich-content table[border="0"] tbody,
.rich-content table[border="0"] thead,
.rich-content table[border="0"] tfoot,
.rich-content table[border="0"] tr,
.rich-content table[border="0"] th,
.rich-content table[border="0"] td {
    border: 0 !important;
}

.rich-content table[border="0"] th,
.rich-content table[border="0"] td {
    text-align: center;
    vertical-align: middle;
    padding: 10px 18px;
}

.rich-content table:not([border="0"]) th,
.rich-content table:not([border="0"]) td {
    border: 1px solid var(--line);
    padding: 11px 14px;
    text-align: left;
}

.rich-content table:not([border="0"]) th {
    background: #f8e9ea;
    color: #8f1820;
    font-weight: 700;
}

.rich-content table img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/*
 * Vlastni zdrojovy kod (content_mode = 'html') ridi svuj vzhled sam,
 * typografie z .rich-content se na nej nema vynucovat.
 */
.rich-content.rich-content-raw {
    max-width: none;
    font-size: inherit;
    line-height: inherit;
}


/* ----------------------------------------------------------
   Aktuality
---------------------------------------------------------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(35, 22, 23, .09);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(35, 22, 23, .14);
}

.news-image {
    display: block;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #ead8da;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9d1b27, #d23b47);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.news-content h3 {
    margin: 7px 0 10px;
    font-size: 21px;
    line-height: 1.25;
}

.news-content h3 a {
    color: #252525;
    text-decoration: none;
}

.news-content h3 a:hover {
    color: #b51f2a;
}

.news-content p {
    margin: 0 0 18px;
    color: #666;
    line-height: 1.65;
}

.news-date {
    color: #b51f2a;
    font-size: 13px;
    font-weight: 700;
}

.news-read-more,
.btn-more-news {
    display: inline-block;
    background: #b51f2a;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease;
}

.news-read-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 15px;
}

.news-read-more:hover,
.btn-more-news:hover {
    background: #8f1820;
    color: #fff;
}

.empty-message {
    padding: 40px 20px;
    border-radius: 8px;
    background: #faf5f5;
    color: #7a6264;
    text-align: center;
    font-size: 15px;
}

.news-more-wrap {
    padding-top: 34px;
    text-align: center;
}

.btn-more-news {
    padding: 13px 27px;
}

.news-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 34px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(50, 20, 22, .10);
    transition: background .15s ease, color .15s ease;
}

.page-link:hover {
    background: #faf2f1;
}

.page-link.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(181, 31, 42, .3);
}

/* Detail jednoho prispevku (jediny platny blok .post-detail) */
.post-detail {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.post-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.post-back:hover {
    text-decoration: underline;
}

.post-detail h1 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.25;
}

.post-detail .news-date {
    margin-bottom: 22px;
    color: #9a7f81;
    font-size: 14px;
    font-weight: 600;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 0 28px;
}

.post-gallery img {
    display: block;
    width: 100%;
    height: 170px;
    border-radius: 7px;
    object-fit: cover;
}

.post-detail .rich-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

/* ----------------------------------------------------------
   Tri sloupce
---------------------------------------------------------- */

.columns-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.front-column {
    min-width: 0;
}

.front-column-text {
    height: 100%;
    padding: 28px;
    border-top: 5px solid var(--red);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(40, 28, 28, .07);
}

.front-column-number {
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    font-size: 14px;
    font-weight: 700;
}

.front-column h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.22;
}

.front-column p {
    margin: 0;
    color: var(--gray);
}

.image-link-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 290px;
    align-items: stretch;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px 24px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(50, 20, 22, .14);
    transition: transform .2s ease, box-shadow .2s ease;
}

.image-link-card img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 195px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    transition: transform .25s ease;
}

.image-link-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(181, 31, 42, .07));
    content: "";
    pointer-events: none;
}

.image-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(50, 20, 22, .18);
}

.image-link-card:hover img {
    transform: scale(1.03);
}

.image-link-title {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 18px;
    padding: 11px 13px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}


/* ----------------------------------------------------------
   Paticka / kontakty
---------------------------------------------------------- */

.contact-section {
    position: relative;
    padding: 88px 0 0;
    background: #272426;
    color: #fff;
}

.contact-section::before {
    position: absolute;
    top: -48px;
    right: -5%;
    left: -5%;
    height: 95px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: #272426;
    content: "";
}

.contact-inner {
    position: relative;
    z-index: 1;
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: stretch;
    padding-bottom: 50px;
}

.contact-heading {
    margin: 0 0 20px;
    font-size: 35px;
    line-height: 1.12;
}

.contact-heading::after {
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 17px;
    border-radius: 99px;
    background: var(--red);
    content: "";
}

.contact-text {
    color: rgba(255,255,255,.72);
}

.contact-list {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    margin: 10px 0;
}

.contact-list strong {
    display: inline-block;
    min-width: 82px;
    color: #fff;
}

.contact-map {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background:
        linear-gradient(135deg, rgba(181,31,42,.88), rgba(46,37,38,.76)),
        repeating-linear-gradient(45deg, #ded9d7 0 2px, #f5f2f0 2px 16px);
    color: #fff;
    text-align: center;
}

.contact-map-content {
    max-width: 340px;
    padding: 25px;
}

.contact-map strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.contact-map a {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-bottom {
    padding: 19px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.56);
    font-size: 12px;
}

.photo-credit {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
    line-height: 1.5;
}

.photo-credit a {
    color: inherit;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   Segment "Jak to u nas zijeme"
---------------------------------------------------------- */

.story-segment {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background: #f5f1ee;
    overflow: hidden;
}

.story-segment-main {
    display: flex;
    width: 100%;
    min-height: 330px;
}

.story-segment-photo {
    width: 50%;
    min-height: 330px;
    overflow: hidden;
}

.story-segment-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.story-segment-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 48px 52px;
    background: #a91620;
    color: #fff;
}

.story-segment-panel h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 36px;
    line-height: 1.08;
    font-weight: 700;
}

.story-segment-panel p {
    max-width: 390px;
    margin: 0 0 25px;
    color: #fff;
    font-size: 16px;
    line-height: 1.65;
}

.story-segment-button {
    display: inline-block;
    align-self: flex-start;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.story-segment-button:hover {
    background: #fff;
    color: #a91620;
}

.story-segment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 105px;
    padding: 22px 58px;
    background: #f7f5f2;
}

.story-segment-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42%;
    min-height: 58px;
}

.story-segment-logo img {
    display: block;
    max-width: 210px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   KARUSEL STATICKYCH STRANEK
   ============================================ */

.page-carousel {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 30px;
    overflow: hidden;
    border-radius: 8px;
    background: #f3eeee;
}

.page-carousel-track {
    display: flex;
    transition: transform .4s ease;
}

.page-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.page-carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background: #f3eeee;
}

.pc-prev,
.pc-next {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(30, 25, 25, .62);
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 42px;
    text-align: center;
    transition: background .18s ease;
}

.pc-prev { left: 14px; }
.pc-next { right: 14px; }

.pc-prev:hover,
.pc-next:hover {
    background: var(--red);
}

/* ============================================
   FOTOGALERIE STATICKYCH STRANEK
   ============================================ */

.page-static-content {
    max-width: 760px;
    margin: 0 auto;
}

.page-static-content .rich-content {
    margin-top: 30px;
}

.page-gallery {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 30px;
}

.page-gallery-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.3;
}

.page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.page-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #eee;
}

.page-gallery-item img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform .2s ease;
}

.page-gallery-item:hover img {
    transform: scale(1.04);
}

.post-attachments {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.post-attachments-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 19px;
}

.post-attachments-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-attachment-item {
    margin-bottom: 10px;
}

.post-attachment-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 6px;
    background: #faf5f5;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: background .15s ease;
}

.post-attachment-item a:hover {
    background: var(--red-soft);
}

.post-attachment-ext {
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* ----------------------------------------------------------
   Responsivita
---------------------------------------------------------- */

@media (max-width: 850px) {
    .site-header-inner {
        height: auto;
        min-height: 68px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 10px 0;
    }

    .site-brand { height: auto; }
    .site-brand-logo { height: 44px; padding: 0; }

    .main-menu {
        height: auto;
        justify-content: flex-start;
    }

    .main-menu a {
        height: auto;
        padding: 9px 8px;
        font-size: 10px;
    }

    .main-menu a::after { bottom: 3px; }

    .hero { min-height: 500px; }

    .page-hero,
    .page-hero-inner {
        min-height: 155px;
    }

    .page-hero { background-position: center center; }
    .page-hero-inner { padding: 20px; }
    .page-hero-line { margin-top: 13px; }

    .news-grid,
    .columns-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map { border-radius: 10px; }

    .story-segment-main { display: block; }

    .story-segment-photo,
    .story-segment-panel {
        width: 100%;
    }

    .story-segment-photo { min-height: 250px; }

    .story-segment-photo img {
        min-height: 250px;
        max-height: 330px;
    }

    .story-segment-panel {
        min-height: auto;
        padding: 34px 26px 38px;
    }

    .story-segment-panel h2 { font-size: 30px; }

    .story-segment-footer {
        min-height: 90px;
        padding: 18px 20px;
    }

    .story-segment-logo { width: 48%; }

    .story-segment-logo img {
        max-width: 145px;
        max-height: 50px;
    }

    .page-static-content,
    .post-detail,
    .rich-content {
        max-width: none;
    }

    .page-carousel-slide img { max-height: 340px; }

    .page-gallery-grid,
    .post-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-gallery-item img,
    .post-gallery img { height: 145px; }

    .pc-prev,
    .pc-next {
        width: 36px;
        height: 36px;
        font-size: 21px;
        line-height: 36px;
    }
}

@media (max-width: 520px) {
    .site-header-inner,
    .hero-content,
    .front-section-inner,
    .contact-inner {
        width: min(100% - 28px, var(--content-width));
    }

    .hero-content { padding: 75px 0 150px; }
    .hero p { font-size: 16px; }
    .front-section { padding: 57px 0; }
    .news-image { height: 200px; }
}

@media (max-width: 420px) {
    .page-gallery-grid,
    .post-gallery {
        grid-template-columns: 1fr;
    }

    .page-gallery-item img,
    .post-gallery img {
        height: auto;
        max-height: 300px;
    }
}
/* Detail aktuality – jedna fotografie pres celou šírku obsahu */
.post-detail .post-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0 0 28px;
}

.post-detail .post-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

/* Pokud má aktualita jednu fotografii, bude velká pres celou šírku. */
.post-detail .post-gallery a:only-child {
    grid-column: 1 / -1;
}

.post-detail .post-gallery img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

/* Jediná fotografie nemá být oríznutá ani malá. */
.post-detail .post-gallery a:only-child img {
    height: auto;
    max-height: 620px;
    object-fit: contain;
    background: #f3eeee;
}

@media (max-width: 700px) {
    .post-detail .post-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-detail .post-gallery img {
        height: 160px;
    }

    .post-detail .post-gallery a:only-child img {
        height: auto;
        max-height: 440px;
    }
}

.story-segment-button {
    display: inline-block;
    align-self: flex-start;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, .8);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease;
}

.story-segment-button:hover {
    background: #fff;
    color: #a91620;
}