/*
Theme Name: Maves
*/

html {
  box-sizing: border-box;
  font-size: 16px;
  background-color: #07516f;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

body {
  font-family: "Open Sans", sans-serif;
  color: #0c556f;
}

.hidden {
  display: none;
}

.overflow-hidden {
  overflow: hidden;
}

.--container {
  max-width: 1100px;
  min-width: 240px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background-image: url(assets/images/main_bg.jpg);
  min-height: 700px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

@media screen and (min-width: 1280px) {
  .header {
    background-image: url(assets/images/main_bg@2x.jpg);
  }
}

.header .--header-container {
  max-width: 1440px;
  min-width: 240px;
  margin: 0 auto;
  padding: 0 20px;
}

.header .header__author {
  position: absolute;
  height: 91px;
  width: 17px;
  bottom: 5px;
  left: 5px;
  opacity: 0.6;
}

@media screen and (min-width: 700px) {
  .header .header__author {
    position: absolute;
    height: 91px;
    width: 17px;
    bottom: 20px;
    left: 20px;
    opacity: 1;
  }
}

.menu {
  height: 100px;
  overflow: hidden;
}

@media screen and (min-width: 980px) {
  .menu {
    background-color: rgba(7, 81, 111, 0.75);
  }
}

.menu .menu__container {
  height: 100px;
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-template-rows: min-content;
  gap: 0px 0px;
  grid-template-areas: "left right";
  justify-items: right;
  align-items: center;
}

.menu .menu__container__right {
  grid-area: right;
  display: flex;
  align-items: center;
  height: 100px;
}

.menu .menu__container__left {
  grid-area: left;
  display: flex;
  align-items: center;
  height: 100px;
}

.menu .menu__lang {
  font-size: 12px;
  padding: 8px;
  border-radius: 10px;
  background-color: #fff;
  color: #07516f;
  margin: 0 20px;
}

.menu a {
  text-decoration: none;
}

.menu .menu__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: none;
}

@media screen and (min-width: 980px) {
  .menu .menu__nav {
    display: block;
  }
}

.menu .menu__nav .menu__nav__item {
  display: inline-block;
  padding: 0 15px;
}

.menu .menu__nav a {
  color: #fff;
}

.menu .hamburger {
  width: 33px;
  height: 20px;
}

@media screen and (min-width: 980px) {
  .menu .hamburger {
    display: none;
  }
}

.hamburger-menu {
  position: absolute;
  right: 0;
  height: 100%;
  top: 0;
  background-color: #dae8d8;
  width: 70vw;
  z-index: 100000;
  padding: 0;
  margin: 0;
  list-style-type: none;
  color: #0c556f;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.hamburger-menu .hamburger-menu__item {
  display: block;
  padding: 15px 20px;
}

.hamburger-menu a {
  color: #07516f;
  text-decoration: none;
}

.hamburger-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hamburger-menu .menu__close {
  text-align: right;
  height: 100px;
  line-height: 85px;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper {
    display: grid;
    grid-template-columns: auto 680px;
    grid-template-areas: "left right";
    height: 445px;
    max-width: 1200px;
    min-width: 240px;
    margin: 0 auto;
    margin-top: 40px;
    padding: 0 20px;
  }
}

.lens-wrapper .slogan {
  min-width: 170px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0px 5px 5px rgba(0, 0, 0, 0.01);
  padding: 20px;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .slogan {
    grid-row: 1;
    margin-bottom: 0;
    grid-area: left;
  }
}

.lens-wrapper .slogan .slogan__main {
  margin-top: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 36px;
  hyphens: auto;
  overflow-wrap: break-word;
  text-shadow: 0px 4px 8px #18434480;
  line-height: 1.2em;
  max-width: 500px;
  max-width: 20ch;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .slogan .slogan__main {
    grid-area: right;
    font-size: 48px;
  }
}

.lens-wrapper .slogan .slogan__desc {
  font-size: 16px;
  display: block;
  hyphens: auto;
  overflow-wrap: break-word;
  text-shadow: 0px 4px 8px #18434480;
  line-height: 1.4em;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .slogan .slogan__desc {
    font-size: 16px;
  }
}

.lens-wrapper .lens {
  text-align: center;
  padding: 20px;
  position: absolute;
  bottom: -10px;
  width: 100%;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .lens {
    width: auto;
    position: relative;
    grid-row: 1;
    background-repeat: no-repeat;
    background-position: top center;
    background-image: url(assets/images/luup@2x.png);
    background-size: 451px 448.5px;
  }
}

.lens-wrapper .lens .lens__desc {
  width: 250px;
  height: 250px;
  position: absolute;
  border-radius: 50%;
  top: 79px;
  left: 219px;
  transition: all 0.5s;
  font-weight: bold;
  color: #0c556f;
}

.lens-wrapper .lens .lens__desc.lens__desc--glow {
  background-color: rgba(254, 254, 254, 0.7);
  width: 280px;
  height: 280px;
  position: absolute;
  border-radius: 50%;
  top: 63px;
  left: 204px;
  transition: all 0.5s;
}

.lens-wrapper .lens .lens__desc .lens__desc_text {
  position: absolute;
  width: 190px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  font-size: 12px;
  line-height: 1.4em;
}

.lens-wrapper .lens .lens__desc .lens__desc_text.visible {
  display: block;
}

.lens-wrapper .lens .lens__title {
  position: absolute;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  cursor: help;
  font-size: 12px;
  line-height: 1.3em;
  letter-spacing: 0.2em;
  text-shadow: 0px 4px 8px #18434480;
  text-transform: uppercase;
  height: 55px;
  display: flex;
  align-items: center;
}

.lens-wrapper .lens .lens__title-1 {
  left: 397px;
  top: 2px;
  padding-left: 65px;
}

.lens-wrapper .lens .lens__title-2 {
  left: 509px;
  top: 118px;
  padding-left: 65px;
}

.lens-wrapper .lens .lens__title-3 {
  left: 495px;
  top: 266px;
  padding-left: 65px;
}

.lens-wrapper .lens .lens__title-4 {
  right: 272px;
  top: 375px;
  text-align: right;
  padding-right: 65px;
}

.lens-wrapper .lens .lens__title-5 {
  right: 463px;
  top: 288px;
  text-align: right;
  padding-right: 65px;
}

.lens-wrapper .lens .lens__title-6 {
  right: 508px;
  top: 125px;
  text-align: right;
  padding-right: 65px;
}

.lens-wrapper .lens .lens__title-7 {
  top: 6px;
  right: 407px;
  text-align: right;
  padding-right: 65px;
}

.lens-wrapper .lens .lens__guide {
  display: none;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .lens .lens__guide {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    right: 0;
    bottom: 0;
  }
}

.lens-wrapper .lens .lens__mob {
  position: absolute;
  bottom: 15px;
  right: 50px;
  max-width: calc(90vw - 50px);
  height: auto;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .lens .lens__mob {
    display: none;
  }
}

.lens-wrapper .lens .lens__mob img {
  max-width: 333px;
  width: 100%;
  height: auto;
}

.lens-wrapper .lens .lens__mob .lens__mob-pulse {
  border-radius: 50%;
  background-color: rgba(254, 254, 254, 0.7);
  width: 55%;
  height: 55%;
  position: absolute;
  bottom: 29%;
  right: 9%;
  animation: pulse 4s ease-in-out infinite;
}

@media screen and (min-width: 1200px) {
  .lens-wrapper .lens .lens__mob .lens__mob-pulse {
    animation: none;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    background-color: rgba(254, 254, 254, 0.2);
  }
  50% {
    transform: scale(1.15);
    background-color: rgba(254, 254, 254, 0.7);
  }
  100% {
    transform: scale(1);
    background-color: rgba(254, 254, 254, 0.2);
  }
}

.iso {
  display: none;
}

@media screen and (min-width: 1200px) {
  .iso {
    background-image: url(assets/images/iso.svg);
    display: block;
    height: 80px;
    background-repeat: no-repeat;
    background-position: 50px center;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    line-height: 80px;
    font-size: 12px;
    text-indent: 200px;
  }
}

.main {
  background: #dae8d8;
  background: linear-gradient(180deg, #dae8d8 0%, #f9f9f9 50%, #dae8d8 100%);
  min-height: 1000px;
  padding: 50px 0;
}

.intro--container {
  line-height: 1.5em;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0 20px;
  margin-top: 40px;
}

@media screen and (min-width: 980px) {
  .intro--container {
    max-width: 1100px;
    min-width: 240px;
    padding: 0 20px;
    margin: 0 auto;
    background-color: unset;
  }
}

.intro {
  display: block;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

@media screen and (min-width: 980px) {
  .intro {
    display: flex;
    gap: 40px;
    margin-bottom: 0px;
    padding-bottom: 0;
    margin: 120px 0;
  }
}

.intro .intro__column {
  margin-bottom: 30px;
  align-self: center;
}

@media screen and (min-width: 980px) {
  .intro .intro__column {
    flex: 50%;
  }
}

.intro .intro_image {
  max-width: 100%;
  height: auto;
  border-radius: 40px;
  margin-top: -40px;
}

@media screen and (min-width: 980px) {
  .intro .intro_image {
    margin-top: 0px;
  }
}

.tags {
  display: block;
  margin-bottom: 40px;
  margin-top: 40px;
}

@media screen and (min-width: 980px) {
  .tags {
    display: flex;
    gap: 40px;
    margin-bottom: 120px;
  }
}

.tags .tags__column {
  margin-bottom: 60px;
}

@media screen and (min-width: 980px) {
  .tags .tags__column {
    margin-bottom: 0;
    flex: 50%;
  }
}

.tags h2 {
  color: #0c556f;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tags .tag {
  background-color: #fff;
  color: #5c5f5b;
  border-radius: 25px;
  padding: 11px 15px;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 13px;
}

.services--container {
  line-height: 1.5em;
  min-height: 600px;
}

@media screen and (min-width: 980px) {
  .services--container {
    max-width: 1100px;
    min-width: 240px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

.services {
  display: block;
  margin-bottom: 60px;
}

@media screen and (min-width: 980px) {
  .services {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    margin-bottom: 120px;
  }
}

.services h2 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #0c556f;
  margin-top: 0;
  margin-bottom: 50px;
  line-height: 1.2em;
}

.services .services__column {
  padding: 0 20px;
}

@media screen and (min-width: 980px) {
  .services .services__column {
    flex: 50%;
    align-self: center;
    padding: 0;
  }
}

.services .services__column img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

@media screen and (min-width: 980px) {
  .services .services__column img {
    right: -50px;
    border-radius: 40px;
    max-width: 100%;
    height: auto;
  }
}

.services .services__column--wide {
  padding-top: 40px;
}

@media screen and (min-width: 980px) {
  .services .services__column--wide {
    padding: 0;
  }
}

.services__grid {
  font-size: 15px;
}

@media screen and (min-width: 980px) {
  .services__grid {
    margin-top: 30px;
  }
}

.services__grid .service__single {
  margin-bottom: 0px;
  padding: 20px;
  padding-bottom: 0;
  padding-top: 0;
}

@media screen and (min-width: 980px) {
  .services__grid .service__single {
    border-bottom: none;
    margin-bottom: 0;
    padding: 25px;
    padding-bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    box-shadow: 0 0px 5px 5px rgba(0, 0, 0, 0.01);
  }
}

.services__grid .service__single .service__single__content {
  padding-bottom: 20px;
}

.services__grid .service__single .service__single__content ul {
  padding-left: 20px;
}

.services__grid .service__single .service__single__content li {
  margin-bottom: 7px;
}

.gallery {
  display: none;
}

@media screen and (min-width: 980px) {
  .gallery {
    display: flex;
    gap: 35px;
    margin-bottom: 140px;
  }
}

.gallery .gallery__single {
  display: none;
  flex: 33%;
  overflow: hidden;
  min-height: 400px;
}

@media screen and (min-width: 980px) {
  .gallery .gallery__single {
    display: block;
  }
}

.gallery .gallery__single img {
  max-width: 100%;
  height: auto;
  border-radius: 25px;
}

.title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.title .title__icon {
  display: inline-block;
  vertical-align: middle;
}

.title .title_title {
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 16px;
  vertical-align: middle;
  margin-left: 15px;
  /* text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; */
}

.contact--wrapper {
  background-color: #f9f9f9;
}

.logo {
  text-align: center;
  margin: 30px 0;
}

.logo .logo__title {
  color: #0c556f;
  font-size: 16px;
  font-weight: bold;
  margin-top: 60px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.logo .logo__image,
.logo .logo__text-title {
  display: inline-block;
  margin: 5px;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  color: #000;
  font-weight: bold;
}

@media screen and (min-width: 500px) {
  .logo .logo__image,
  .logo .logo__text-title {
    margin: 15px;
  }
}

.contact {
  margin: 0 auto;
  max-width: 1100px;
  min-width: 240px;
  padding: 35px 20px;
  color: #4d4d4d;
}

.contact a {
  color: #4d4d4d;
  text-decoration: underline;
}

.contact h2 {
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #0c556f;
  margin-top: 0;
  margin-bottom: 75px;
}

@media screen and (min-width: 980px) {
  .contact h2 {
    font-size: 42px;
    margin-top: 120px;
    margin-bottom: 120px;
  }
}

.contact .contact__person.contact__person--last {
  min-height: unset;
}

.contact .contact__person {
  display: grid;
  grid-template-columns: min-content 1fr;
  min-height: 200px;
  overflow: hidden;
  width: 100%;
  gap: 25px;
  margin-bottom: 10px;
  margin-left: -10px;
}

@media screen and (min-width: 500px) {
  .contact .contact__person {
    margin-left: unset;
  }
}

@media screen and (min-width: 1020px) {
  .contact .contact__person {
    float: left;
    grid-template-columns: 150px 1fr;
    width: 33.3%;
    gap: 5px;
    justify-content: left;
    margin-bottom: 30px;
  }
}

.contact .contact__person .contact__person-avatar {
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  width: 64px;
  height: 64px;
  background-color: #0c556f;
  position: relative;
}

@media screen and (min-width: 435px) {
  .contact .contact__person .contact__person-avatar {
    width: 128px;
    height: 128px;
    margin-left: 10px;
  }
}

.contact .contact__person .contact__person-avatar img {
  max-width: 100%;
  height: auto;
}

.contact .contact__person .contact__person-avatar:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.5);
  transform: translateZ(0);
  z-index: 50;
  overflow: hidden;
}

.contact .contact__person .contact__content {
  margin-bottom: 10px;
}

.contact .contact__person .contact__name {
  color: #0c556f;
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 5px;
}

.contact .contact__person .contact__info {
  font-size: 16px;
  color: #4d4d4d;
  max-width: 430px;
}

.contact .contact__person .contact__info p {
  margin: 0;
  margin-bottom: 5px;
}

.contact .contact__person .contact__info p.contact__profession {
  padding-bottom: 10px;
  line-height: 1.3em;
}

.contact .contact__person .contact__info a[href^="mailto:"] {
  background-image: url(assets/images/icon-email.png);
  background-repeat: no-repeat;
  padding-left: 26px;
  background-size: 17px;
  background-position: left;
}

.contact .contact__person .contact__info a[href^="tel:"] {
  background-image: url(assets/images/icon-phone.png);
  background-repeat: no-repeat;
  padding-left: 26px;
  background-size: 17px;
  background-position: left;
}

.contact .map {
  left: -20px;
  width: calc(100% + 40px);
  position: relative;
  margin-top: 20px;
}

@media screen and (min-width: 980px) {
  .contact .map {
    left: unset;
    position: unset;
    width: unset;
  }
}

.contact .map img {
  max-width: 100%;
  height: auto;
  margin-top: 75px;
  margin-bottom: -40px;
}

@media screen and (min-width: 980px) {
  .contact .map img {
    border-radius: 50px;
    margin-top: 120px;
    margin-bottom: 120px;
  }
}

.footer--wrapper {
  background-color: #07516f;
}

.footer {
  margin: 0 auto;
  max-width: 1100px;
  min-width: 240px;
  padding: 35px 20px;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 980px) {
  .footer {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: max-content;
  }
}

.footer .footer__info {
  border-bottom: 2px solid #39748b;
  padding-bottom: 35px;
  margin-bottom: 35px;
  line-height: 1.3em;
}

@media screen and (min-width: 980px) {
  .footer .footer__info {
    border: none;
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.footer .footer__info p {
  margin-top: 0;
  margin-bottom: 5px;
}

.footer .footer__info a {
  color: #fff;
}

@media screen and (min-width: 980px) {
  .footer .footer__orgs {
    border: none;
    text-align: right;
  }
}

.footer .footer__orgs .footer_orgs-info {
  display: block;
}

.footer .footer__orgs .footer__logo {
  display: block;
  margin: 20px auto;
}

@media screen and (min-width: 980px) {
  .footer .footer__orgs .footer__logo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
  }
}

.footer .footer__orgs .footer__logo--last {
  display: inline-block;
  margin-left: 5px;
}

@media screen and (min-width: 980px) {
  .footer .footer__orgs .footer__logo--last {
    display: inline-block;
    margin-left: 20px;
  }
}

/* After SCSS */

.post-edit-link {
  color: #565656;
  size: 14px !important;
  font-family: monospace !important;
  font-weight: normal !important;
  text-decoration: none !important;
}

.footer .post-edit-link {
  color: rgb(255 255 255 / 35%);
}

.contact__info .post-edit-link {
  color: #a7a7a7;
}

.header .post-edit-link {
  color: rgb(255 255 255 / 35%) !important;
}

.contact .add-new {
  margin-left: 25px;
  display: block;
  color: #565656;
  margin-bottom: 25px;
  size: 14px !important;
  font-family: monospace !important;
  text-decoration: none !important;
  font-weight: normal !important;
}

#wpadminbar {
  opacity: 0.8 !important;
}

#wp-admin-bar-site-name .ab-sub-wrapper,
#wp-admin-bar-customize,
#wp-admin-bar-comments,
#wp-admin-bar-new-page,
#wp-admin-bar-edit {
  display: none !important;
}

body.page-template-english h1.slogan__main::first-letter,
body.page-template-english .services h2::first-letter {
  font-family: Arial, Helvetica, sans-serif;
}

/* Blogroll */

.single-post .header,
.page-template-projektid .header {
  background: none;
  height: unset;
  min-height: unset;
}

.single-post .menu,
.page-template-projektid .menu {
  background-color: #07516f;
}

.content--wrapper {
  background-color: #f9f9f9;
}

.content {
  margin: 0 auto;
  max-width: 1100px;
  min-width: 240px;
  padding: 75px 20px 10px 20px;
  color: #333333;
  line-height: 1.6em;
}

.content p,
.content ul,
.content ol {
  margin-bottom: 25px;
}

.content .entry {
  margin-bottom: 25px;
}

.content .entry h1.entry-title,
.content .entry h1 a {
  text-decoration: none;
  color: #07516e;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 32px;
  margin-top: 0;
}

.single-post h1.entry-title {
  text-align: center;
  margin-bottom: 60px;
}

.content .entry a {
  text-decoration: underline;
  color: #07516e;
}

.single-post .entry {
  margin-bottom: 50px;
}

.content .read-more a {
  text-align: center;
  padding: 12px 30px;
  border: 2px solid #07516e;
  border-radius: 20px;
  text-decoration: none;
  color: #07516e;
  min-width: 200px;
  display: inline-block;
}

.read-more {
  align-self: center;
}

@media screen and (min-width: 980px) {
  .content .read-more a {
    display: block;
  }
}

.content .grid {
  min-height: 175px;
  margin-bottom: 75px;
}

@media screen and (min-width: 980px) {
  .content .grid {
    display: grid;
    grid-auto-columns: 1fr;
    grid-template-columns: 1fr min-content;
    gap: 0 100px;
  }
}

.content .entry li {
  margin-bottom: 5px;
}

.content .entry figure {
  margin: 25px 0;
}

.content .entry figcaption {
  padding: 4px;
  font-style: italic;
}

.content .entry img {
  max-width: 100%;
  height: auto;
}

.content .entry img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}

.content .entry img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}

