/* Block Gallery picker modal (article editor → Add block).
   Global because this project doesn't load the Blazor scoped CSS bundle —
   selectors are namespaced under .block-gallery / .bg-* / .bgp-*. */

.block-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.block-gallery .bg-card {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.block-gallery .bg-card:hover,
.block-gallery .bg-card:focus-visible {
    border-color: #C4A35A;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    outline: 2px solid #C4A35A;
    outline-offset: 2px;
}

.block-gallery .bg-preview {
    padding: 14px;
    min-height: 84px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block-gallery .bg-label {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #171717;
}

.block-gallery .bgp-paragraph {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #555;
    margin: 0;
}

.block-gallery .bgp-paragraph::first-letter {
    font-size: 1.6rem;
    font-weight: 700;
    float: left;
    line-height: 0.78;
    margin: 2px 5px 0 0;
    color: #0A0A0A;
}

.block-gallery .bgp-heading {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0A0A0A;
    letter-spacing: -.01em;
}

.block-gallery .bgp-heading::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #C4A35A;
    margin-bottom: 5px;
}

.block-gallery .bgp-subheading {
    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #404040;
}

.block-gallery .bgp-image {
    background: linear-gradient(135deg, #e8e8e8, #cfcfcf);
    border-radius: 6px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a9a9a;
    font-size: 1.25rem;
}

.block-gallery .bgp-caption {
    font-size: 0.66rem;
    color: #999;
    margin-top: 5px;
}

.block-gallery .bgp-quote {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.74rem;
    color: #222;
    border-left: 3px solid #C4A35A;
    background: #F5F5F5;
    padding: 7px 9px;
    border-radius: 0 4px 4px 0;
    margin: 0;
}

.block-gallery .bgp-list {
    font-family: Georgia, serif;
    font-size: 0.74rem;
    color: #555;
    padding-left: 16px;
    margin: 0;
    line-height: 1.5;
}

.block-gallery .bgp-list li::marker {
    color: #C4A35A;
}

.block-gallery .bgp-richtext {
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    overflow: hidden;
}

.block-gallery .bgp-richtext-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 4px 7px;
    background: #f7f7f7;
    border-bottom: 1px solid #ececec;
    font-size: 0.68rem;
    color: #555;
}

.block-gallery .bgp-rt-b { font-weight: 700; }
.block-gallery .bgp-rt-i { font-style: italic; }
.block-gallery .bgp-rt-u { text-decoration: underline; }
.block-gallery .bgp-rt-link { color: #C4A35A; }

.block-gallery .bgp-richtext-body {
    font-size: 0.72rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    padding: 7px 9px;
}

@media (max-width: 768px) {
    .block-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .block-gallery {
        grid-template-columns: 1fr;
    }
}
