.bh-recent-issues-wrap {
    width: 100%;
    box-sizing: border-box;
}

.bh-recent-issues {
    display: grid;
    grid-template-columns: repeat(var(--bh-issue-columns, 5), minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    width: min(100%, 1190px);
    margin: 0 auto;
}

.bh-issue-cover {
    display: block;
    min-width: 0;
    text-decoration: none;
    line-height: 0;
}

.bh-issue-cover-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 0.7727 / 1;
    object-fit: cover;
}

.bh-issue-cover[href] {
    transition: transform 160ms ease, opacity 160ms ease;
}

.bh-issue-cover[href]:hover,
.bh-issue-cover[href]:focus-visible {
    transform: translateY(-2px);
    opacity: 0.94;
}

.bh-latest-issue-button-wrap {
    display: flex;
    justify-content: flex-start;
}

.bh-latest-issue-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 219px;
    min-height: 35px;
    padding: 7px 22px;
    box-sizing: border-box;
    background: #3f73eb;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.045em;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    border: 0;
    border-radius: 0;
    transition: filter 160ms ease, transform 160ms ease;
}

.bh-latest-issue-button:hover,
.bh-latest-issue-button:focus-visible {
    color: #fff !important;
    filter: brightness(0.93);
    transform: translateY(-1px);
}

.bh-block-editor-placeholder {
    padding: 24px;
    border: 1px dashed #a7aaad;
    background: #f6f7f7;
    text-align: center;
}

.bh-block-editor-placeholder p {
    margin-bottom: 0;
}

.bh-latest-issue-button-editor {
    cursor: text;
}

@media (max-width: 900px) {
    .bh-recent-issues {
        grid-template-columns: repeat(var(--bh-issue-columns-tablet, 3), minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .bh-recent-issues {
        grid-template-columns: repeat(var(--bh-issue-columns-mobile, 2), minmax(0, 1fr));
        gap: 8px;
    }

    .bh-latest-issue-button {
        min-width: 0;
        width: 100%;
    }
}

/* Keep the issue-count control usable in the Widgets block editor, where
   the settings sidebar is not always convenient or even visible. */
.bh-block-editor-placeholder .bh-inline-issue-count {
    max-width: 320px;
    margin: 18px auto 0;
    text-align: left;
}

.bh-block-editor-placeholder .bh-inline-issue-count .components-base-control {
    margin-bottom: 0;
}
