.wp-site-blocks > main{
    display:flex;
    flex-direction:column;
}

.urgent{color:var(--wp--preset--color--urgent)}

.bcg-queryloop > ul{
    grid-template-columns:repeat(3, 23rem);
    justify-content:space-evenly;
    font-size:95%;
}

.bcg-queryloop .wp-post-image{border-radius:1rem}

/* For Safari */
.bcg-queryloop .post figure{width:100%}

.bcg-queryloop .post{
    border-radius:1rem;
    background-color:var(--wp--preset--color--primary);
    padding:0.5rem;
    display:grid;
    grid-template-rows:repeat(3, min-content) 1fr;
}

.bcg-queryloop .wp-block-post-title{margin-top:0}

.bcg-queryloop .wp-block-read-more{
    align-self:end;
    justify-self:end;
    background-color:var(--wp--preset--color--base);
    border-radius:0.5rem;
    padding:0.3rem;
    margin-top:var(--wp--custom--spacing);
}

.bcg-post-modal{
    color:var(--wp--preset--color--contrast);
    border:none;
    border-radius:1rem;
    width:95%;
    max-width:70ch;
    height:95%;
    box-sizing:border-box;
    transition:transform 0.3s ease-in, opacity 0.5s ease-in;
    transform:scale(1);
    opacity:1;
    padding-top:var(--wp--custom--button-height);
    @starting-style{opacity:0;transform:scale(0)}
}

.bcg-post-modal:not([open]){
    opacity:0;
    transform:scale(0);
}

.bcg-post-modal::backdrop{
    background-color:#000;
    opacity:0.5;
}

/* Prevents scrolling of the body under the dialog */
body:has(dialog[open]){overflow:hidden}

.bcg-post-modal>button{
    cursor:pointer;
    border:none;
    background:none;
    padding:0;
    position:absolute;
    top:0;
    right:0;
    outline:none;/* Safari */
}

.bcg-post-modal>button svg{
    fill:var(--wp--preset--color--contrast);
    height:var(--wp--custom--button-height);
}

.bcg-post-modal__content{height:100%;overflow-y:scroll}

.bcg-post-modal .wp-block-post-title{
    margin-top:0;
    text-align:center;
}

@media only screen and (max-width:75rem) and (min-width:49rem){
    .bcg-queryloop > ul{grid-template-columns:repeat(2, 23rem)}
}

@media only screen and (max-width:49rem){
    .bcg-queryloop > ul{grid-template-columns:1fr}
    .bcg-queryloop .wp-block-post-featured-image{aspect-ratio:5/1  !important;}
    .bcg-queryloop .post{margin-bottom:3rem}
}