* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #1c1c1b;
    --bg-darker: #0f0f0e;
    --text-white: #ffffff;
    --text-light: #d0d0d0;
    --accent-gray: #333333;
    --border-gray: #444444;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============= HEADER - FIXED VÝŠKA ============= */
header {
    background-color: var(--bg-dark);
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-gray);
    height: 100px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    margin: 0;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-white);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--text-light);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--text-white);
}

/* ============= MAIN ============= */
main {
    flex: 1;
    width: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* OBSAH JEDNOTLIVÉ GALERIE */
.galerie-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.galerie-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.galerie-nazev {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.galerie-obrazky {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.galerie-obrazky img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.galerie-obrazky img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* ============= BIO STRÁNKA ============= */
.bio-page {
    padding: 60px 20px;
}

.bio-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.bio-foto-container {
    display: flex;
    justify-content: flex-start;
}

.bio-foto {
    width: 350px;
    height: 350px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-gray);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bio-foto:hover {
    transform: scale(1.02);
    border-color: var(--text-white);
}

.bio-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
}

.bio-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.bio-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bio-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: fit-content;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
}

.bio-link:hover {
    color: var(--text-light);
    border-bottom-color: var(--text-light);
    padding-left: 5px;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .bio-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-foto {
        width: 300px;
        height: 300px;
    }

    .galerie-obrazky {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        height: auto;
        padding: 20px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0;
    }

    header h1 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    nav {
        gap: 20px;
    }

    nav a {
        font-size: 14px;
    }

    .galerie-page {
        padding: 40px 15px;
    }

    .galerie-nazvy {
        gap: 15px;
        margin-bottom: 40px;
        padding-bottom: 20px;
    }

    .galerie-tab {
        font-size: 16px;
    }

    .galerie-obrazky {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .galerie-obrazky img {
        height: 200px;
    }

    .bio-page {
        padding: 40px 15px;
    }

    .bio-foto {
        width: 250px;
        height: 250px;
    }

    .bio-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
        letter-spacing: 0.5px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    nav a {
        font-size: 12px;
    }

    .galerie-nazvy {
        flex-direction: column;
        gap: 10px;
    }

    .galerie-tab {
        font-size: 14px;
    }

    .galerie-obrazky {
        grid-template-columns: 1fr;
    }

    .galerie-obrazky img {
        height: 250px;
    }

    .bio-foto {
        width: 100%;
        height: 300px;
    }

    .bio-content h2 {
        font-size: 24px;
    }
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-gray);
}

/* ============= HEADER LINK ============= */
.header-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.header-link h1 {
    margin: 0;
}

.header-link:hover {
    opacity: 0.7;
}

.header-link:hover h1 {
    cursor: pointer;
}

/* ========== TABY ========== */

.galerie-nazvy {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.galerie-tab {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.5;
    line-height: 1.2;
}

.galerie-tab:hover {
    opacity: 0.8;
}

.galerie-tab.active {
    border-left-color: #fff;
    opacity: 1;
}

.tab-datum {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.05em;
}

.tab-nazev {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
}

/* ========== GALERIE OBSAH ========== */

.galerie-content {
    display: none;
    flex: 1;
}

.galerie-content.active {
    display: block;
}

/* ========== SLIDER ========== */

.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-slide {
    display: flex;
    gap: 12px;
    min-width: 100%;
    box-sizing: border-box;
}

.fotka-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 3/2;
    background: #111;
    position: relative;
}

.fotka-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.fotka-wrapper img:hover {
    transform: scale(1.03);
    opacity: 0.85;
}

.fotka-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 2;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.6);
}

.play-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    padding-left: 4px; /* optická korekce trojúhelníku */
    transition: background 0.2s, transform 0.2s;
}

.video-play-overlay:hover .play-icon {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}
/* ========== DROPDOWN GALERIE (mobil > 8) ========== */

.galerie-dropdown {
    width: 100%;
    padding: 12px 16px;
    background: #242423;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    margin-bottom: 20px;
}

.galerie-dropdown:focus {
    border-color: #888;
}

.galerie-dropdown option {
    background: #242423;
    color: #fff;
}

/* ========== ŠIPKY ========== */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.8);
}

.slider-arrow-left {
    left: 8px;
}

.slider-arrow-right {
    right: 8px;
}

/* ========== TEČKY ========== */

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ========== LIGHTBOX ========== */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}

#lightbox-obsah {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 60px 16px 16px;
}

#lb-img {
    max-width: min(80vw, 1000px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    /* Centrování */
    margin: 0 auto;
}

#lb-zavrit {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

#lb-zavrit:hover {
    opacity: 1;
}

#lb-prev,
#lb-next {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lb-prev:hover,
#lb-next:hover {
    background: rgba(255,255,255,0.25);
}

@media (max-width: 600px) {
    #lightbox-obsah {
        gap: 8px;
        padding: 60px 8px 16px;
    }

    #lb-img {
        max-width: 100%;
        max-height: 75vh;
    }

    #lb-prev,
    #lb-next {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
    }
}