body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', sans-serif;
    background-color: rgba(248, 255, 60, 0.4);
}

.header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    color: rgb(239, 255, 90); /* Bílá barva písma */
    text-shadow:
        -1px -1px 0 rgb(34, 34, 34),  
         1px -1px 0 rgb(42, 41, 41),
        -1px  1px 0 rgb(25, 24, 24),
         1px  1px 0 rgb(40, 39, 39); /* Černý okraj */
    padding: 10px;
    background-color: rgba(235, 235, 230, 0.4);
    width: 100%;
    position: fixed;
    top: 0;
}

.logo h1 {
    margin: 0;
}

.describe {
    text-align: center;
    margin: 0 20px;
    grid-column: 1 / span 2;
}

.contact {
    justify-self: end;
    padding-right: 20px;
}

.company {
    padding-left: 20px;
}

.contact-link {
    color: rgb(239, 255, 90); /* Bílá barva písma */
    text-shadow:
        -1px -1px 0 black,  
        1px -1px 0 black,
        -1px  1px 0 black,
        1px  1px 0 black;
    text-decoration: none;
    font-size: 22px;
    animation: pulse 1.5s infinite alternate; /* Použití animace pulse */
}

@keyframes pulse {
    0% {
        font-size: 22px; /* Počáteční velikost */
    }
    100% {
        font-size: 24px; /* Konečná velikost */
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 10px;
    margin-top: 20px;
    padding: 0;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
}

.modal-content img {
    margin-top: 5vh;
    width: auto;
    height: 90vh;
    object-fit: contain;
}

.close {
    color: rgb(70, 69, 69);
    background-color: rgb(221, 221, 210);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding-top: 5px;
    font-size: 30px;
    float: right;
    font-weight: bold;
    margin-right: 20px;
    cursor: pointer;
    z-index: 2;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgb(70, 69, 69);
    border: none;
    cursor: pointer;
    background-color: rgb(221, 221, 210);
    border-radius: 50%;
    font-size: 30px;
}

.prev {
    left: 10px;
    padding: 10px 20px 10px 15px;
}

.next {
    right: 10px;
    padding: 10px 15px 10px 20px;
}


@media screen and (max-width: 768px) {
    header {
        padding-top: 0;
    }
    .logo h1 {
        font-size: 20px;
        margin: 0;
    }
    .contact-link {
        font-size: 20px;
    }
    .modal-content img {
        max-height: calc(100vh - 40px);
        max-width: calc(100vw - 40px);
    }

    .gallery {
        width: 100%;
        grid-template-columns: repeat(2, minmax(auto, 1fr));
        margin: 20px 0;
    }
    /* Sem vložte pravidla pro responsivní design pro obrazovky s maximální šířkou 768px */
}
