/**
 * Media blocks styles
 *
 * Contents:
 ** core/image
 ** core/cover
 ** core/file
 ** core/video
*/

/* core/image */

.bl-img img{
    display: block;
}
.bl-img figure,
figure.bl-img {
    display: table;
}

.is-style-rounded img {
    border-radius: 9999px;
}

/* core/cover */

.bl-cover {
    color: var(--color-white);
    margin-top: 0;
    padding: var(--padding-col-unit);
    position: relative;
    min-height: 430px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color:var(--color-link);
    background-size: cover;
    background-position: 50%;
}
.bl-cover > .inner {
    /*z-index: 1;*/
    width: var(--width-content);
    max-width: 100%;
    opacity: .99;
}

.bl-cover.has-parallax {
    background-attachment: fixed
}
@supports (-webkit-overflow-scrolling:touch) {
    .bl-cover.has-parallax {
        background-attachment: scroll
    }
}
@media (prefers-reduced-motion:reduce) {
    .bl-cover.has-parallax {
        background-attachment: scroll
    }
}

.bl-cover.has-background-dim:before {
    content: "";
    background-color: inherit
}
.bl-cover.has-background-dim:before {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /*z-index: 1;*/
    opacity: .5;
}

.wp-block-cover__video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover
}

.bl-cover.is-position-top-left{
    justify-content: flex-start;
    align-items: flex-start;
}
.bl-cover.is-position-top-center{
    align-items: flex-start;
}
.bl-cover.is-position-top-right{
    justify-content: flex-end;
    align-items: flex-start;
}
.bl-cover.is-position-center-left{
    justify-content: flex-start;
}
.bl-cover.is-position-center-right{
    justify-content: flex-end;
}
.bl-cover.is-position-bottom-left{
    justify-content: flex-start;
    align-items: flex-end;
}
.bl-cover.is-position-bottom-center{
    align-items: flex-end;
}
.bl-cover.is-position-bottom-right{
    justify-content: flex-end;
    align-items: flex-end;
}


.bl-cover.has-background-dim-10:before{
    opacity: .1
}
.bl-cover.has-background-dim-20:before{
    opacity: .2
}
.bl-cover.has-background-dim-30:before{
    opacity: .3
}
.bl-cover.has-background-dim-40:before{
    opacity: .4
}
.bl-cover.has-background-dim-50:before{
    opacity: .5
}
.bl-cover.has-background-dim-60:before {
    opacity: .6
}
.bl-cover.has-background-dim-70:before{
    opacity: .7
}
.bl-cover.has-background-dim-80:before{
    opacity: .8
}
.bl-cover.has-background-dim-90:before{
    opacity: .9
}
.bl-cover.has-background-dim-100:before{
    opacity: 1
}


/* core/file */

.bl-file.aligncenter{
    display: table;
}

.bl-file .wp-block-file__button {
    text-decoration: none;
    color: var(--color-white);
    padding: .5em 1em;
    margin-left: .75em;
    border-radius: 2em;
    background: var(--color-body);
    display: inline-block;
}

/* core/video */

.bl-video [poster] {
    object-fit: cover
}