fieldset{border:0;}
input.text,
input[type="text"],
input[type="button"],
input[type="submit"],
.inpy -c ?? box {
-webkit-appearance: none;
border-radius: 0;
}

input::-moz-focus-inner { 
  border: 0; 
}
html{  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  
  }
*, *:before, *:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}


body,html {
   height:100%; min-height: 100%;
}

a,input,button{transition: all .2s ease-out;-moz-transition:  all .2s ease-out;-webkit-transition:  all .2s ease-out;-o-transition:  all .2s ease-out;}

a{-webkit-tap-highlight-color: rgba(255, 255, 255, 0);}
*{margin:0;padding:0px;outline-width: 0px;outline-color: transparent;}
*{ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
.clear{clear: both;line-height: 0;height:0px;font-size: 0;}
body{text-align: center;position: relative;color:#000;width:100%;max-width:100%;}
html{text-align: center;position: relative;}
                 .parallax-mirror {text-align: left;}
a img{border:0px;}

img{border:0;}

select::-ms-expand {
    y sp ??  none;
}

select{
  display: block;    
  -webkit-appearance: none;
  
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;     
  border-radius:0;   
}

img { -ms-interpolation-mode: bicubic; }

body,html{background-color: #fff;text-align: center;font-family: 'Roboto';color:#000;min-height:100vh;display:flex;flex-direction:column;}

.logo,#logo,h1,h2,h3{font-family: 'Merriweather';}

#logo{font-size: 20px;font-weight: 400;text-align: left;height:70px;padding:10px;position: absolute;z-index: 2;}
#logo img{float: left;width:30px;height:auto;}
#logo span{display: inline-block;padding:7px;padding-left: 10px;}
#logo a{color:#fff;text-decoration: none;}


.home #logo{position: relative;background-color: #6a6a6a;}


body.home{background-color: #1a1a1a;} 


/* Header stránky */
#header_page {
    text-align: center;
    padding: 220px 20px 80px 20px;
    margin: 0;
    width: 100%;
    height: auto;
    background-color: #272727;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 10px 20px -10px rgba(0, 0, 0, 0.6),
        inset 0 -10px 20px -10px rgba(0, 0, 0, 0.6);
    position: relative;
    transition: height 0.6s ease, min-height 0.6s ease, box-shadow 0.6s ease;
}

/* Rozbalený stav - celá výška obrazovky */
#header_page.expanded {
    height: 100vh;
    min-height: 100vh;
    box-shadow: none;
}

/* Při rozbalení skryjeme overlay a obsah */
#header_page.expanded .header-page-overlay {
    opacity: 0;
    transition: opacity 0.6s ease;
}

#header_page.expanded .header-page-content {
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Titulek obrázku - zobrazí se pouze po rozbalení */
.header-image-title {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    max-width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

#header_page.expanded .header-image-title {
    opacity: 1;
}

@media (max-width: 768px) {
    .header-image-title {
        font-size: 14px;
        padding: 10px 20px;
        bottom: 70px;
    }
}

.header-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
background: linear-gradient(
  180deg,
  rgba(61, 44, 20, 0.70) 0%,
  rgba(61, 44, 20, 0.75) 100%
);
    pointer-events: none;
}

.header-page-content {
    position: relative;
    z-index: 2;
}

/* Tlačítko pro rozbalení/sbalení headeru */
.header-expand-toggle {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #fff;
}

.header-expand-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.header-expand-toggle .expand-icon {
    display: block;
}

.header-expand-toggle .collapse-icon {
    display: none;
}

#header_page.expanded .header-expand-toggle .expand-icon {
    display: none;
}

#header_page.expanded .header-expand-toggle .collapse-icon {
    display: block;
}