.content .entry img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.content .entry .alignright {
  float: right;
}

.content .entry .alignleft {
  float: left;
}

.content .entry .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.content blockquote {
  border-left: 5px solid #07516f;
  margin-left: 0;
  padding-left: 15px;
}

.content .entry h1,
.content .entry h2,
.content .entry h3,
.content .entry h4,
.content .entry h5,
.content .entry h6 {
  color: #000;
  font-family: "Montserrat Alternates", sans-serif;
  margin-top: 1em;
  line-height: 1.2em;
}

.content .entry h1 {
  font-size: 32px;
}

.content .entry h2 {
  font-size: 28px;
}

.content .entry h3 {
  font-size: 26px;
}

.content .entry h4,
.content .entry h5,
.content .entry h6 {
  font-size: 20px;
}

.wp-block-media-text {
  direction: ltr;
  display: grid;
  grid-template-columns: 40% 1fr;
  grid-template-rows: auto;
}

.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 40%;
}

.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-top .wp-block-media-text__media {
  align-self: start;
}

.wp-block-media-text .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__content,
.wp-block-media-text .wp-block-media-text__media,
.wp-block-media-text.is-vertically-aligned-center .wp-block-media-text__media {
  align-self: center;
}

.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__content,
.wp-block-media-text.is-vertically-aligned-bottom .wp-block-media-text__media {
  align-self: end;
}

.wp-block-media-text .wp-block-media-text__media {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.wp-block-media-text .wp-block-media-text__content {
  direction: ltr;
  grid-column: 2;
  grid-row: 1;
  padding: 0 8% 0 8%;
  word-break: break-word;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
  grid-column: 2;
  grid-row: 1;
}

.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  grid-column: 1;
  grid-row: 1;
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
  max-width: unset;
  width: 100%;
  vertical-align: middle;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media {
  height: 100%;
  min-height: 250px;
  background-size: cover;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media > a {
  display: block;
  height: 100%;
}

.wp-block-media-text.is-image-fill .wp-block-media-text__media img {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile {
    grid-template-columns: 100% !important;
  }
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
    grid-column: 1;
    grid-row: 1;
  }
  .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    grid-column: 1;
    grid-row: 2;
  }
}
