/*
 * Play target over the featured image of an audio post. Markup is added by
 * assets/js/ee-audio-poster.js; base.njk loads both only on posts with a hero
 * image and an <audio>.
 *
 * The target covers the whole image, so the image is the click area, and the
 * round icon in the middle shows that it plays. The icon stays in the same
 * place and size while playing, so pause is right under the pointer that just
 * pressed play. It is pointer-only (see the script), so it has no focus style:
 * the native player is the keyboard control.
 */

.ee-audio-poster {
    position: relative;
}

.ee-audio-poster__target {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ee-audio-poster__target:hover {
    background: rgba(0, 0, 0, 0.15);
}

.ee-audio-poster__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    color: #fff;
    background: var(--ee-blue);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.ee-audio-poster__icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: currentColor;
}

.ee-audio-poster__target:hover .ee-audio-poster__icon {
    color: var(--ee-blue);
    background: #fff;
    border-color: var(--ee-blue);
}

@media (max-width: 30em) {
    .ee-audio-poster__icon {
        width: 3.75rem;
        height: 3.75rem;
    }

    .ee-audio-poster__icon svg {
        width: 1.875rem;
        height: 1.875rem;
    }
}
