/* Definice CSS proměnných */
:root {
    --primary-color: #222;
    --secondary-color: #fff;
    --accent-color: #ff6b00;
    --transition-speed: 0.3s;
    --header-height: 70px;
    --lightbox-bg: rgba(0, 0, 0, 0.8);
}

/* Základní styly */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Kontejner */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigace – sladěno s prvním kódem */
header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-weight: 500;
    padding: 8px 12px;
    transition: color var(--transition-speed);
}

nav ul li a:hover {
    color: var(--accent-color);
}

#nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Odstup od fixního headeru */
.gallery-intro {
    /* Aby obsah nezačínal "pod" navigací, přidáme horní padding */
    padding: calc(var(--header-height) + 50px) 0 60px;
    background-color: #fff;
}

.gallery-intro h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.gallery-intro p {
    text-align: center;
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Sekce Vybraná Díla */
.featured-artworks {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.featured-artworks .section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

/* atd... zbytek kódu galerie zůstává převážně beze změn */

/* Různé grid styly galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f0f0f0;
    transition: transform var(--transition-speed);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.gallery-item-info {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    padding: 10px;
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.gallery-item-info p {
    margin-bottom: 10px;
    font-size: 1em;
}

/* Hover efekty */
@media (hover: hover) {
    .gallery-item:hover {
        transform: scale(1.02);
    }
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    .gallery-item:hover .gallery-item-info {
        opacity: 1;
    }
}

/* Filtry galerie */
.gallery-filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #e65c00;
}

/* Sekce FAQ */
.faqs {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.faqs .section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
}

.faq-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.faq-item p {
    font-size: 1em;
    color: #555;
}

/* Newsletter sekce */
.newsletter {
    padding: 60px 0;
    background-color: #fff;
}

.newsletter .section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.newsletter p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Patička */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.footer-top {
    border-bottom: 1px solid #444;
    padding: 40px 0 20px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo h2 {
    font-size: 1.8em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-nav .nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 0;
}

.footer-nav .nav-list li a {
    color: var(--secondary-color);
    font-size: 1em;
    transition: color var(--transition-speed);
}

.footer-nav .nav-list li a:hover {
    color: var(--accent-color);
}

.footer-info {
    max-width: 800px;
    margin-top: 20px;
}

.footer-info p {
    font-size: 1em;
    margin-bottom: 20px;
}

.footer-button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1em;
    transition: background-color var(--transition-speed);
    text-decoration: none;
}

.footer-button:hover {
    background-color: #e65c00;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    background-color: #1a1a1a;
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-bg);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity var(--transition-speed);
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
    transition: color var(--transition-speed);
}

#lightbox .close:hover {
    color: #e65c00;
}

#lightbox .prev,
#lightbox .next {
    position: absolute;
    top: 50%;
    color: #fff;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-speed);
    transform: translateY(-50%);
}

#lightbox .prev {
    left: 20px;
}

#lightbox .next {
    right: 20px;
}

#lightbox .prev:hover,
#lightbox .next:hover {
    color: #e65c00;
}

/* Responzivita */
@media (max-width: 768px) {
    /* Přepínání navigace */
    #nav-links {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: var(--header-height);
        right: 20px;
        width: 180px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        overflow: hidden;
    }
    #nav-links.show {
        display: flex;
    }
    #nav-toggle {
        display: block;
    }
    #nav-links li {
        margin: 0;
    }
    #nav-links li a {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

    /* Větší odsazení pro obsah kvůli fixní výšce headeru */
    .gallery-intro {
        padding: calc(var(--header-height) + 30px) 20px 60px;
    }

    .gallery-item {
        aspect-ratio: unset;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 150px;
    }
}
