/* ==========================================================================
   Relax FM reusable page templates
   v1.0.271
   ========================================================================== */

.rfm-template-page {
  width: 100%;
  padding: 154px 18px 66px;
  background: #f7f7f7;
  color: #303030;
  font-family: var(--rfm-font-main);
}

.rfm-template-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
}

.rfm-template-inner--standard {
  width: min(1120px, 100%);
}

.rfm-template-header {
  margin: 0 0 18px;
}

.rfm-template-label-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid rgba(210, 4, 53, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .04);
}

.rfm-template-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d20435;
  flex: 0 0 auto;
  box-shadow: 0 0 0 5px rgba(210, 4, 53, .08);
}

.rfm-template-title {
  margin: 0;
  color: #d20435;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rfm-template-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: #727071;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.56;
  font-weight: 700;
}

.rfm-template-layout--sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, calc((100% - 40px) / 3));
  gap: 40px;
  align-items: start;
}

.rfm-template-card,
.rfm-template-sidebar > * {
  border: 1px solid rgba(210, 4, 53, .10);
  border-radius: 28px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 48px rgba(18, 24, 40, .06);
}

.rfm-template-card {
  padding: clamp(22px, 2.45vw, 42px);
  overflow: hidden;
}

.rfm-template-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rfm-template-sidebar > * {
  overflow: hidden;
}

.rfm-template-hero-media,
.rfm-template-card-media,
.rfm-template-wide-media {
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(18, 24, 40, .06);
}

.rfm-template-hero-media {
  margin-bottom: 18px;
  aspect-ratio: 16 / 7;
}

.rfm-template-card-media {
  margin: calc(clamp(22px, 2.45vw, 42px) * -1) calc(clamp(22px, 2.45vw, 42px) * -1) 24px;
  aspect-ratio: 16 / 8;
  border-radius: 28px 28px 22px 22px;
  box-shadow: none;
}

.rfm-template-hero-media img,
.rfm-template-card-media img,
.rfm-template-wide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rfm-template-content {
  color: #303030;
  font-size: clamp(17px, 1.12vw, 20px);
  line-height: 1.72;
  font-weight: 600;
}

.rfm-template-content > *:first-child {
  margin-top: 0;
}

.rfm-template-content > *:last-child {
  margin-bottom: 0;
}

.rfm-template-content h2,
.rfm-template-content h3,
.rfm-template-content h4,
.rfm-template-content h5,
.rfm-template-content h6 {
  margin: 1.45em 0 .65em;
  color: #d20435;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
}

.rfm-template-content h2 {
  font-size: clamp(25px, 2.2vw, 38px);
}

.rfm-template-content h3 {
  font-size: clamp(21px, 1.65vw, 29px);
}

.rfm-template-content h4 {
  font-size: clamp(18px, 1.35vw, 23px);
}

.rfm-template-content p,
.rfm-template-content ul,
.rfm-template-content ol {
  margin: 0 0 1em;
}

.rfm-template-content ul,
.rfm-template-content ol {
  padding-left: 1.35em;
}

.rfm-template-content li + li {
  margin-top: .35em;
}

.rfm-template-content a {
  color: #d20435;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 4, 53, .32);
}

.rfm-template-content a:hover,
.rfm-template-content a:focus-visible {
  border-bottom-color: #d20435;
}

.rfm-template-content strong,
.rfm-template-content b {
  font-weight: 800;
}

.rfm-template-content blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 5px solid #d20435;
  border-radius: 18px;
  background: rgba(210, 4, 53, .055);
  color: #303030;
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.6;
  font-weight: 700;
}

.rfm-template-content table,
.rfm-template-content .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 112, 113, .14);
  border-radius: 18px;
  background: #fff;
}

.rfm-template-content th,
.rfm-template-content td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(114, 112, 113, .12);
  vertical-align: top;
}

.rfm-template-content tr:last-child th,
.rfm-template-content tr:last-child td {
  border-bottom: 0;
}

.rfm-template-content th {
  color: #d20435;
  font-weight: 800;
  text-align: left;
}

.rfm-template-content .wp-block-columns {
  gap: 18px;
  margin: 24px 0;
}

.rfm-template-content .wp-block-column,
.rfm-template-content .wp-block-group,
.rfm-template-content .wp-block-media-text,
.rfm-template-content .wp-block-table,
.rfm-template-content form,
.rfm-template-content .rfm-content-box {
  border: 1px solid rgba(114, 112, 113, .13);
  border-radius: 22px;
  background: #fff;
  padding: clamp(16px, 1.6vw, 24px);
  box-shadow: 0 12px 26px rgba(18, 24, 40, .045);
}

.rfm-template-content .wp-block-column > *:last-child,
.rfm-template-content .wp-block-group > *:last-child,
.rfm-template-content form > *:last-child {
  margin-bottom: 0;
}

