
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: Arial, sans-serif;
    color: white;
    background-color: #01263b; /* ====== #01263b ====== */
}

/* ====== FONTY ====== */

@font-face {
    font-family: 'Futura LT Pro';
    src: url('FuturaLTPro-Display.woff2') format('woff2'),
         url('FuturaLTPro-Display.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('MyriadPro-Regular.woff2') format('woff2'),
         url('MyriadPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura LT Pro';
    src: url('FuturaLTPro-LightCond.woff2') format('woff2'),
         url('FuturaLTPro-LightCond.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura LT Pro';
    src: url('FuturaLTPro-XBold.woff2') format('woff2'),
         url('FuturaLTPro-XBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Futura LT Pro';
    src: url('FuturaLTPro-Book.woff2') format('woff2'),
         url('FuturaLTPro-Book.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ====== HEADER (sjednocený s indexem) ====== */

    header {
        width: 100%;
	height: 18vh;
        padding: 0px 0px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 0;
        z-index: 10;
	background-color: rgba(1, 38, 59, 1.0); /* modrý filtr */
    }


.logo {
    width: 100%;
    max-width: 150px;}


.sipka {
    width: 20px;
    max-width: 50px;
}

/* ====== MENU ====== */

nav ul {
    list-style: none;
    font-family: "Futura LT Pro", sans-serif;
    font-weight: 500;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

nav ul li {
    position: relative;
    cursor: pointer;
}

nav ul li a {
    color: #eb7519bd;
    text-decoration: none;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 12px;
}

nav ul li:hover {
    background-color: rgba(55, 71, 79, 1.0);
    border-radius: 5px;
}

nav ul li a:hover {
    color: #ffffffbd;
    transition: 0.5s ease;
}

/* DROPDOWN */
nav ul li ul {
    display: none;
    position: absolute;
    top: 23px;
    left: 0;
    background: rgba(55, 71, 79, 1.0);
    padding: 20px 0;
    border-radius: 5px;
    min-width: 150px;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    padding: 8px 15px;
}

nav ul li ul li a {
    font-size: 14px;
}

/* ====== MOBILE ====== */

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .logo {
        width: 120px;
    }

    .menu-toggle {
        display: block;
        font-size: 26px;
        cursor: pointer;
        color: white;
        position: absolute;
        right: 20px;
        top: 20px;

    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        background: rgba(55, 71, 79, 0.8);
        position: fixed;
        top: 60px;
        right: 0;
        padding: 10px;
        display: none;

    }

    nav ul.show {
        display: flex;
    }

    nav ul li ul {
        position: static;
        background: none;
    }
}

    /* Základní fade + slide */

    .hero h1,
    .hero h2,
    .hero p {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeSlide 1.8s ease forwards;
    }

    /* postupné zpoždění */
    .hero h1 {
        animation-delay: 0.3s;
    }

    .hero h2 {
        animation-delay: 0.3s;
    }

    .hero p:nth-of-type(1) {
        animation-delay: 0.8s;
    }

    .hero p:nth-of-type(2) {
        animation-delay: 1.6s;
    }

    /* samotná animace */
    @keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }

/* ====== HERO GALERIE ====== */

    .hero {
        position: absolute;
        width: 70%;
        margin-bottom: 0;
        margin-top: 0;
	height: 18vh;
        display: grid;
        padding-left: 16vw;
        text-align: left;
        justify-content: end;
        opacity: 1.0;
        grid-template-columns: repeat(4, minmax(100px, 1fr));
	background-color: rgba(1, 38, 59, 1.0);
        z-index: 99;
    }
    .hero p {
        font-family: "Myriad Pro", sans-serif;
        font-weight: normal;
        letter-spacing: 2px;
        line-height: 1.0;
        margin: 8px 0;
        color: #ffffffbd;
        font-size: 11px;
    }
    .hero h3 {
        font-family: "Myriad Pro", sans-serif;
        font-weight: normal;
        letter-spacing: 2px;
        line-height: 1.0;
        margin: 8px 0;
        color: #ffffffbd;
        font-size: 11px;
    }
    .hero h1 {
        font-family: "Futura LT Pro", sans-serif;
        font-weight: bold;
        font-size: 18px;
        text-align: center;
        letter-spacing: 2px;
        margin-bottom: 0;
        margin-top: 30px;
        color: #eb7519bd;
    }
    .hero h2 {
        font-family: "Futura LT Pro", sans-serif;
        font-weight: bold;
        font-size: 18px;
        text-align: left;
        letter-spacing: 2px;
        margin-bottom: 0;
        margin-top: 10px;
        color: #eb7519bd;
    }
    .block {
        margin-top: 18vh;
        font-family: "Futura LT Pro", sans-serif;
        font-weight: bold;
        font-size: 22px;
        text-align: center;
        letter-spacing: 2px;
    }
    .block h1 {
        font-family: "Futura LT Pro", sans-serif;
        font-weight: bold;
        font-size: 29px;
        letter-spacing: 2px;
        margin-bottom: 0;
        margin-top: 31px;
        color: #eb7519bd;
    }
    .block p {
        font-family: "Myriad Pro", sans-serif;
        font-weight: normal;
        letter-spacing: 2px;
        line-height: 1.0;
        margin: 30px 0;
        color: #ffffffbd;
        font-size: 11px;
    }
    .str {
        margin-top: 18vh;
	width: 70%;
        padding-left: 16vw;
        flex-direction: column;
        font-family: "Futura LT Pro", sans-serif;
        font-weight: normal;
        font-size: 15px;
        text-align: left;
        letter-spacing: 2px;
    }
    .str h1 {
        font-family: "Futura LT Pro", sans-serif;
        font-weight: 700;
        font-size: 25px;
        letter-spacing: 2px;
        margin-bottom: 10px;
        margin-top: 10px;
        color: #eb7519bd;
    }
    .str p {
        font-family: "Myriad Pro", sans-serif;
        font-weight: normal;
        letter-spacing: 2px;
        line-height: 1.0;
        margin: 0 0;
        color: #ffffffbd;
        font-size: 12px;
    }
    .str1 {
        margin-top: 3vh;
	width: 70%;
        padding-left: 16vw;
        flex-direction: column;
        font-family: "Futura LT Pro", sans-serif;
        font-weight: normal;
        font-size: 15px;
        text-align: left;
        letter-spacing: 2px;
    }
    .str1 h1 {
        font-family: "Futura LT Pro", sans-serif;
        font-weight: 700;
        font-size: 25px;
        letter-spacing: 2px;
        margin-bottom: 10px;
        margin-top: 10px;
        color: #eb7519bd;
    }
    .str1 p {
        font-family: "Myriad Pro", sans-serif;
        font-weight: normal;
        letter-spacing: 2px;
        line-height: 1.0;
        margin: 0 10;
        color: #ffffffbd;
        font-size: 12px;
    }

/* ====== GRID VIDEÍ ====== */
.bg {
    width: 100%;
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    box-shadow: inset 0 0 0 2000px rgba(3, 51, 79, 0.5);
}

.galerie-grid {
    width: 70%;
    max-width: 1000px; /* Zamezí přetečení na obřích monitorech */
    margin: 30px auto;  /* Automatické vycentrování celé galerie */
    height: auto;       /* Výška se přizpůsobí obsahu (žádné mačkání) */
    
    display: grid;
    /* Kouzlo: Automaticky vytvoří sloupce o min. šířce 220px, které se pružně roztáhnou */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 5px;          /* Rovnoměrné mezery mezi náhledy */
    justify-content: center;
}

.video-box {
    width: 100%;        /* Box se přizpůsobí buňce mřížky */
    aspect-ratio: 16 / 9; /* Zachová poměr stran videa (už žádné deformace) */
    position: relative;
    cursor: pointer;
    margin: 0 auto;
}

.video-box img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Zachová poměr stran videa (už žádné deformace) */
    border-radius: 10px;
}

.video-box .popis {
    position: absolute;
    height: 97.7%;
    inset: 0;
    flex-direction: column;
    background: rgba(3, 51, 79, 0.85);
    color: #eb7519bd;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border-radius: 10px;
}

.video-box h1 {

    font-family: "Futura LT Pro", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.video-box p {

    font-family: "Futura LT Pro", sans-serif;
    font-weight: normal;
    font-size: 9px;
    color: white;
}

.video-box:hover .popis {
    opacity: 1;
}

/* Lightbox skrýt ve výchozím stavu */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 38, 59, 0.75);
    justify-content: center;
    align-items: center;
}

/* Zobrazený Lightbox */
.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Navigace mezi úseky galerie */
.kategorie-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.kat-btn {
    background: transparent;
    border: 0px solid #eb7519bd;
    color: #ffffffbd;
    padding: 10px 20px;
    font-family: "Futura LT Pro", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.4s ease;
}

.kat-btn:hover,
.kat-btn.active {
    background-color: #eb7519bd;
    color: white;
}

/* ====== ÚPRAVY PRO MOBILY A TABLETY ====== */
@media (max-width: 768px) {

    /* 1. Galerie bude zabírat celou šířku a výška se přizpůsobí obsahu */
    .galerie-grid {
        width: 90%;          /* Roztáhne mřížku na mobilu */
        height: auto;        /* Zruší pevnou výšku 78vh, aby se videa nesmačkala */
        grid-template-columns: 1fr; /* Zobrazí videa v 1 sloupci pod sebou */
        gap: 10px;           /* Mezera mezi jednotlivými videi */
        margin-bottom: 10px;
    }

    /* 2. Zvětšení klikacího boxu pro pohodlné dotykové ovládání */
    .video-box {
        max-width: 100%;     /* Box zabere celou šířku sloupce */
        height: auto;        /* Výška se dopočítá podle obrázku */
    }

    .video-box img {
        width: 100%;
        height: auto;
    }

    .video-box .popis {
        width: 100%;
        height: 99%;
    }

    /* 3. Úprava tlačítek kategorií na mobilu */
    .kategorie-nav {
        gap: 8px;
    }

    .kat-btn {
        padding: 8px 12px;
        font-size: 11px;
    }

    .hero {
        width: 90%;          /* Roztáhne mřížku na mobilu */
        height: auto;        /* Zruší pevnou výšku 78vh, aby se videa nesmačkala */
        grid-template-columns: 1fr; /* Zobrazí videa v 1 sloupci pod sebou */
        gap: 2px;           /* Mezera mezi jednotlivými videi */
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ====== PAGE TRANSITION OVERLAY ====== */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #01263b; /* Barva pozadí tvého webu, nebo zadej #000000 pro černou */
    z-index: 999999;
    pointer-events: none; /* Aby neblokoval klikání, když je průhledný */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Když je overlay aktivní (zatměno) */
#page-transition-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Zamezí opakovanému klikání během přechodu */
}