/* **************************************** *
 * SINGLE GUTEMBERG
 * **************************************** */
.jt-blocks img,
.jt-blocks div.wp-caption {display: block;max-width: 100%;height: auto;}

.jt-blocks h1,
.jt-blocks h2,
.jt-blocks h3,
.jt-blocks h4,
.jt-blocks h5,
.jt-blocks h6 {margin-top: 60rem;margin-bottom: 16rem;font-weight: 700;line-height: 1.35;clear: both;}

.jt-blocks h1:first-child,
.jt-blocks h2:first-child,
.jt-blocks h3:first-child,
.jt-blocks h4:first-child,
.jt-blocks h5:first-child,
.jt-blocks h6:first-child {margin-top: 0}

.jt-blocks h1:last-child,
.jt-blocks h2:last-child,
.jt-blocks h3:last-child,
.jt-blocks h4:last-child,
.jt-blocks h5:last-child,
.jt-blocks h6:last-child {margin-bottom: 0;}

.jt-blocks h1 {font-size: 48rem;}
.jt-blocks h2 {font-size: 40rem;}
.jt-blocks h3 {font-size: 26rem;}
.jt-blocks h4 {font-size: 22rem;}
.jt-blocks h5 {font-size: 20rem;}
.jt-blocks h6 {font-size: 18rem;}

