
html { scroll-behavior: smooth; }

.container {
    max-width: 1100px !important;
}
/* ── Reveal on scroll ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Hero ────────────────────────────────── */
.hero-bg {
  background: linear-gradient(to bottom,
    rgba(10,10,10,.75) 0%,
    rgba(10,10,10,.45) 40%,
    rgba(10,10,10,.8)  100%);
}

/* ── Service rows ────────────────────────── */
.svc-row {
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease;
}
.svc-row:hover { background: rgba(255,255,255,.04); }
.svc-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
  opacity: 0;
}
.svc-row:hover .svc-desc { max-height: 3rem; opacity: 1; }
.svc-arrow {
  transition: transform .3s ease, color .3s ease;
}
.svc-row:hover .svc-arrow { transform: translateX(6px); }
/* --- GALERIE PRACÍ --- */
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .gallery-item {
        background-color: var(--color-surface);
        border-radius: 5px;
        overflow: hidden;
        text-align: center;
        margin: auto;
    }

    .gallery-item img {
        /*width: 100%;*/
        height: 250px;
        margin: auto;
        /*object-fit: cover;*/
        display: block;
        transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-item p {
        padding: 15px;
        margin: 0;
        font-style: italic;
    }
/* --- LIGHTBOX / GALLERY PREVIEW --- */
/* Hlavní overlay - přidáme padding, aby fotka nebyla nalepená na kraje */
    #lightbox-overlay {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        padding: 40px; /* Mezera od krajů obrazovky */
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        cursor: zoom-out;
    }

    /* Kontejner pro fotku a popisek */
    .lb-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 100%;
        max-height: 100%;
    }

    /* Samotný obrázek - klíčová změna */
    #lightbox-img {
        max-width: 100%;
        max-height: 75vh; /* Omezíme výšku na 75 % výšky okna, aby zbyl prostor pro popisek */
        object-fit: contain; /* Zachová poměr stran a neřeže fotku */
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
        border: 2px solid rgba(255,255,255,0.2);
        border-radius: 4px;
        background: #000; /* Kdyby se fotka načítala, nebude tam bílá díra */
    }

    #lightbox-caption {
        color: white;
        margin-top: 15px;
        font-size: 1.1rem;
        text-align: center;
        font-weight: 300;
        /* Zajistíme, aby popisek nepřetekl */
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Šipky pro navigaci */
    .lb-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        font-size: 2rem;
        padding: 20px;
        cursor: pointer;
        transition: 0.3s;
        user-select: none;
    }
    .lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }

    /* Skrytí šipek na mobilech (volitelné) */
    @media (max-width: 600px) {
        .lb-nav { padding: 10px; font-size: 1.5rem; }
    }


/* ── Form inputs ─────────────────────────── */
.form-input {
  background: #f8f8f8;
  border: 1.5px solid transparent;
  transition: border-color .2s, background .2s;
}
.form-input:focus {
  background: #fff;
  border-color: #D97706;
  outline: none;
}

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #D97706; border-radius: 3px; }

/* ── Amber underline decoration ─────────── */
.amber-line::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: #D97706;
  margin-top: .75rem;
}
.amber-line-center::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: #D97706;
  margin: .75rem auto 0;
}
