.jmc-motion-card {
    --jmc-card-width: 484px;
    --jmc-card-height: 730px;
    --jmc-card-radius: 0px;
    --jmc-card-image: none;
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, var(--jmc-card-width));
    height: min(82vh, var(--jmc-card-height));
    margin-inline: auto;
    aspect-ratio: 484 / 730;
    overflow: hidden;
    border-radius: var(--jmc-card-radius);
    background-color: transparent;
    color: #fff;
}

.jmc-motion-card:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.jmc-motion-card__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--jmc-card-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

.jmc-motion-card__content {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(86%, 620px);
    min-height: 220px;
    padding: clamp(24px, 6vw, 56px);
    text-align: center;
}

.jmc-motion-card__title,
.jmc-motion-card__description {
    grid-area: 1 / 1;
    margin: 0;
    transition: opacity 260ms ease, transform 300ms ease;
}

.jmc-motion-card__title {
    max-width: 100%;
    color: #fff;
    font-family: inherit;
    font-size: clamp(34px, 7.8vw, 54px);
    font-weight: 800;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.jmc-motion-card__description {
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2.7vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(18px);
}

.jmc-motion-card__description p {
    margin: 0;
}

.jmc-motion-card:hover .jmc-motion-card__title,
.jmc-motion-card:focus .jmc-motion-card__title,
.jmc-motion-card:focus-within .jmc-motion-card__title {
    opacity: 0;
    transform: translateY(-18px);
}

.jmc-motion-card:hover .jmc-motion-card__description,
.jmc-motion-card:focus .jmc-motion-card__description,
.jmc-motion-card:focus-within .jmc-motion-card__description {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .jmc-motion-card {
        height: min(76vh, var(--jmc-card-height));
    }

    .jmc-motion-card__content {
        width: 92%;
        padding: 24px;
    }
}
