/*
Theme Name: Pergola Theme
Author: Maroš Rajčák
Version: 1.0
*/

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: url('https://pergolymaros.sk/wp-content/uploads/2026/04/background.png') no-repeat center center/cover;
    color: white;
}

.overlay-bg {
    background: rgba(0,0,0,0.6);
    min-height: 100vh;
    padding: 40px 20px;
}

.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;
    color: white;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.lightbox {
    position: fixed;
    display: none;
    justify-content: center;
    align-items: center;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
}

.contact {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

#lightbox.active {
    display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
}

#close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    cursor: pointer;
    color: white;
}