/* barvy */
:root{
    --barva-pozadi: #202020;
    --barva-pozadi-tmavsi: #121212;
    --barva-hover: #2A2A2A;
    --barva-text: #E6E6E6;
    --barva-podtext: #A5A5A5;
    --barva-highlight: #FBFBFB;

}
/* základ */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--barva-pozadi);
    color: var(--barva-text);
    font-family: Georgia, serif;
    line-height: 1.4;
}
/* hlavička */
header{
    min-height: 180px;
    background-image: url(img/logo/header.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 10px;
    z-index: 10;
}
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}
nav{
    position: relative;
    z-index: 2;
}
nav ul{
    list-style: none;
    display: flex;
    background-color: var(--barva-pozadi-tmavsi);
    border-radius: 7px;
    overflow: hidden;
}
nav li{
    border-right: 2px solid var(--barva-text);
}
nav a{
    display: block;
    padding: 5px 25px;
    color: var(--barva-text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
nav a:active{
    background-color: var(--barva-text);
    color: var(--barva-pozadi);
}
nav a::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--barva-text);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}
nav a:hover::before {
    transform: translateX(0);
}
nav a:hover {
    color: var(--barva-pozadi);
}
.menu-toggle {
    display: none;
}
/* rohová loga */
.corner-logo{
    position: fixed;
    width: 60px;
    height: auto;
    opacity: 0.8;
    z-index: -1;
}
.corner-logo img{
    width: 100%;
    height: auto;
    display: block;
}
.top-left{
    top: 20px;
    left: 20px;
}
.bottom-right{
    bottom: auto;
    right: 20px;
}
/* uvod */
.uvod{
    display: flex;
    padding: 60px 40px;
    gap: 40px;
    flex-wrap: wrap;
}
.uvod-text{
    flex: 1 1 45%;
    min-width: 280px;
    padding-left: 40px;
    padding-top: 60px;
}
.uvod-text h1 img{
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    padding-top: 20px;
}
.uvod-text p{
    color: var(--barva-podtext);
    margin-top: 10px;
    font-size: 20px;
    padding-top: 20px;
}
.uvod-image {
    flex: 1 1 45%;
    padding: 40px;
}
.uvod-image img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
    transition: transform 0.3s ease;
}
.uvod-image img:hover{
    transform: scale(1.02);
}
main{
    position: relative;
}
/* portfolio */
.filters{
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    flex-wrap: wrap;
}
.filters button{
    background: var(--barva-pozadi-tmavsi);
    border: 2px solid var(--barva-text);
    color: var(--barva-text);
    padding: 12px 22px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    transition: 0.25s ease;
}
.filters button:hover{
    background-color: var(--barva-text);
    color: var(--barva-pozadi);
}
.filters button.active{
    background: var(--barva-text);
    color: var(--barva-pozadi);
}
/* galerie */
.gallery{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 80px 80px;
}
.hidden {
    display: none !important;
}
.foto{
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    display: none;
}
.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
}
.foto:hover::after {
    opacity: 1;
}
/* lightbox */
#lightbox{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 100px;
    box-sizing: border-box;
    z-index: 9999;
}
#lightbox img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
#lightbox .close{
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 60px;
    color: var(--barva-podtext);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 100000;
}
#lightbox .close:hover{
    color: var(--barva-text);
}
#lightbox .prev,
#lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 80px;
    color: var(--barva-podtext);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 101;
}
#lightbox .prev:hover,
#lightbox .next:hover {
    color: var(--barva-text);
}
#lightbox .prev {
    left: 40px;
}
#lightbox .next {
    right: 40px;
}
.lightbox-content{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}
.lightbox-main{
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-main img{
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    padding: 100px;
}
.lightbox-thumbnails{
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.lightbox-thumbnails img{
    width: 80px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s ease;
    border: 2px solid transparent;
}
.lightbox-thumbnails img:hover{
    opacity: 1;
    border-color: var(--barva-text);
}
.lightbox-thumbnails img.active{
    opacity: 1;
    border-color: var(--barva-text);
}
/* kontakt */
.kontakt {
    max-width: 600px;
    padding: 120px 20px 80px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.kontakt h1{
    font-size: 48px;
    margin-bottom: 20px;
}
.kontakt-text{
    color: var(--barva-podtext);
    font-size: 18px;
    margin-bottom: 40px;
}
.kontakt-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.kontakt-form,
.kontakt-alt{
    width: 100%;
    max-width: 600px;
}
.kontakt-form input,
.kontakt-form textarea{
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--barva-podtext);
    background-color: var(--barva-pozadi-tmavsi);
    color: var(--barva-text);
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    overflow: hidden;
    resize: none;
    transition: 0.25s ease;
}
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder{
    color: var(--barva-podtext);
}
.kontakt-form input:focus,
.kontakt-form textarea:focus{
    outline: none;
    border-color: var(--barva-text);
}
.kontakt-form button{
    background: var(--barva-text);
    color: var(--barva-pozadi);
    border: none;
    padding: 14px;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s ease;
}
.kontakt-form button:hover{
    background: var(--barva-highlight);
}
.kontakt-alt{
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.kontakt-ig{
    display: flex;
    align-items: center;
    justify-content: left;
    padding-top: 20px;
    gap: 8px;
    padding-bottom: 10px;
    color: var(--barva-text);
    text-decoration: none;
    opacity: 0.8;
    transition: 0.25s ease;
}
.kontakt-ig img{
    width: 28px;
    height: 28px;
    transition: 0.25s ease;
}
.kontakt-ig:hover{
    opacity: 1;
    transform: translateY(-2px);
}
.kontakt-ig:hover img{
    filter: brightness(1.3);
}
/* patička */
footer{
    color: var(--barva-podtext);
    text-align: center;
    padding: px;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Responzivita */
@media(max-width: 768px){
    nav{
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    .menu-toggle{
        display: block;
        background: none;
        border: none;
        color: var(--barva-text);
        font-size: 30px;
        cursor: pointer;
    }
    nav ul.menu{
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--barva-pozadi-tmavsi);
        position: absolute;
        top: 100%;
        left: 0;
    }
    nav ul.menu.active{
        display: flex;
    }
    nav li{
        border-right: none;
        border-bottom: 1px solid var(--barva-text);
    }
    .uvod{
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
    }
    .uvod-text{
        padding: 0;
        text-align: left;
    }
    .uvod-text h1{
        display: flex;
        justify-content: center;
    }
    .uvod-text h1 img{
        max-width: 250px;
        margin: 0 auto;
    }
    .uvod-text p{
        font-size: 16px;
    }
    .uvod-image{
        padding: 0;
        min-width: 0;
    }
    .uvod-image img{
        border-radius: 5px;
    }
    #lightbox{
        padding: 10px;
    }
    .lightbox-main img{
        padding: 0;
        max-width: 100%;
        max-height: 85vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}
@media(max-width: 1024px){
    .gallery{
        grid-template-columns: repeat(2, 1fr);
        padding: 0 30px 50px;
    }
    .corner-logo{
        width: 40px;
    }
    #lightbox{
        padding: 10px;
        align-items: center;
    }
    .lightbox-content{
        width: 100%;
        height: 100%;
    }
    .lightbox-main{
        width: 100%;
        height: 100%;
    }
    .lightbox-main img{
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: 85vh;
        object-fit: contain;
    }
    .lightbox-thumbnails{
        flex-direction: row;
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: 90%;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding: 5px;
    }
    .lightbox-thumbnails img{
        width: 60px;
        flex-shrink: 0;
    }
    #lightbox .prev,
    #lightbox .next{
        font-size: 40px;
        opacity: 0.7;
    }
    #lightbox .close{
        font-size: 40px;
        top: 15px;
        right: 20px;
    }
}
@media(max-width: 600px){
    .gallery{
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 15px;
    }
    .filters{
        gap: 10px;
        padding: 20px;
    }
    .filters button{
        padding: 10px 16px;
        font-size: 14px;
    }
    .corner-logo{
        width: 30px;
    }
    #lightbox .prev,
    #lightbox .next{
        display: none;
    }
    .filters{
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .filters button{
        flex: 0 0 auto;
        white-space: nowrap;
    }
}
@media (max-width: 768px) and (orientation: landscape){
    .lightbox-main img{
        max-height: 95vh;
        max-width: 100vw;
    }
    #lightbox{
        padding: 5px;
    }
}
@media(hover: hover){
    .foto img{
        filter: brightness(0.8) contrast(0.9) grayscale(100%);
        transition: filter 0.3s ease, transform 0.4s ease;
    }
    .foto:hover img {
        filter: brightness(1) contrast(1) grayscale(0%);
        transform: scale(1.05);}
}
@media(hover: none)and(pointer: coarse){
    .foto:hover img{
        transform: none;
        filter: brightness(1) contrast(1);
    }
    .foto:hover::after{
        opacity: 0;
    }
}