@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

html, body, p, h1, h2, h3, h4, h5, h6, nav, button,
.photo-caption, .photo-error {
    font-family: 'Open Sans', sans-serif;
}

/* Preserve the legacy Symbol font used for legal list markers. */
[style*="font-family: 'Times New Roman'"],
[style*="font-family: 'Libre Franklin'"] {
    font-family: 'Open Sans', sans-serif !important;
}

#slider.video-hero {
    height: auto !important;
    margin-top: 90px;
    padding: clamp(24px, 5vw, 72px) 16px;
    text-align: center;
    background: #373429 url('/web-data/images/uvod-hlavni-fotka-930.png') center / cover no-repeat;
}

.video-hero .slider-headline-wrapper {
    position: static;
    border: 0;
}

.video-hero .slider-headline {
    padding: 12px 16px;
}

.video-hero .slider-headline strong {
    font-size: clamp(26px, 4vw, 40px);
}

#yt-player {
    display: inline-block;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 12px 16px;
    color: #fff;
    background: #26241f;
}

@media (max-width: 767px) {
    #slider.video-hero {
        margin-top: 65px;
    }
}

.video-notice {
    margin: 6px 0 0;
    color: inherit;
    font-size: .875rem;
}

#yt-player a {
    color: inherit;
    text-decoration: underline;
}

.video-button {
    padding: 8px 14px;
    color: #fff;
    background: #6f381f;
    border: 1px solid #fff;
    border-radius: 3px;
}

.video-button:focus-visible {
    outline: 3px solid #2675c2;
    outline-offset: 3px;
}

.video-dialog {
    width: min(94vw, 900px);
    width: min(94vw, 900px, calc((100dvh - 90px) * 16 / 9 + 24px));
    max-height: 94vh;
    padding: 12px;
    color: #fff;
    background: #26241f;
    border: 0;
}

.video-dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}

.video-dialog iframe {
    display: block;
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    margin-top: 10px;
    border: 0;
}

/* Native photo viewer. */
.photo-viewer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 10px;
    border: 0;
    overflow: visible;
    background: #fff;
    color: #333;
    box-shadow: 0 0 14px #0008;
}

.photo-viewer::backdrop {
    background: rgb(0 0 0 / 30%);
}

.photo-viewer img {
    display: block;
    width: auto;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 150px);
    margin: auto;
    object-fit: contain;
}

.photo-viewer [hidden] {
    display: none;
}

.photo-caption,
.photo-error {
    max-width: min(50rem, calc(100vw - 60px));
    margin: 0 auto;
    padding: 10px 0 0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.photo-viewer button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.photo-viewer button:focus-visible {
    outline: 2px solid #997e33;
    outline-offset: 1px;
}

.photo-viewer button::after {
    display: block;
    width: 30px;
    height: 30px;
    margin: auto;
    background-image: url('/img/fancybox/fancybox.png');
    content: '';
}

.photo-viewer button:disabled {
    visibility: hidden;
}

.photo-close {
    top: -20px;
    right: -20px;
}

.photo-close::after {
    background-position: -40px 0;
}

.photo-previous,
.photo-next {
    top: 50%;
    transform: translateY(-50%);
}

.photo-previous {
    left: 10px;
}

.photo-previous::after {
    background-position: -40px -30px;
}

.photo-next {
    right: 10px;
}

.photo-next::after {
    background-position: -40px -60px;
}
