/* Obecné nastavení */
body {
    margin: 0;
    padding: 0;
    font-family: 'MujFont', sans-serif;
    background-color: white; /* Bílé pozadí */
    color: #333; /* Tmavě šedý text */
}

/* Hlavička */
header {
    background-color: black; /* Černé pozadí */
    color: white;            /* Bílý text */
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@font-face {
    font-family: 'MujFont';
    src: url('fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Ikona pro otevření menu */
.menu-toggle {
    cursor: pointer;
    width: 80px;
    height: 80px;
}

/* Vyskakovací menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: black; /* Černé pozadí */
    color: white;
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 999;
}

.side-menu.open {
    right: 0;
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
}

.side-menu ul li {
    padding: 20px;
    border-bottom: 1px solid #444;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
}

.side-menu ul li a:hover {
    color: #ddd;
}

/* Tlačítko pro zavření menu */
.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.close-menu img {
    width: 80px;
    height: 80px;
}

/* Hlavní obsah */
main {
    padding: 2rem;
}

/* Patička */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* galerie obrazku */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    justify-items: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1; /* Čtvercový poměr stran */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Obrázky vyplní celý prostor bez deformace */
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
