/* Media is organized around the player. Giving is organized around the two ways to give. */
.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) {
  --area-gutter: clamp(18px, 4vw, 56px);
}

.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .page-heading > .container,
.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .page-landscape {
  padding-inline: var(--area-gutter);
}

.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .page-heading > .container {
  max-width: 1302px;
  padding-block: clamp(30px, 5vw, 60px);
}

.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .page-sheet {
  max-width: 1190px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  --grain: 0;
}

.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .page-sheet::after {
  content: none;
}

.rbm-wordpress:is(.rbm-layout-videos, .rbm-layout-sermon-audio-samples, .rbm-layout-donate, .rbm-layout-financial-requirements) .entry-content {
  max-width: none;
}

.rbm-wordpress .entry-content .rbm-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #30483a;
  background: #30483a;
  color: #fff9ec;
  font: 500 16px/1.35 Outfit, Arial, sans-serif;
  text-decoration: none;
}

.rbm-wordpress .entry-content .rbm-action:hover {
  background: #233b2f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rbm-wordpress .entry-content .rbm-action--outline {
  background: transparent;
  color: #30483a;
}

.rbm-wordpress .entry-content .rbm-action--outline:hover {
  background: #e8e9db;
}

.rbm-wordpress .entry-content .rbm-action--light {
  background: #f3e6c9;
  border-color: #f3e6c9;
  color: #2a4234;
}

.rbm-wordpress .entry-content .rbm-action--light:hover {
  background: #fff5e0;
}

.rbm-wordpress .rbm-action--light:focus-visible {
  outline-color: #f3e6c9;
}

.rbm-wordpress.rbm-layout-videos .page-heading {
  background-color: #354c40;
  color: #fff6e3;
  --grain: .22;
}

.rbm-wordpress.rbm-layout-videos .page-heading .page-emblem {
  color: #e1c68f;
}

.rbm-wordpress.rbm-layout-videos .page-heading .bg-sketch {
  filter: brightness(2.5);
  opacity: .13;
}

.rbm-wordpress.rbm-layout-videos .page-landscape {
  padding-top: clamp(24px, 4vw, 53px);
  background: #f5efdf;
  --texture: url('../assets/texture-linen.png');
  --grain: .42;
}

.rbm-media-collection,
.rbm-giving-spread {
  display: grid;
  gap: clamp(19px, 3vw, 37px);
}

.rbm-video-feature {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3.2vw, 45px);
  align-items: center;
  padding: clamp(15px, 3vw, 36px);
  border: 1px solid #c4c7b5;
  background-color: #fcf8ed;
}

.rbm-video-feature:nth-of-type(2) {
  background-color: #e8ece0;
}

.rbm-wordpress .entry-content .rbm-video-feature iframe {
  margin: 0;
  background: #25382f;
}

.rbm-wordpress .entry-content .rbm-video-copy h2,
.rbm-wordpress .entry-content .rbm-recording-copy h2 {
  margin: 5px 0 13px;
  font-size: clamp(27px, 3.2vw, 44px);
}

.rbm-wordpress .entry-content .rbm-recording-date {
  margin: 0;
  color: #6e542b;
  font: 500 15px/1.5 Outfit, Arial, sans-serif;
}

.rbm-wordpress .entry-content .rbm-media-channel {
  text-align: right;
  margin: 0;
}

.rbm-wordpress.rbm-layout-sermon-audio-samples .page-heading,
.rbm-wordpress.rbm-layout-sermon-audio-samples .page-landscape {
  background-color: #dce5d9;
}

.rbm-wordpress .entry-content .rbm-recording-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rbm-wordpress .entry-content .rbm-recording {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  margin: 0;
  padding: clamp(16px, 3.2vw, 36px);
  border-left: 4px solid #81947c;
  background: #fbf7eb url('../assets/texture-linen.png') center / 600px;
}

.rbm-wordpress .entry-content .rbm-recording:nth-child(even) {
  background-color: #eff0e5;
  background-blend-mode: multiply;
}

.rbm-recording-player {
  min-width: 0;
}

.rbm-recording-player audio {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

/* Giving pages share a warm base and clear, high contrast actions. */
.rbm-wordpress:is(.rbm-layout-donate, .rbm-layout-financial-requirements) :is(.page-heading, .page-landscape) {
  background-color: #eee5d2;
  --texture: url('../assets/texture-linen.png');
  --grain: .24;
}

.rbm-giving-spread {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
}

.rbm-giving-copy,
.rbm-giving-checkout {
  min-width: 0;
  padding: clamp(12px, 3vw, 40px);
}

.rbm-giving-copy {
  align-self: start;
  background: #344d40;
  color: #fcf5e5;
  border-top: 4px solid #c8a96c;
}

.rbm-wordpress .entry-content .rbm-giving-copy h2 {
  margin: 24px 0 12px;
  color: inherit;
}

.rbm-wordpress .entry-content .rbm-giving-lead {
  max-width: 20ch;
  margin: 0 0 28px;
  font: 500 clamp(29px, 4.35vw, 52px)/1.04 'Cormorant Garamond', Georgia, serif;
}

.rbm-giving-copy address {
  margin-bottom: 23px;
  font-style: normal;
}

.rbm-wordpress .entry-content .rbm-giving-copy p:last-child {
  margin: 0;
}

.rbm-giving-checkout {
  container-type: inline-size;
  border: 1px solid #c6bfa9;
  background: #fbf8ee;
}

.rbm-wordpress .entry-content .rbm-giving-checkout h2 {
  margin-top: 0;
}

.rbm-wordpress .rbm-giving-checkout .rbm-donation {
  margin: 0 auto;
}

.rbm-wordpress .rbm-giving-checkout .rbm-donation > p {
  margin: 0 auto 14px;
}

.rbm-wordpress .rbm-giving-checkout .rbm-donation > p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.rbm-wordpress .rbm-giving-checkout dbox-widget:defined {
  margin-inline: auto;
}

@container (width < 320px) {
  .rbm-wordpress .rbm-giving-checkout dbox-widget:defined {
    display: none !important;
  }
}

.rbm-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(21px, 4.3vw, 60px);
}

.rbm-wordpress .entry-content .rbm-support-photo {
  margin: 0;
  padding: 9px;
  background: #fff9eb;
  box-shadow: 0 15px 26px -20px #4859458a;
}

.rbm-wordpress .entry-content .rbm-support-story p:last-child {
  margin-bottom: 0;
}

.rbm-support-actions {
  grid-column: 1 / -1;
  padding: clamp(17px, 3.5vw, 38px);
  background: #fbf6e9;
  border-top: 3px solid #988053;
}

.rbm-wordpress .entry-content .rbm-support-actions h2 {
  margin: 0 0 15px;
}

.rbm-support-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rbm-wordpress .entry-content .rbm-support-actions p {
  margin: 15px 0 0;
}

@media (max-width: 730px) {
  .rbm-video-feature,
  .rbm-wordpress .entry-content .rbm-recording,
  .rbm-giving-spread,
  .rbm-support-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rbm-media-collection .rbm-media-channel {
    text-align: left;
  }
  .rbm-support-actions {
    grid-column: auto;
  }
}
