/*
 * Our pastor (slug our-pastor). Scoped to the page's section class enc-p-pastor.
 * The original page is a Squarespace "fluid engine" grid, the layout grid (enc-fe) in site.css: rows grow with
 * the text; this file sets the rows and places the title, photo and text. The photo fills its grid area
 * (object-fit: cover), as on the original.
 */
.enc-p-pastor.enc-section { --enc-fe-rows: 17; --enc-fe-rows-phone: 30; padding: 48px 0 0; font-size: var(--enc-fs); }
.enc-p-pastor.enc-section > * { max-width: none; margin: 0 !important; }
.enc-p-pastor__title { grid-area: 1 / 7 / 4 / 21; }
.enc-p-pastor__photo { grid-area: 5 / 3 / 18 / 11; }
.enc-p-pastor__text { grid-area: 5 / 12 / 16 / 26; }

.enc-p-pastor h1 { margin: 0; text-align: center; white-space: nowrap; }
.enc-p-pastor p { line-height: 1.5em; }
.enc-p-pastor .enc-p-pastor__photo { position: relative; }
.enc-p-pastor__photo a { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.enc-p-pastor .enc-p-pastor__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

@media (max-width: 767px) {
  .enc-p-pastor.enc-section { padding-top: 32px; }
  .enc-p-pastor__title { grid-area: 1 / 2 / 3 / 10; }
  .enc-p-pastor__photo { grid-area: 3 / 2 / 15 / 10; }
  .enc-p-pastor__text { grid-area: 16 / 2 / 31 / 10; }
}
