﻿/************************************
MISC
************************************/

body {
  word-break: break-word;
}

iframe {
  max-width: 100%;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* MCE responsive video fix */
.mceNonEditable.embeditem {
  position: relative;
  width: 100%;
  --bs-aspect-ratio: 56.25%;
}

  .mceNonEditable.embeditem::before {
    display: block;
    padding-top: var(--bs-aspect-ratio);
    content: "";
  }

  .mceNonEditable.embeditem iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/************************************
TYPOGRAPHY
************************************/
a {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));
  text-decoration: underline;
}

  a:hover {
    color: rgba(var(--bs-link-hover-color-rgb),var(--ps-link-hover-opacity,1));
  }


* p:last-child,
* ul:last-child,
* ol:last-child {
  margin-bottom: 0;
}

b,
bold,
strong {
  font-weight: var(--ps-body-bold-font-weight);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--ps-title-font-family, --bs-body-font-family);
  font-weight: var(--ps-title-font-weight);
  margin-bottom: 0;
}

  h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *, .h1 + *, .h2 + *, .h3 + *, .h4 + *, .h5 + *, .h6 + * {
    margin-top: 1rem;
  }

* + h1, * + h2, * + h3, * + h4, * + h5, * + h6 {
  margin-top: 2rem;
}

ingress,
.lead {
  font-weight: var(--ps-title-font-weight);
}

@media (min-width: 768px) {
  h1, .h1 {
    font-size: var(--ps-h1-font-size);
  }

  h2, .h2 {
    font-size: var(--ps-h2-font-size);
  }

  h3, .h3 {
    font-size: var(--ps-h3-font-size);
  }

  h4, .h4 {
    font-size: var(--ps-h4-font-size);
  }

  h5, .h5 {
    font-size: var(--ps-h5-font-size);
  }

  h6, .h6 {
    font-size: var(--ps-h6-font-size);
  }

  ingress,
  .lead {
    font-size: var(--ps-lead-font-size);
  }

  small {
    font-size: 80%;
  }
}
