/**
 * Post template Block Style
 *
 * @package WordPress
 * @since BCCG 1.0
 * 
*/

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post~.wp-block-post,
.is-style-pt-blog-style-3col.wp-block-post-template .wp-block-post~.wp-block-post {
    margin-block-start: 0 !important;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post-featured-image,
.is-style-pt-blog-style-3col.wp-block-post-template .wp-block-post-featured-image {
    position: relative;
    padding-bottom: calc(.75 * 100%);
    height: 0;
    width: 100%;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post-featured-image img,
.is-style-pt-blog-style-3col.wp-block-post-template .wp-block-post-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-query:has(.is-style-pt-3col-v1),
.wp-block-query:has(.is-style-pt-blog-style-3col) {
    width: 100%;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post {
    position: relative;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post-excerpt::before {
    content: "";
    background-color: var(--wp--preset--color--secondary);
    opacity: 0;
    visibility: hidden;
    height: 100%;
    width: 100%;
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    z-index: -1;
    transition: var(--trn-ease);
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post-excerpt {
    color: white;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(0.6rem, 0.499rem + 0.606vw, var(--wp--preset--font-size--semi-small));
    font-weight: 300;
    margin: 0;
    height: 19.833rem;
    align-items: flex-end;
    padding: var(--wp--preset--spacing--40);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition: var(--trn-ease);
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post:hover .wp-block-post-excerpt {
    opacity: 1;
    visibility: visible;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post:hover .wp-block-post-excerpt::before {
    opacity: .9;
    visibility: visible;
}

.is-style-pt-3col-v1.wp-block-post-template .wp-block-post-title {
    margin: 0;
}

.is-style-pt-blog-style-3col.wp-block-post-template .wp-block-post-title {
    margin: 0;
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 li>.wp-block-group.has-gray-contrast-1-background-color,
.wp-block-post-template.is-style-pt-feed-4col li>.wp-block-group.has-gray-contrast-1-background-color {
    height: 100%;
    padding-bottom: var(--wp--preset--spacing--100) !important;
    position: relative;
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 li .wp-block-post-excerpt__more-text,
.wp-block-post-template.is-style-pt-feed-4col li .wp-block-post-excerpt__more-text {
    position: absolute;
    bottom: 1.67rem;
    left: 1.67rem;
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 .wp-block-post-featured-image,
.wp-block-post-template.is-style-pt-feed-4col .wp-block-post-featured-image {
    display: flex;
    position: relative;
    padding-bottom: 65%;
    height: 0;
    width: 100%;
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 .wp-block-post-featured-image img,
.wp-block-post-template.is-style-pt-feed-4col .wp-block-post-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: var(--wp--preset--spacing--40);
}

.wp-block-post-template.is-style-pt-blog-style-3col-v2 li {
    flex-basis: calc(33.333% - (4.444rem / 3));
    display: flex;
    flex-direction: column;
}

.editor-styles-wrapper .wp-block-post-template.is-style-pt-blog-style-3col-v2 li {
    margin-top: 0;
}

.editor-styles-wrapper .wp-block-post-template.is-style-pt-blog-style-3col-v2 .is-style-pe-blog-style {
    position: unset;
}

/* Equalize item heights */
.wp-block-post-template.is-style-equalize-item-heights .wp-block-post {
    display: flex;
    flex-direction: column;
}

.wp-block-post-template.is-style-equalize-item-heights .wp-block-post>div:last-of-type {
    position: relative;
    height: 100%;
    padding-bottom: var(--wp--preset--spacing--100) !important
}

.editor-styles-wrapper .wp-block-post-template.is-style-equalize-item-heights .is-style-pe-blog-style {
    position: unset;
}

.wp-block-post-template.is-style-equalize-item-heights .wp-block-post .wp-block-post-excerpt__more-text {
    position: absolute;
    bottom: 1.67rem;
    left: 1.67rem;
}

@media only screen and (max-width: 674px) {
    .is-style-pt-3col-v1.wp-block-post-template .wp-block-post-excerpt {
        font-size: var(--wp--preset--font-size--semi-small);
    }
}