/* BE Media blocks: loaded on the site and inside the editor */
.bemf-video{margin-left:auto;margin-right:auto;box-sizing:border-box}
.bemf-video .video-wrap{position:relative;aspect-ratio:16/9;background:#000;border-radius:var(--bemf-r,4px);overflow:hidden}
.bemf-video .video-wrap iframe,.bemf-video .video-wrap video{position:absolute;inset:0;width:100%;height:100%;border:0}
.bemf-video figcaption{margin-top:10px;font-size:.9em;opacity:.8}
.bemf-video.is-float-left,.bemf-video.is-float-right{margin-bottom:16px}

.bemf-banner{position:relative;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box;background-size:cover;background-repeat:no-repeat;width:100%}
.bemf-banner.is-full{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
.bemf-banner__overlay{position:absolute;inset:0;pointer-events:none}
.bemf-banner__inner{position:relative;width:100%;box-sizing:border-box}
.bemf-banner__title{margin:0 0 .35em;color:inherit;line-height:1.15}
.bemf-banner__text{margin:0 0 1em;color:inherit}
.bemf-banner__title:last-child,.bemf-banner__text:last-child{margin-bottom:0}
.bemf-banner__btn{display:inline-block;padding:.65em 1.5em;border-radius:3px;font-weight:600;text-decoration:none;background:#121212;color:#fff}
.bemf-banner__btn:hover{opacity:.85}

@media (max-width:640px){
  .bemf-video.is-float-left,.bemf-video.is-float-right{float:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}
  .bemf-video{left:0!important}
}

/* image / gallery / text blocks */
.bemf-image{margin:0;position:relative}
.bemf-image a{display:block}
.bemf-image__frame{position:relative;overflow:hidden;line-height:0}
.bemf-image__screen{position:absolute;inset:0;pointer-events:none}
.bemf-image figcaption{margin-top:10px;font-size:.9em;opacity:.8}
.bemf-image.is-float-left,.bemf-image.is-float-right{margin-bottom:16px}
.bemf-gallery__item{position:relative;overflow:hidden;line-height:0}
.bemf-gallery__item img{width:100%;height:100%;display:block;object-fit:cover}
.bemf-text.is-float-left,.bemf-text.is-float-right{margin-bottom:16px}
.bemf-line a{color:inherit}
.bemf-line__hl{-webkit-box-decoration-break:clone;box-decoration-break:clone}
.bemf-line:last-child{margin-bottom:0!important}
@media (max-width:640px){
  .bemf-image.is-float-left,.bemf-image.is-float-right,.bemf-text.is-float-left,.bemf-text.is-float-right,.bemf-gallery.is-float-left,.bemf-gallery.is-float-right{float:none!important;width:100%!important;margin-left:0!important;margin-right:0!important}
  .bemf-image,.bemf-text,.bemf-gallery{left:0!important}
  .bemf-gallery{grid-template-columns:repeat(2,1fr)!important}
}

.bemf-banner__textbox{max-width:100%}
.bemf-banner__textbox .bemf-banner__title,.bemf-banner__textbox .bemf-banner__text{color:inherit}
