/* ==========================================================
   ZÁKLAD STRÁNKY
   ========================================================== */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 70px 0 0 0;
    width: 100%;
    min-height: 100vh;
    background-image: url("../img/pozadi.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode',
    'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}


/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #222;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================================
   LOGO
   ========================================================== */
.logo {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode',
    'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    font-style: normal;
    text-decoration: none;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
}

.logo:hover {
    color: #bdbdbd;
}

.logo:hover img {
    filter: brightness(0.8);
}


/* ==========================================================
   HLAVNÍ MENU
   ========================================================== */
.menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li {
    position: relative;
}

.menu a {
    display: block;
    padding: 20px 24px;
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode',
    'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-decoration: none;
}

.menu a:hover {
    background-color: #444;
}


/* ==========================================================
   ROLETKA
   ========================================================== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 0;
    background-color: #333;
    list-style: none;
}

.dropdown-menu a {
    padding: 14px 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


/* ==========================================================
   HAMBURGER
   ========================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}


/* ==========================================================
   NAVBAR – MOBIL
   ========================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
    }
    .menu.active {
        display: flex;
    }
    .menu li {
        width: 100%;
    }
    .menu a {
        padding: 15px 10px;
    }
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #333;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}


/* ==========================================================
   GALERIE – NADPIS
   ========================================================== */
.header {
    text-align: center;
    color: darkorange;
}

.header h1 {
    margin: 0 0 10px;
    text-align: center;
    color: darkorange;
    font-family: "Caacupe One", sans-serif;
    font-size: 52px;
    font-weight: 400;
    font-style: normal;
}


/* ==========================================================
   GALERIE – FOTKY
   ========================================================== */
.row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 96%;
    max-width: 1500px;
    margin: 20px auto 50px;
    gap: 15px;
}

.column {
    width: 100%;
    overflow: hidden;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.column img {
    display: block;
    width: 100%;
    height: 330px;
    margin: 0;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.column img:hover {
    transform: scale(1.04);
}

.gallery-img {
    cursor: pointer;
}


/* ==========================================================
   GALERIE – TABLET
   ========================================================== */
@media (max-width: 900px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
    .column img {
        height: 260px;
    }
}


/* ==========================================================
   GALERIE – MOBIL
   ========================================================== */
@media (max-width: 600px) {
    .row {
        grid-template-columns: 1fr;
        width: 92%;
        gap: 15px;
    }
    .column img {
        height: 280px;
    }
    .header {
        padding: 20px 15px 5px;
    }
    .header h1 {
        font-size: 26px;
    }
}


/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 85%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    width: 55px;
    height: 55px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.25);
}


/* ==========================================================
   LIGHTBOX – MOBIL
   ========================================================== */
@media (max-width: 600px) {
    .lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    .lightbox-close {
        top: 10px;
        right: 15px;
    }
}