.rfm-template-content img,
.rfm-template-content video,
.rfm-template-content iframe {
  max-width: 100%;
}

.rfm-template-content figure,
.rfm-template-content .wp-block-embed,
.rfm-template-content .wp-block-embed__wrapper {
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.rfm-template-content iframe {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
}

.rfm-template-content input,
.rfm-template-content textarea,
.rfm-template-content select {
  width: 100%;
  border: 1px solid rgba(114, 112, 113, .22);
  border-radius: 16px;
  background: #fff;
  color: #303030;
  padding: 13px 15px;
  font: inherit;
  line-height: 1.35;
}

.rfm-template-content textarea {
  min-height: 140px;
  resize: vertical;
}

.rfm-template-content input:focus,
.rfm-template-content textarea:focus,
.rfm-template-content select:focus {
  outline: none;
  border-color: rgba(210, 4, 53, .72);
  box-shadow: 0 0 0 4px rgba(210, 4, 53, .10);
}

.rfm-template-content button,
.rfm-template-content input[type="submit"],
.rfm-template-content .wp-block-button__link {
  width: auto;
  border: 0;
  border-radius: 999px;
  background: #d20435;
  color: #fff !important;
  padding: 13px 22px;
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(210, 4, 53, .22);
  cursor: pointer;
}

.rfm-template-content button:hover,
.rfm-template-content input[type="submit"]:hover,
.rfm-template-content .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(210, 4, 53, .28);
}

/* Wide / landing style */
.rfm-template-inner--wide {
  width: min(1600px, 100%);
}

.rfm-template-wide-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 24px;
}

.rfm-template-wide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  padding: clamp(22px, 2.6vw, 44px);
  border: 1px solid rgba(210, 4, 53, .10);
  border-radius: 30px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 18px 48px rgba(18, 24, 40, .06);
}

.rfm-template-wide-media {
  min-height: 260px;
  aspect-ratio: 16 / 9;
}

.rfm-template-wide-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.rfm-template-wide-content > * {
  grid-column: 2 / -2;
}

.rfm-template-wide-content > .alignwide,
.rfm-template-wide-content > .wp-block-columns,
.rfm-template-wide-content > .wp-block-cover,
.rfm-template-wide-content > .wp-block-media-text,
.rfm-template-wide-content > .wp-block-gallery,
.rfm-template-wide-content > .wp-block-image,
.rfm-template-wide-content > figure,
.rfm-template-wide-content > table,
.rfm-template-wide-content > .wp-block-table,
.rfm-template-wide-content > form {
  grid-column: 1 / -1;
}

.rfm-template-wide-content > .alignfull {
  grid-column: 1 / -1;
}

.rfm-template-wide-content > p,
.rfm-template-wide-content > ul,
.rfm-template-wide-content > ol,
.rfm-template-wide-content > h2,
.rfm-template-wide-content > h3,
.rfm-template-wide-content > h4,
.rfm-template-wide-content > blockquote {
  width: min(980px, 100%);
  justify-self: center;
}

@media (max-width: 1180px) {
  .rfm-template-layout--sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .36fr);
    gap: 28px;
  }

  .rfm-template-wide-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .rfm-template-layout--sidebar {
    grid-template-columns: 1fr;
  }

  .rfm-template-sidebar {
    display: none;
  }
}

@media (max-width: 640px) {
  .rfm-template-page {
    padding: 118px 14px 48px;
  }

  .rfm-template-header {
    margin-bottom: 14px;
  }

  .rfm-template-label-row {
    gap: 8px;
    padding: 7px 12px;
  }

  .rfm-template-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(210, 4, 53, .08);
  }

  .rfm-template-title {
    font-size: 15px;
    letter-spacing: .035em;
  }

  .rfm-template-lead {
    font-size: 16px;
  }

  .rfm-template-card {
    border-radius: 22px;
    padding: 18px;
  }

  .rfm-template-content {
    font-size: 16px;
    line-height: 1.64;
  }

  .rfm-template-content .wp-block-columns {
    gap: 14px;
  }

  .rfm-template-content iframe {
    min-height: 260px;
  }

  .rfm-template-hero-media {
    border-radius: 22px;
    aspect-ratio: 16 / 10;
  }

  .rfm-template-card-media {
    margin: -18px -18px 18px;
    border-radius: 22px 22px 18px 18px;
    aspect-ratio: 16 / 10;
  }

  .rfm-template-wide-copy {
    min-height: 0;
    border-radius: 22px;
    padding: 18px;
  }

  .rfm-template-wide-media {
    min-height: 0;
    border-radius: 22px;
  }

  .rfm-template-wide-content {
    display: block;
  }

  .rfm-template-wide-content > * {
    width: 100%;
  }
}
