.textmedia {
  display: grid;
  width: 100%;
  padding: 0;
  grid-template-columns: 16px 1fr 16px;

  & .headline .-center {
    text-align: left;
  }

  & .textmedia__image { 
    order: 1; 
    margin-bottom: 30px;
  }

  & .textmedia__content { 
    order: 2;
    padding-bottom: 0;
  }

}

.textmedia.-left {
  & .headline .-center {
    text-align: right;
  }
}

.textmedia.-left.frame-type-gkmb_textmedia{
  background-color: rgb(var(--c-primary-light));
  }

.textmedia__content {
  grid-column: 2;
  padding: 0 0 var(--p) 0;
  align-self: center;
  position: relative;
  text-align: left;

  & h2 {
    font-size: var(--f-size-l-4);
    font-weight: var(--f-weight-bl);
    text-transform: uppercase;
    color: rgb(var(--c-neutral-lightest));
  }

  & .headline.-large {
    margin-bottom: 0;
  }
}

.textmedia.frame-type-gkmb_textmedia {
  background-color: rgb(var(--c-primary));
}

.textmedia__image {
  grid-column: span 3;
  min-height: auto;
}

.textmedia__logo {
  margin-bottom: 40px;
  display: inline-block;
}

.textmedia__logo img {
  max-width: 180px;
  max-height: 60px;
  height: 100%;
  width: 100%;
}

.textmedia__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  position: relative;
  z-index: 100;
  border-radius: 0;
}

.textmedia__text {
  text-wrap: balance;

  & p {
    font-size: var(--f-size-l-2);
    font-weight: var(--f-weight-l);
    color: rgb(var(--c-neutral-lightest));
  }

  & .font__button {
    background-color: rgb(var(--c-neutral-lightest));
    color: rgb(var(--c-secondary));
  }
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 400px) {
  .textmedia {
    grid-template-columns: 4% 1fr 4%;
  }
}

@media (min-width: 500px) {
  .textmedia.-left h3::before,
  .textmedia.-right h3::before {
    left: -42rem;
    top: -0.5rem;
  }
}

@media (min-width: 640px) {
  .textmedia.-left h3::before,
  .textmedia.-right h3::before {
    left: -41rem;
    top: -0.5rem;
  }
}

@media (min-width: 760px) {
  .textmedia__content h2 {
    font-size: var(--f-size-l-5);
  }
}

@media (min-width: 800px) {
  .textmedia {
    grid-template-columns: 4% 1fr 0 1fr 4%;
    padding: 0 !important;

    & .textmedia__image { 
      order: 2;
      margin-bottom: 0;
    }

    & .textmedia__content { 
      order: 1;
      margin: 4.5rem 0;
    }
  }

  .textmedia__content {
    grid-column: 2;
    padding: 0;
  }

  .textmedia__image {
    grid-column: 4 / 6;
    min-height: 50vw;
  }

  .textmedia.-right {
    direction: rtl;
  }

  .textmedia.-left .textmedia__content {
    padding: 0 4rem 0 0;
  }

  .textmedia.-right .textmedia__content {
    padding: 0 0 0 4rem;
    direction: ltr;
  }

  .textmedia.-left h3::before {
    left: -40rem;
    top: -0.5rem;
  }

  .textmedia.-right h3::before {
    left: -37rem;
    top: -0.5rem;
  }
}

@media (min-width: 1024px) {
  .textmedia.-left h3::before {
    left: -39rem;
    top: -0.25rem;
  }

  .textmedia.-right h3::before {
    left: -36rem;
    top: -0.25rem;
  }
}

@media (min-width: 1280px) {
  .textmedia__content {
    margin-top: var(--p);
    margin-bottom: var(--p);
  }

  .textmedia .textmedia__text p {
    font-size: var(--f-size-l-1);
  }

  @media (hover: hover) {
    .textmedia__text .font__button:hover {
      background-color: transparent;
      color: rgb(var(--c-neutral-lightest));
      border-color: rgb(var(--c-neutral-lightest));
    }
  }

  .textmedia.-left h3::before {
    left: -34rem;
    top: -0.25rem;
  }

  .textmedia.-right h3::before {
    left: -29rem;
    top: -0.25rem;
  }
}

@media (min-width: 1540px) {
  .textmedia__image img {
    aspect-ratio: 7 / 4;
  }

  .textmedia {
    grid-template-columns: 1fr 725px 0 725px 1fr;
  }
}

@media (min-width: 1580px) {
  .textmedia.-left h3::before {
    left: -32rem;
    top: 0;
  }

  .textmedia.-right h3::before {
    left: -27rem;
    top: 0;
  }
}
