/**
 * @file
 * Quote styles
 * Use in templates\paragraph\paragraph--quote.html.twig
 */


.quote {

}
.quote__image {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.quote__image img {
  border-radius: 3px;
}
.quote__image span {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  padding: 1px; /* the thickness of the border */
  /* the below will do the magic */
  -webkit-mask:
     linear-gradient(#fff 0 0) content-box, /* this will cover only the content area (no padding) */
     linear-gradient(#fff 0 0); /* this will cover all the area */
  -webkit-mask-composite: xor; /* needed for old browsers until the below is more supported */
  mask-composite: exclude;
  transform: translate(1.5rem,1.75rem);
}
.quote__image span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300px;
  height: 368px;
  background: var(--color-secondary--gradiant-1);
  transform: translate(-50%, -50%);
}
.quote__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0 2rem;
}
.quote__title h2,
.quote__text p {
  margin: 0;
}
.quote__title:after {
  content: '';
  display: block;
  position: relative;
  width: 54px;
  height: 44px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url('../../images/icons/quote.svg');
}
.quote__content {
  max-width: 500px;
  margin: 0 auto;
}
@media all and (min-width: 768px) {
  .quote__image span::after {
    width: 400px;
    height: 440px;
  }
}
@media all and (min-width: 1024px) {
  .quote__image span::after {
    width: 506px;
    height: 622px;
  }
  .quote {
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 1.5rem));
    gap: 3rem;
    align-items: center;
  }
  .quote__content {
    max-width: 500px;
    margin: 0;
  }
}
@media all and (min-width: 1400px) {
  .quote {
    grid-template-columns: repeat(2, calc(50% - 2.5rem));
    gap: 5rem;
  }
}