.jt-blocks p {margin-bottom: 20rem;font-size: 16rem;font-weight: 400;line-height: 1.75;color: #000;word-break: keep-all;}
.jt-blocks b {font-weight: 700;}
.jt-blocks em {background: #fbf4d4;}
.jt-blocks strong,
.jt-blocks strong a {font-weight: 700;}

.jt-blocks h1 + p,
.jt-blocks h2 + p,
.jt-blocks h3 + p,
.jt-blocks h4 + p,
.jt-blocks h5 + p,
.jt-blocks h6 + p {margin-top: 0;}

.jt-blocks a {word-break: break-all;}
.jt-blocks p a,
.jt-blocks ul a,
.jt-blocks ol a {position: relative;}

.jt-blocks p a:not(.wp-block-button__link),
.jt-blocks ul a:not(.wp-block-button__link),
.jt-blocks ol a:not(.wp-block-button__link) {border-bottom: 1rem solid #aaa;-webkit-transition: border .3s;transition: border .3s;}
html.desktop .jt-blocks p a:not(.wp-block-button__link):hover,
html.desktop .jt-blocks ul a:not(.wp-block-button__link):hover,
html.desktop .jt-blocks ol a:not(.wp-block-button__link):hover {border-bottom-color: #000;}

.jt-blocks ul:not(.blocks-gallery-grid),
.jt-blocks ol:not(.blocks-gallery-grid) {margin-bottom: 60rem;}
.jt-blocks li:not(.blocks-gallery-item) {position: relative;font-size: 16rem;font-weight: 400;line-height: 1.75;color: #000;}
.jt-blocks ul:not(.blocks-gallery-grid) li {padding-left: 16rem;}
.jt-blocks ul:not(.blocks-gallery-grid) li:before {content: '';display: block;width: 4rem;height: 4rem;position: absolute;top: 11rem;left: 0;background: #000;border-radius: 50%;}
.jt-blocks ol:not(.blocks-gallery-grid) {list-style-type: decimal;list-style-position: inside;}

/* Custom color palette */
/* !important required to work correctly (TODO dry this code) */
.jt-blocks .has-type-01-color,
.jt-blocks p.has-type-01-color {color: #000}
.jt-blocks .has-type-02-color,
.jt-blocks p.has-type-02-color {color: #fff;}
.jt-blocks .has-type-03-color,
.jt-blocks p.has-type-03-color {color: #666;}
.jt-blocks .has-type-04-color,
.jt-blocks p.has-type-04-color {color: #f4f4f4;}

.jt-blocks .has-type-01-background-color,
.jt-blocks .wp-block-button__link.has-type-01-background-color,
.jt-blocks a.wp-block-button__link.has-type-01-background-color,
.jt-blocks button.wp-block-button__link.has-type-01-background-color {background-color: #000 !important;border-color: #000;}

.jt-blocks .has-type-02-background-color,
.jt-blocks .wp-block-button__link.has-type-02-background-color,
.jt-blocks a.wp-block-button__link.has-type-02-background-color,
.jt-blocks button.wp-block-button__link.has-type-02-background-color {background-color: #fff !important;border-color: #fff;}

.jt-blocks .has-type-03-background-color,
.jt-blocks .wp-block-button__link.has-type-03-background-color,
.jt-blocks a.wp-block-button__link.has-type-03-background-color,
.jt-blocks button.wp-block-button__link.has-type-03-background-color {background-color: #666 !important;border-color: #666;}

.jt-blocks .has-type-04-background-color,
.jt-blocks .wp-block-button__link.has-type-04-background-color,
.jt-blocks a.wp-block-button__link.has-type-04-background-color,
.jt-blocks button.wp-block-button__link.has-type-04-background-color {background-color: #f4f4f4 !important;border-color: #f4f4f4;}

/* Container */
.jt-blocks .alignwide {max-width: 864rem;margin-left: auto;margin-right: auto;}
.jt-blocks .alignfull {max-width: inherit;margin-left: auto;margin-right: auto;}
.jt-blocks .wp-block-image.alignfull {width: auto;}
.jt-blocks ul.alignfull,
.jt-blocks ol.alignfull,
.jt-blocks .alignfull ul,
.jt-blocks .alignfull ol,
.jt-blocks .alignwide ul,
.jt-blocks .alignwide ol {max-width: inherit;}
.jt-blocks .wp-block-cover.alignfull {max-width: inherit;}

/* Image */
.jt-blocks .wp-block-image {margin: 80rem auto 60rem;}
.jt-blocks .wp-block-image a {display: block;}
.jt-blocks .wp-block-image figcaption {margin: 16rem 0 0;font-size: 13rem;}
.jt-blocks .wp-block-image img {max-width: 100%;margin: 0 auto;}

/* Gallery block */
.jt-blocks .wp-block-gallery {margin-top: 60rem;margin-bottom: 60rem;}
.jt-blocks .wp-block-gallery .blocks-gallery-grid {margin: 0 auto;}
.jt-blocks .wp-block-gallery .blocks-gallery-item {padding: 0;}
.jt-blocks .wp-block-gallery .blocks-gallery-item img {max-width: inherit;margin: 0;}
.jt-blocks .wp-block-gallery .blocks-gallery-item figcaption {font-size: 13rem;line-height: 1.55;}
.jt-blocks .wp-block-gallery li.blocks-gallery-item figure > a {display: block;position: relative;border-bottom: none;overflow: hidden;}

/* Blockquote block */
.jt-blocks blockquote.wp-block-quote {margin: 80rem auto;}
.jt-blocks blockquote.wp-block-quote.is-large ,
.jt-blocks blockquote.wp-block-quote.is-style-large {padding-top: 0;padding-left: 16rem;border-left: 3rem solid #000;}
.jt-blocks blockquote.wp-block-quote.is-large:before,
.jt-blocks blockquote.wp-block-quote.is-style-large:before {display: none;}

.jt-blocks .wp-block-quote {margin: 0;padding: 30rem 0 0;position: relative;font-style: normal;border: 0;}
.jt-blocks .wp-block-quote p,
.jt-blocks .wp-block-media-text__content .wp-block-quote p {margin-top: 0;margin-bottom: 10rem;font-size: 20rem;font-style: normal;font-weight: 700;}
.jt-blocks .wp-block-quote:before {content: '';display: block;width: 22rem;height: 16rem;position: absolute;top: 0;left: 0;background: url(../images/blocks/quote.svg) no-repeat center center;background-size: contain;}

.jt-blocks .wp-block-quote__citation,
.jt-blocks .wp-block-quote cite,
.jt-blocks .wp-block-quote footer {font-size: 16rem;}

/* Embed block */
.jt-blocks .wp-block-embed {margin: 24rem 0 60rem;}

.jt-embed-video {margin-left: auto;margin-right: auto;position: relative;}
.jt-embed-video__inner {position: relative;width: 100%;padding-top: 56.25%;}
.jt-embed-video__inner iframe {width: 100%;height: 100%;position: absolute;top: 0;left: 0;-webkit-box-sizing: content-box;-moz-box-sizing: content-box;box-sizing: content-box;background: #000 url(../images/layout/spin.gif) no-repeat center center;background-size: 32rem 32rem;}
.jt-embed-video__poster {width: 100%;height: 100%;position: absolute;top: 0;left: 0;cursor: pointer;z-index: 1;}
.jt-embed-video__poster .jt-embed-video__img {display: block;width: 100%;margin: 0;}
.jt-embed-video__overlay {display: block;width: 100%;height: 100%;position: absolute;top: 0;left: 0;background: #000000;background: rgba(0, 0, 0, .4);}
.jt-embed-video__overlay-btn {display: block;width: 75rem;height: 75rem;margin-top: -36rem;margin-left: -36rem;position: absolute;top: 50%;left: 50%;border-radius: 50%;background: #fff;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;-webkit-transform: scale(1) translateZ(0);transform: scale(1) translateZ(0);-webkit-transition: opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);transition: opacity .5s cubic-bezier(.165, .84, .44, 1), -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);transition: opacity .5s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.23, 1, .32, 1);transition: opacity .5s cubic-bezier(.165, .84, .44, 1), transform 1s cubic-bezier(.23, 1, .32, 1), -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);}
.jt-embed-video__overlay-btn:after {content: '';width: auto;height: auto;display: block;position: absolute;top: 50%;left: 50%;margin-top: -8rem;margin-left: -4rem;font-style: normal;border-top: 8rem solid transparent;border-bottom: 8rem solid transparent;border-left: 12rem solid #000;-webkit-transition: -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);transition: -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);transition: transform 1s cubic-bezier(.23, 1, .32, 1);transition: transform 1s cubic-bezier(.23, 1, .32, 1), -webkit-transform 1s cubic-bezier(.23, 1, .32, 1);}
html.desktop .jt-embed-video__poster:hover .jt-embed-video__overlay-btn {opacity: 1;-webkit-transform: scale(1.2) translateZ(0);transform: scale(1.2) translateZ(0);}
html.desktop .jt-embed-video__poster:hover .jt-embed-video__overlay-btn:after {-webkit-transform: scale(0.8) translateZ(0);transform: scale(0.8) translateZ(0);}

.ios .jt-embed-video__poster {opacity: 0;visibility: hidden;}

/* Button */
.jt-blocks .wp-block-buttons {display: block;}

.jt-blocks .wp-block-button__link {background-color: #000;} /* no jt-block to avoid custom override */
.jt-blocks .is-style-outline .wp-block-button__link,
.jt-blocks .wp-block-button__link.is-style-outline {color: #000;border-color: #000;} /* no jt-block to avoid custom override */
.jt-blocks .wp-block-button__link {min-width: 160rem;padding: 9rem 38rem 6rem;font-size: 15rem;line-height: 1.86;font-weight: 700;border-width: 1rem;border-radius: 100rem;-webkit-transition: border .3s, background .3s;transition: border .3s, background .3s;}

.jt-blocks .wp-block-buttons {margin-top: 60rem;margin-bottom: 100rem;}
.jt-blocks .wp-block-buttons .wp-block-button:not(:only-child) {padding-left: 10rem;}
.jt-blocks .wp-block-buttons .wp-block-button:first-child:not(:only-child) {padding-left: 0;}
.jt-blocks .wp-block-buttons.has-text-align-center .wp-block-button:not(:only-child) {padding: 0 10rem;}
.jt-blocks .wp-block-buttons:last-child {margin-bottom: 0;}
.jt-blocks .wp-block-buttons:last-child .wp-block-button {margin-bottom: 0;}

.jt-blocks .is-content-justification-center {text-align: center;}
.jt-blocks .is-content-justification-left {text-align: left;}
.jt-blocks .is-content-justification-right {text-align: right;}

html.desktop .jt-blocks .wp-block-button__link:hover {border-color: #666;background: #666;}
html.desktop .jt-blocks .is-style-outline .wp-block-button__link:hover {border-color: #000;background: #000;color: #fff;}
