/*
 * Calendar (slug "calendar"). Title, intro and the Church Center calendar embed.
 * Sizes match eaglesnestmn.org: a 1020px column on a grid whose row height is 2.15% of the column width;
 * the intro fills 13 rows, the calendar starts on row 14 and its block is 36 rows tall (on phones 56.25% of
 * its width, at least 192px). The 750px calendar frame is taller than its block on narrow screens and overlaps
 * the footer there, exactly as on the original site.
 */
.enc-p-calendar {
  --enc-cal-c: min(1020px, 92vw);
  --enc-cal-row: calc(var(--enc-cal-c) * 0.0215);
  --enc-cal-cell: calc((var(--enc-cal-c) - 253px) / 24);
  --enc-cal-w: calc(24 * var(--enc-cal-cell) + 253px);
}
/* Grid tracks on the original site snap down to 1/64px; match them where the browser can. */
@supports (width: round(down, 1.5px, 1px)) {
  .enc-p-calendar {
    --enc-cal-row: round(down, var(--enc-cal-c) * 0.0215, 0.015625px);
  }
}
/* Columns only snap when they reach their full width (the 1020px column). */
@supports (width: round(down, 1.5px, 1px)) {
  @media (min-width: 1109px) {
    .enc-p-calendar { --enc-cal-cell: round(down, (var(--enc-cal-c) - 253px) / 24, 0.015625px); }
  }
}
.enc-p-calendar .enc-cal { box-sizing: border-box; margin: 0; padding: 48px 0 4vmax; }
.enc-p-calendar .enc-cal > * { box-sizing: border-box; width: var(--enc-cal-w); margin: 0 auto; }
.enc-p-calendar .enc-cal__intro { min-height: calc(13 * var(--enc-cal-row)); }
.enc-p-calendar .enc-cal h1 { margin: 0 0 32px; text-wrap: wrap; }
.enc-p-calendar .enc-cal p { margin: 16px 0; color: inherit; font-size: inherit; line-height: inherit; }
.enc-p-calendar .enc-cal p:last-child { margin-bottom: 0; }
.enc-p-calendar .enc-cal a { color: var(--enc-button); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.enc-p-calendar .enc-cal__embed {
  position: relative;
  z-index: 1;
  width: calc(20 * var(--enc-cal-cell) + 209px);
  height: calc(36 * var(--enc-cal-row));
  margin: 0 auto 0 calc((100% - var(--enc-cal-w)) / 2 + 2 * (var(--enc-cal-cell) + 11px));
}
.enc-p-calendar .enc-cal__embed iframe { display: block; border: 0; }
@media (max-width: 767px) {
  .enc-p-calendar { --enc-cal-c: 88vw; --enc-cal-w: 88vw; }
  .enc-p-calendar .enc-cal { padding-top: 32px; }
  .enc-p-calendar .enc-cal__intro { min-height: 168px; }
  .enc-p-calendar .enc-cal__embed { width: var(--enc-cal-w); height: max(192px, calc(var(--enc-cal-w) * 0.5625)); margin: 0 auto; }
}
