/*
Theme Name: Pergola Theme
Author: Maroš Rajčák
Version: 1.0
*/

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url('/images/background.jpg') no-repeat center center/cover;
    color: white;
}

.overlay-bg {
    background: rgba(0,0,0,0.6);
    min-height: 100vh;
    padding: 40px 20px;
}

.center {
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: auto;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

@media(max-width: 768px){
    .gallery {
        grid-template-columns: 1fr;
    }
}

.gallery-item img {
    display: block;
    width: 100%;
}

.img-desc {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
}

.lightbox {
    position: fixed;
    display: none;
    flex-direction: column;   
    justify-content: center;
    align-items: center;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    text-align: center;
    padding: 20px;
}

#lightboxImg {
    max-width: 90%;
    max-height: 70vh;
    margin-bottom: 20px;
    border-radius: 10px;
}

#lightboxTitle {
    margin-bottom: 10px;
}

#lightboxDesc {
    max-width: 600px;
    color: #ddd;
    line-height: 1.5;
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;

    z-index: 9999;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 70%;
    margin-bottom: 15px;
}

#closeBtn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.contact {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}