/* css/style.css */

@font-face {
    font-family: 'Lentilka';
    src: url('/fonts/LentilkaCE.otf') format('opentype');
    font-weight: normal; 
    font-style: normal;
}

@font-face {
    font-family: 'Lentilka';
    src: url('/fonts/LentilkaCE-Bold.otf') format('opentype');
    font-weight: bold; 
    font-style: normal;
}

html { scroll-behavior: smooth; }
body { background-color: #000; color: #fff; font-family: 'Raleway', sans-serif; }
button, input, textarea, select { font-family: inherit; }
/* Galerie děl v zarovnaných řádcích: všechny řádky mají stejnou výšku,
   šířka dlaždice odpovídá poměru stran obrázku (--r), nic se neořezává */
.justified-gallery { --row-h: 150px; }
@media (min-width: 768px)  { .justified-gallery { --row-h: 260px; } }
@media (min-width: 1024px) { .justified-gallery { --row-h: 320px; } }
.justified-gallery > .portfolio-item {
    flex-grow: var(--r);
    width: calc(var(--r) * var(--row-h));
    min-width: 0;
}
/* Poslední řádek se neroztahuje přes celou šířku */
.justified-gallery::after { content: ""; flex-grow: 999999; }
/* Sbalená galerie: výplň vypneme, aby se i 2. řádek roztáhl na celou šířku */
.justified-gallery.rows-clipped::after { display: none; }

/* Fotky v galerii se po načtení plynule objeví přes rozmazaný náhled */
.gallery-img {
    opacity: 0;
    transition: opacity .6s ease, transform .7s cubic-bezier(.4, 0, .2, 1);
}
.gallery-img.is-loaded { opacity: 1; }

/* Rozmazaný náhled pod fotkou – skutečné rozostření místo viditelných pixelů */
.gallery-preview {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px);
    transform: scale(1.2);
}

/* Světelný pruh přejíždějící přes dlaždici, dokud se fotka nenačte */
.gallery-shimmer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: gallery-shimmer 1.6s ease-in-out infinite;
    transition: opacity .4s;
}
@keyframes gallery-shimmer {
    from { background-position: 150% 0; }
    to { background-position: -100% 0; }
}
.gallery-img.is-loaded + .gallery-shimmer { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) {
    .gallery-shimmer { animation: none; }
}
