/* load css for the background variant */
@import './content_media_background.css';

.flex_layout.content_media {
  position: relative;
  max-width: 100%;
  margin-bottom: 65px;
}

.content-image__section .holder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 50px;
  padding-left: 50px;
}

.content-image__section .component-image__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--sg-media-radius);
}

.content-image__section .component-image__wrapper .component-image {
  position: relative;
  width: 100%;
  height: fit-content;
  margin-bottom: 0;
  border-radius: var(--sg-media-radius);
}

.content-image__section .component-image__wrapper .component-image::before,
.content-image__section .component-image__wrapper .component-image::after {
  content: '';
  position: absolute;
  left: -18px;
  bottom: -18px;
  width: 100%;
  height: 100%;
  border-radius: var(--sg-media-radius);
}
.content-image__section .component-image__wrapper .component-image::before {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: url(./bg-pattern.png);
  transform: rotate(180deg);
}

.content-image__section .component-image__wrapper .component-image::after {
  background: rgba(var(--sg-primary-rgb), 0.72);
}

.content-image__section .component-image__wrapper .component-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  border-radius: var(--sg-media-radius);
}

.content-image__section .component-content__wrapper h2 {
  font-size: 26px;
  font-weight: var(--sg-heading-weight);
  color: var(--sg-accent);
  margin-bottom: 20px;
}
.content-image__section.bg-blue .component-content__wrapper *{
  color: var(--white);
}

.content-image__section .component-content__wrapper a {
  text-decoration: underline !important;
}

.flex_layout.content_media
  .content-image__section.bg-blue
  .component-content__wrapper
  h2 {
  color: var(--white);
}

/* Mobile view */
@media screen and (max-width: 990px) {
  .content-image__section .holder {
    padding: 0 20px;
    gap: 24px;
  }

  .content-image__section .component-image__wrapper .component-image::before,
  .content-image__section .component-image__wrapper .component-image::after {
    content: '';
    left: -18px;
    bottom: -18px;
  }

  .content-image__section .component-image__wrapper {
    padding-left: 20px;
  }

  .content-image__section .component-content__wrapper {
    max-width: 100%;
  }

  .content-image__section .component-content__wrapper h2 {
    margin-bottom: 16px;
  }
}

@media screen and (max-width: 990px) {
  .content-image__section .holder {
    flex-wrap: wrap;
  }

  .content-image__section .component-image__wrapper,
  .content-image__section .component-content__wrapper {
    max-width: 100%;
  }
  .content-image__section .component-image__wrapper {
    max-width: 100%;
    margin-bottom: 32px;
  }

  .content-image__section .component-image__wrapper .component-image img {
    aspect-ratio: 1 / 1;
  }
}

@media screen and (min-width: 990px) {
  .content-image__section.reverse .holder {
    flex-direction: row-reverse;
  }

  .content-image__section .holder {
    gap: 64px;
  }

  .content-image__section .component-content__wrapper h2 {
    font-size: 32px;
  }

  .content-image__section .component-image__wrapper,
  .content-image__section .component-content__wrapper {
    max-width: 100%;
  }
  .content-image__section .component-image__wrapper .component-image img {
    aspect-ratio: 4/3;
  }
}

@media screen and (min-width: 1199px) {
  .content-image__section .component-image__wrapper .component-image::before,
  .content-image__section .component-image__wrapper .component-image::after {
    left: -20px;
    bottom: -20px;
  }
}

@media screen and (min-width: 1399px) {
  .content-image__section .holder {
    gap: 34px;
  }

  .content-image__section .component-image__wrapper {
    max-width: 45%;
    /* position: sticky;
    top: 50px; */
  }

  .content-image__section .component-content__wrapper {
    max-width: 50%;
  }
  .content-image__section.reverse .component-content__wrapper {
    padding-right: 30px;
  }

  .content-image__section .component-image__wrapper .component-image img {
    aspect-ratio: 1/1;
  }
}

.schoolgids-profile-markland
  .content-image__section
  .component-image__wrapper
  .component-image::before,
.schoolgids-profile-markland
  .content-image__section
  .component-image__wrapper
  .component-image::after {
  display: none;
}

.schoolgids-profile-markland .content-image__section .component-image__wrapper {
  padding-left: 0;
}
