/* Facebook sharing button. The sjfb classes are retained for compatibility. */
.sjfb-share-wrap {
    display: flex;
    align-items: center;
    margin: 10px 0 18px;
}

/* Read More and Facebook sharing form one action row on event cards. */
.sj-event-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 18px;
}

.sj-event-card-actions .wp-block-read-more,
.sj-event-card-actions .sjfb-share-wrap {
    margin: 0;
}

.sjfb-share-button {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #ffffff;
    color: #0866ff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.sjfb-share-button:hover,
.sjfb-share-button:focus-visible {
    background: #eef4ff;
    color: #0759df !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.11);
}

.sjfb-share-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sjfb-share-button svg {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sjfb-share-button span {
    white-space: nowrap;
}

/* Equal image frames that always show the whole poster without cropping. */
body.sj-events-list.sj-events-ratio-16-9 .wp-block-post-template .wp-block-post-featured-image {
    aspect-ratio: 16 / 9;
}

body.sj-events-list.sj-events-ratio-4-3 .wp-block-post-template .wp-block-post-featured-image {
    aspect-ratio: 4 / 3;
}

body.sj-events-list.sj-events-ratio-3-2 .wp-block-post-template .wp-block-post-featured-image {
    aspect-ratio: 3 / 2;
}

body.sj-events-list[class*="sj-events-ratio-"] .wp-block-post-template .wp-block-post-featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

body.sj-events-list[class*="sj-events-ratio-"] .wp-block-post-template .wp-block-post-featured-image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.sj-events-list[class*="sj-events-ratio-"] .wp-block-post-template .wp-block-post-featured-image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 25px;
}

/* Keep rounded corners even when "original image dimensions" are selected. */
body.sj-events-list .wp-block-post-template .wp-block-post-featured-image img {
    border-radius: 25px;
}

@media (max-width: 420px) {
    .sjfb-share-button {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
