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

body {
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #2b2d42;
    background-color: #f4f5f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-text-size-adjust: 100%;
    overflow-wrap: break-word;
    background-color: #6e6e6e;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    background-color: #1a1c23;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
    position: relative;
}

.gallery-page header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #1a1c23;
    z-index: 10;
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: block;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

/* Bílá ikona menu */
.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: 0.3s ease;
}

nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 5;
}

nav ul {
    list-style: none;
    padding: 10px 0;
}

/* Barva textu v navigaci - mobilní verze */
nav a {
    display: block;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f4f5f7;
    color: #000000;
}

#menu-toggle:checked ~ nav { max-height: 300px; }
#menu-toggle:checked ~ .menu-icon span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
#menu-toggle:checked ~ .menu-icon span:nth-child(2) { opacity: 0; }
#menu-toggle:checked ~ .menu-icon span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
}

h1, h2 {
    font-family: 'Libre Baskerville', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: black;
}

h1 {
    font-size: clamp(1.7rem, 5.5vw, 3rem);
    margin-bottom: 35px;
}

h2 {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    margin-top: 50px;
    margin-bottom: 25px;
}

.grid-four {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.item {
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border-left: 4px solid #b87333;
    text-align: left;
}

.itemp {
    background: #ffffff;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.item h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1c23;
    text-transform: uppercase;
}

.item p {
    font-size: 0.95rem;
    color: #b87445;
    font-weight: 400;
}

.grid-two .item { border-left: 4px solid #b87333; }
.grid-two .item h3 { color: #b87333; }

.button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-family: 'Roboto Flex', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    border: 2px solid transparent;
}

.btn-primary { background-color: #A8A39C; color: #242323; border-color:black; }
.btn-primary:hover { background-color: #423F3E; color: #D6D1CA; }

.btn-secondary { background-color: #a67445; color:black; }
.btn-secondary:hover { background-color: #b87333; }

.btn-outline { background-color: #a67445; border-color: #b87333; color: black; }
.btn-outline:hover { background-color: #b87333; color: black; }

.btnR {
	align-items: flex-start;
}

.btnL {
	align-items: flex-end;
}

.gallery-header {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-pretitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    color: #f4edb0;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-header h1 {
    font-size: clamp(1.5rem, 6vw, 3.8rem);
    margin-bottom: 15px;
}

.gallery-header .subtitle {
    font-family: 'Great Vibes', 'sans-serif';
    font-size: 1.7rem;
    color: #fff;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
}

.project-block {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    margin-bottom: 4px;
    background-color:#6e6e6e;
}

.project-image {
    width: 100%;
    height: 45vh;
    overflow: hidden;
    background-color: #e2e8f0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.8s ease, filter 0.5s ease;
    background-size: cover;
    background-repeat: no-repeat;
}

.project-block:hover .project-image img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

.project-info {
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.project-info .tag {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.project-info h2 {
    font-family: 'Libre Baskerville', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color:#F4EBD0;
}

.project-info p {
    font-size: 1.2rem;
    color: #F4EDB0;
    margin-bottom: 25px;
    font-weight: 300;
}

.project-link {
    align-self: flex-start;
    color: #1a1c23;
    font-weight: 600;
    border-bottom: 2px solid #b87333;
    padding-bottom: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

footer {
    background-color: #1a1c23;
    color: #a67445;
    padding: 35px 20px;
    border-top: 4px solid #b87333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contacts span { font-size: 0.95rem; display: block; }
.footer-contacts strong { color: #ffffff; }
.copyright { font-size: 0.85rem; color: #ffffff; }

@media (min-width: 768px) {
    header { padding: 20px 40px; }
    .menu-icon { display: none; }

    .logo img {
        height: 50px;
    }

    nav {
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        max-height: none;
        overflow: visible;
    }

    nav ul { display: flex; gap: 30px; padding: 0; }

    /* Barva textu v navigaci - PC verze (bílá) */
    nav a {
        padding: 5px 0;
        border-bottom: none;
        font-size: 0.95rem;
        color: #ffffff;
    }
    nav a:hover { color: #b87333; }

    .container { padding: 60px 20px; }
    h1 { font-size: 3rem; margin-bottom: 50px; }
    h2 { font-size: 2.2rem; }

    .grid-four { grid-template-columns: repeat(4, 1fr); }
    .grid-two { grid-template-columns: repeat(2, 1fr); }

    .button-group {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    .btn { width: auto; padding: 14px 30px; }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .footer-contacts { flex-direction: row; gap: 30px; }

    .project-block {
        flex-direction: row;
        min-height: 75vh;
    }

    .project-image {
        width: 100%;
        height: 75vh;
        overflow: hidden;
        background-color: #e2e8f0;

        -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%),
                            linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%),
                    linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);

        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .project-info {
        flex: 0 0 40%;
        padding: 60px;
    }

    .project-block:nth-child(even) {
        flex-direction: row-reverse;
    }

    .project-block:nth-child(even) .project-info {
        text-align: right;
        align-items: flex-end;
    }

    .project-block:nth-child(even) .project-link {
        align-self: flex-end;
    }
}

b { color: #000; }

.lightbox {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 28, 35, 0.95);
    justify-content: center;
    align-items: center;
    user-select: none;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}
.lightbox-close:hover { color: #b87445; }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 35px;
    padding: 15px 20px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
}
.lightbox-arrow:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.project-image img { cursor: zoom-in; }

@media (max-width: 768px) {
    .lightbox-arrow {
        padding: 10px;
        font-size: 28px;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}
