@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');
/* --- STYLY PRO GALERII (Bez pohyblivého pozadí) --- */

/* Pokud má body tuto třídu, pozadí se nehýbe */
body.static-bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed; /* Zafixuje pozadí */
    background-color: black;
    margin: 0;
    padding: 0;
    
}

.special-elite-regular {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}
/* Plynulé objevení celé mřížky galerie (Fade In) */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    padding: 50px;
    animation: fadeInPage 1.5s ease-in; /* Animace trvá 1.5s */
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Kontejner pro jeden náhled obrázku */
.img-container {
    width: 300px;
    height: 200px;
    overflow: hidden; /* Důležité: ořízne obrázek při zoomu */
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s ease;
}

.img-container:hover {
    border-color: rgba(255,255,255,0.5);
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Vyplní kontejner bez deformace */
    transition: transform 0.6s ease; /* Plynulost zoomu */
    cursor: pointer;
}

/* ZOOM EFEKT: Obrázek se při najetí zvětší o 15% */
.img-container img:hover {
    transform: scale(1.15);
}

/* --- MODÁLNÍ OKNO (Lightbox) --- */
.modal {
    display: none; /* Schované na začátku */
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Velmi tmavé pozadí */
    
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    
}

/* Styl pro zvětšený obrázek */
.mySlides img {
    max-width: 90%;
    max-height: 80vh; /* Maximálně 80% výšky obrazovky */
    border: 3px solid white;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    
}

/* Tlačítko pro zavření (X) */
.close {
    position: absolute;
    top: 20px; right: 35px;
    color: rgb(48, 48, 48);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}



/* Šipky pro přepínání (Prev/Next) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    
}

.next { right: 20px; border-radius: 3px 0 0 3px; }
.prev { left: 20px; }

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgb(255, 255, 255);
}

.navbar {
    display: flex;
    justify-content: space-between; /* Logo vlevo, menu vpravo */
    align-items: center;
    padding: 20px 50px;
}

.logo {
    font-size: 80px;
    font-weight: bold;
    color: white;
              font-family: "Fredericka the Great", serif;
  font-weight: 400;
  font-style: normal;
}

.pencil-text {
    font-size: 40px;
    font-weight: bold;
    color: white;
    font-family: "Special Elite", system-ui;
  font-weight: 200;
  font-style: normal;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: 25px;
    transition: 0.3s;
    font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Interaktivita: Změna barvy při najetí myší */
.nav-links a:hover {
    color: gray;
    text-decoration: underline;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Aby bylo nad navigační lištou*/
    
}
.bar {
    width: 35px;
    height: 4px;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 0px rgba(0,0,0,0,2);
    
    
}


/* Responzivita pro mobily */
@media screen and (max-width: 768px) {
/* Zvětšení loga - jen pro mobil */
    .logo {
        font-size: 70px !important; 
        margin-bottom: 10px;
        text-align: center;
        width: 100%;
    }
    .navbar {
        flex-direction: column; /* Dáme logo a čárky pod sebe */
        height: auto; /* Výška se přizpůsobí obsahu */
        padding: 20px 0;
        justify-content: center;
        align-items: center; /* Všechno v navbaru bude ve středu */
    }

    /* Čárky menu */
    .menu-toggle {
        display: flex !important;
        position: static;
        margin: 0 auto;
        order: 2;
    }

    /* SCHOVÁNÍ TEXTU - aby neustále nestrašil na ploše */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%; /* Vyhodí menu doprava za roh */
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.497); /* Černé pozadí menu */
        justify-content: center;
        align-items: center;
        transition: 0.5s ease-in-out;
        z-index: 1000;
        visibility: hidden; /* Pojistka: menu není vidět */
    }

    /* AKTIVNÍ MENU - když klikneš na čárky */
    .nav-links.active {
        right: 0 !important;
        visibility: visible !important; /* Menu se zviditelní */
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links a {
        font-size: 30px;
        color: white;
    }

    /* Mřížka galerie na mobilu (pod sebe) */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        padding: 20px;
        margin-top: 80px;
    }
    .img-span-2 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}