@media (max-width: 768px) {
    .header-expand-toggle {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .header-expand-toggle svg {
        width: 20px;
        height: 20px;
    }
}

.back-link {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #f6f6f6;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fff;
}

.back-arrow {
    font-size: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

.article-title {
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 auto;
    text-align: center;
    max-width: 900px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 28px;
    }
}

/* Custom Fields Pro - Page Display */
.custom-fields-data {
    margin: 40px 0;
    text-align: center;
}

.custom-fields-data h2 {
    font-family: 'Merriweather', serif;
    color: #fff;
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}

/* Heading pole jako H2 */
.cfp-heading-output h2 {
    font-family: 'Merriweather', serif;
    color: #000000;
    font-size: 42px;
    font-weight: 400;
    margin: 60px auto 40px auto;
    text-align: center;
    max-width: 800px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .cfp-heading-output h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .cfp-heading-output h2 {
        font-size: 30px;
    }
}

.cfp-group {
    margin-bottom: 60px;
    
}

.cfp-field-output {
    margin-bottom: 25px;
}

.cfp-field-output strong {
    display: none;
}

/* Textový obsah - 800px */
.cfp-text-content {
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: left;
    padding: 0 20px;
}

.cfp-text-content > div,
.cfp-text-content > span {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #000000;
}

.cfp-text-content > div p {
    margin-bottom: 1.2em;
}

.cfp-text-content > div p:last-child {
    margin-bottom: 0;
}

/* Obsah na plnou šířku - galerie a obrázky */
.cfp-full-width {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* Obrázky - jednotlivé */
.cfp-image-display {
    margin: 40px 0;
    text-align: center;
}

.cfp-image-display a {
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.cfp-image-display img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.cfp-image-display a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Galerie - obrázky vedle sebe se stejnou výškou */
.cfp-gallery-display {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.cfp-gallery-display a {
    flex: 0 1 auto;
    position: relative;
    cursor: pointer;
    display: block;
    height: 300px;
    overflow: hidden;
    background-color: #0e111e;
}

.cfp-gallery-display img {
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.cfp-gallery-display a:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}

/* Responzivní galerie */
@media (max-width: 1024px) {
    .cfp-gallery-display {
        gap: 15px;
    }
    .cfp-gallery-display a {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .cfp-gallery-display {
        gap: 12px;
        margin: 40px 0;
    }
    .cfp-gallery-display a {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .cfp-gallery-display {
        gap: 10px;
        margin: 30px 0;
    }
    .cfp-gallery-display a {
        height: 180px;
    }
}

/* Repeater - řádky */
.cfp-repeater-display {
    margin: 40px 0;
}

.cfp-repeater-row {
    margin-bottom: 80px;

}

.cfp-repeater-row:last-child {
    margin-bottom: 40px;
}

.cfp-sub-field-output {
    margin-bottom: 20px;
}

.cfp-sub-field-output strong {
    display: none;
}

/* Toggle jako grafický předěl */
.cfp-divider-output {
    margin: 90px auto 50px auto;
    text-align: center;
}

.cfp-wave-divider {
    width: 150px;
    height: 24px;
    color: #666;
    opacity: 0.6;
    display: inline-block;
}

/* Homepage Grid */
.homepage-grid {
    padding: 60px 20px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.grid-item {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    height: 500px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
    backface-visibility: hidden;
    transform: translateZ(0);
    
}

.grid-item:hover {
    transform: translateY(0);
    transform: scale(1);
    
    outline: 20px solid #000;
    outline-offset: -20px; /* posune outline dovnitř */
}

.grid-item-overlay, .grid-item .grid-item-image, .grid-item .slideshow-slide{
     
     transition: transform 0.4s ease, box-shadow 0.4s ease, opacity .5s ease-in-out;;   
}

.grid-item:hover .slideshow-slide,.grid-item:hover .grid-item-image{
    transform: scale(1.02);
     transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.grid-item:hover .grid-item-overlay{
    
     transition: transform 0s ease, box-shadow 0.4s ease;
}


.grid-item-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.grid-item-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Slideshow styles */
.grid-item-slideshow {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.slideshow-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0 !important;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
    z-index: 0;
}

.slideshow-slide.active {
    opacity: 1 !important;
}

.slideshow-slide.slide-current {
    z-index: 1;
}

.slideshow-slide.slide-next {
    z-index: 2;
}

.grid-item-overlay {
    position: absolute;
    top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.grid-item:hover .grid-item-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.75) 100%);
}

.grid-item-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-family: 'Merriweather', serif;
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    z-index: 3;
    margin: 0;
    padding: 20px 20px;
    width: 90%;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    transition: transform 0.4s ease;
}

.grid-item:hover .grid-item-title {
    transform: translate(-50%, -50%) translateY(-2px);
}

.grid-item-button {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 40px;
    border-radius: 50px;
    z-index: 3;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    transition: all 0.4s ease;
    pointer-events: auto;
}

.grid-item:hover .grid-item-button {
    transform: translateX(-50%) translateY(-5px);
}

.grid-item-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) translateY(-5px);
}

/* Responzivní grid */
@media (min-width: 1700px) {
    .grid-item {
        height: 450px;
    }

    .grid-item-title {
        font-size: 42px;
    }

    .grid-item-button {
        font-size: 15px;
        padding: 14px 38px;
    }
}

@media (max-width: 1700px) {
    .homepage-grid {
        max-width: 1200px;
    }

    .grid-item {
        height: 450px;
    }

    .grid-item-title {
        font-size: 42px;
    }

    .grid-item-button {
        font-size: 15px;
        padding: 14px 38px;
    }
}

@media (max-width: 1024px) {
    .grid-item {
        height: 400px;
    }

    .grid-item-title {
        font-size: 40px;
    }

    .grid-item-button {
        font-size: 15px;
        padding: 12px 35px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        gap: 30px;
    }

    .grid-item {
        min-height: 350px;
    }

    .grid-item-title {
        font-size: 28px;
    }

    .grid-item-button {
        font-size: 14px;
        padding: 10px 30px;
        opacity: 1;
        bottom: 40px;
    }

    .homepage-grid {
        padding: 40px 15px;
    }
}

/* Container a sekce */
.content-section {
    padding: 40px 20px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.main-article {
    text-align: center;
}

.article-content {
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

/* Navigace mezi sekcemi */
.section-navigation {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin: 60px auto 0 auto;
    max-width: 1000px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.nav-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 25px 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    border-color: #666;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-button:hover::before {
    opacity: 1;
}

.nav-label {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nav-title {
    font-family: 'Merriweather', serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 8px;
}

.nav-arrow {
    font-size: 24px;
    color: #666;
    transition: all 0.3s ease;
}

.nav-button:hover .nav-arrow {
    color: #fff;
}

.nav-prev .nav-arrow {
    margin-bottom: 10px;
}

.nav-next .nav-arrow,
.nav-parent .nav-arrow {
    margin-top: 10px;
}

.nav-prev:hover .nav-arrow {
    transform: translateX(-5px);
}

.nav-next:hover .nav-arrow {
    transform: translateX(5px);
}

.nav-parent:hover .nav-arrow {
    transform: translateY(-5px);
}

.nav-parent {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

/* Responzivní navigace */
@media (max-width: 768px) {
    .section-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-button {
        min-height: 100px;
        padding: 20px 25px;
    }

    .nav-title {
        font-size: 18px;
    }
}

/* Obecné informace */
.obecne-info-section {
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #cdcdcd;
    border-bottom: 1px solid #cdcdcd;
    padding-bottom: 40px;
    max-width:950px;
    margin-bottom: 70px;
    
}

.obecne-info-heading {
    font-family: 'Merriweather', serif;
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.obecne-info-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    text-align: left;
}

.obecne-info-content p {
    margin-bottom: 1em;
}

.obecne-info-content p:last-child {
    margin-bottom: 0;
}

/* Footer - sticky to bottom */
#footer {
    margin-top: auto;
    background-color: #000;
    padding: 30px 20px;
    width: 100%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

.footer-content a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #fff;
}

/* @media print - browser direct print (PDF uses injected CSS via Puppeteer) */
@media print {
    #header, #footer, .section-navigation, .obecne-info-section,
    .header-expand-toggle, .back-link, .vystavy-pdf-wrap { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .cfp-gallery-display a { height: 160px !important; }
    .cfp-repeater-row, .cfp-text-content, .cfp-full-width,
    .cfp-image-display { break-inside: avoid; page-break-inside: avoid; }
}
