/* Kontejner pro celou galerii */
.gallery-container {
    font-family: sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* --- STYL PRO SEZNAM ALB (HLAVNÍ STRÁNKA) --- */
.album-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.album-card {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.album-card a {
    display: block;
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

/* --- STYL PRO FOTKY V GALERII --- */
.photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    overflow: hidden;
    border-radius: 6px;
    line-height: 0; /* Odstraní mezeru pod obrázkem */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: opacity 0.3s;
}

.photo-item:hover {
    opacity: 0.9;
}

.photo-item img {
    width: 100%;
    height: 200px; /* Pevná výška pro zarovnání */
    object-fit: cover; /* Ořízne fotku tak, aby vyplnila prostor bez deformace */
    cursor: pointer;
    border: none;
}

/* Tlačítko zpět */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: #eee;
    text-decoration: none;
    color: #555;
    border-radius: 4px;
    font-size: 0.9em;
}

.back-link:hover {
    background: #ddd;
}


/* lightbox --------------------------start--------------- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}