/* Herold child theme — project listings */

/* Podtitulek pod jmenem na titulce — styl jako v logu.
   Presnou sirku (stejnou jako jmeno) dopocitava skript v base.html.twig. */
.title-h1h2 h1 + h2,
.title-h1h2 h1 + h4 {
    margin-top: 0.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Logo v hlavicce (SVG s textem misto puvodnich path) */
#header .logo svg {
    width: auto;
}

.project-listing {
    padding-bottom: 2rem;
}

.project-section {
    margin-top: 2.5rem;
}

.project-section-title a {
    color: inherit;
    text-decoration: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover .project-card-title,
.project-card:focus .project-card-title {
    text-decoration: underline;
}

.project-thumb,
.project-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 32 / 21;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f1f4;
    transition: opacity 0.2s ease;
}

.project-card:hover img {
    opacity: 0.85;
}

.project-thumb--empty {
    min-height: 170px;
}

.project-card-title {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

/* AI Films — mrizka vertikalnich shorts (9:16) */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.short-item iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    border: 0;
    border-radius: 6px;
    background: #000;
}

.short-title {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Project detail */
.project-detail .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.5rem 0;
}

.project-detail .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-back {
    margin-top: 2rem;
}
