.poster-card {
    max-width: 820px;
    margin-inline: auto;

    background: #fff;
    border: 2px solid var(--colorPrimary);
    overflow: hidden;

    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}


/* =========================
   NÁHLED PLAKÁTU
   ========================= */

.poster-preview {
    --poster-focus-y: 16%;

    display: block;
    width: 100%;

    height: clamp(260px, 32vw, 360px);

    padding: 0;
    border: 0;

    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.poster-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
     * Místo translateY používáme focal point.
     * 16 % u tvého plakátu ukáže právě hlavní nadpis,
     * datum a čas.
     */
    object-position: 50% var(--poster-focus-y);

    display: block;

    transition: transform .25s ease;
}

.poster-card:hover .poster-preview img {
    transform: scale(1.015);
}


/* =========================
   PATIČKA
   ========================= */

.poster-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem 1.25rem;
}

.poster-label {
    color: var(--colorLowlight);
    font-size: .8rem;
    margin-bottom: .1rem;
}


/* =========================
   MODAL
   ========================= */

.poster-modal {
    position: relative;

    background: transparent;
    border: 0;
}

.poster-modal-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: calc(100vh - 3rem);

    margin: auto;

    object-fit: contain;

    box-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.poster-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;

    z-index: 5;

    background-color: #fff;
    padding: .7rem;

    border-radius: 50%;
    opacity: .9;
}

/* =========================
   DOPROVODNÝ TEXT
   ========================= */

.poster-card-text {
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);

    font-size: .95rem;
    line-height: 1.6;
    color: var(--bs-body-color);
}

.poster-card-text p {
    margin: 0 0 .5rem;
}

.poster-card-text p:last-child {
    margin-bottom: 0;
}

.poster-card-text a {
    color: var(--colorPrimary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================
   MOBIL
   ========================= */

@media (max-width: 575.98px) {

    .poster-card {
        border-radius: 6px;
    }

    .poster-preview {
        height: 270px;
    }

    .poster-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .poster-card-footer .btn {
        width: 100%;
    }
    
    .poster-card-text {
        padding: .85rem 1rem;
        font-size: .9rem;
    }
}