* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    color: white;
    background: url('/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.overlay {
    background: rgba(0, 0, 0, 0.65);
    padding: 3rem 1rem;
    width: 100%;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.dates span {
    background-color: #555;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: #ccc;
    font-weight: bold;
    cursor: not-allowed;
    opacity: 0.7;
}

.dates a {
    background-color: #d62828;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.dates a:hover {
    background-color: #a61c1c;
}

.notice {
    margin-top: 2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    display: inline-block;
    border-radius: 5px;
}

.perfname {
    font-size: 2.2em;
    font-weight: 700;
    color: #e53935; /* sytá červená – typická pro divadlo */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 20px 0 10px 0;
    text-align: center;
    position: relative;
}

.perfname::after, .perfname::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #e53935;
    margin: 8px auto 8px auto;
    border-radius: 2px;
}

.overlay .perfname {
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}


.photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.photos img {
    max-height: 200px;   /* nebo 250px, podle toho jak velké chceš */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    object-fit: cover;  /* aby se zachoval poměr stran */
}

.photos img:hover {
    transform: scale(1.05);
}

.gallery-link {
    display: inline-block;
    margin-top: 1rem;
    background-color: #003566;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.gallery-link:hover {
    background-color: #001d3d;
}

.lightbox {
    display: none; /* skrytý */
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 800px; /* tady máš tu limitní výšku */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background: #003566;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #001d3d;
}



@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .dates span {
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
    }
}