/*
 * Worship songs (slug "worship-songs"). The original page is a Squarespace fluid-engine grid; the grid is kept here so
 * the title, photo and text land on the same rows at every width (measured on eaglesnestmn.org, 1920–360px).
 * The grid is the layout grid (enc-fe) in site.css; this file sets the rows and places the blocks.
 * Blocks: the heading, the image and the text group are placed by order; the playlist links are a Buttons block with class enc-listen.
 */
.enc-p-songs.enc-fe { --enc-fe-rows: 25; --enc-fe-rows-phone: 18; padding: 48px 0 0; }
.enc-p-songs > * { margin: 0 !important; }
.enc-p-songs > h1 { grid-area: 1 / 4 / 3 / 24; align-self: start; white-space: pre-wrap; }
.enc-p-songs > .wp-block-image { grid-area: 4 / 4 / 18 / 24; position: relative; overflow: hidden; }
.enc-p-songs > .wp-block-image img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 50%;
}
.enc-p-songs__text { grid-area: 19 / 4 / 25 / 24; align-self: start; }
.enc-p-songs__text > * { margin: 16px 0; }
.enc-p-songs__text > :first-child { margin-top: 0; }
.enc-p-songs__text > :last-child { margin-bottom: 0; }
.enc-p-songs p { font-size: inherit; line-height: inherit; white-space: pre-wrap; }
.enc-p-songs a { color: var(--enc-button); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* Playlist links (Buttons block, class enc-listen): outlined buttons with the YouTube and Spotify marks. */
.enc-p-songs .enc-listen.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 24px 0 0; }
.enc-p-songs .enc-listen .wp-block-button { margin: 0; }
.enc-p-songs .enc-listen .wp-block-button__link {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: flex-start; gap: 10px;
  min-height: 48px; padding: 11px 18px;
  border: 1px solid #cbd5d8; border-radius: 4px; background: #f7f9fa; color: #1a2b38;
  font: 500 16px/1.5 Inter, Arial, sans-serif; letter-spacing: normal; text-align: left; text-decoration: none; word-break: normal;
}
.enc-p-songs .enc-listen .wp-block-button__link::before {
  content: ""; width: 24px; height: 24px; flex: 0 0 24px; background-color: currentColor;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
}
.enc-p-songs .enc-listen a[href*="youtube.com"]::before { mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M22%208s-.2-1.4-.8-2C20.4%205.2%2019.5%205.2%2019%205.1%2016.2%205%2012%205%2012%205s-4.2%200-7%20.1c-.5.1-1.4.1-2.2.9C2.2%206.6%202%208%202%208s-.2%201.6-.2%203.3v1.4C1.8%2014.4%202%2016%202%2016s.2%201.4.8%202c.8.8%201.8.8%202.3.9%201.7.2%206.9.2%206.9.2s4.2%200%207-.2c.5-.1%201.4-.1%202.2-.9.6-.6.8-2%20.8-2s.2-1.6.2-3.3v-1.4C22.2%209.6%2022%208%2022%208zM10%2015.5v-7l6%203.5z%22%2F%3E%3C%2Fsvg%3E"); }
.enc-p-songs .enc-listen a[href*="spotify.com"]::before { mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cdefs%3E%3Cmask%20id%3D%22s%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M6.5%208.8c3.6-1%207.9-.6%2011%201.1M7.2%2012c3-1%206.8-.5%209.6.9M8%2015.2c2.6-.7%205.4-.3%207.7.8%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%20mask%3D%22url(%23s)%22%2F%3E%3C%2Fsvg%3E"); }
.enc-p-songs .enc-listen .wp-block-button__link:hover { filter: none; background: #eef2f1; border-color: #6d8791; }
.enc-p-songs .enc-listen .wp-block-button__link:focus-visible { outline: 3px solid #28415b; outline-offset: 4px; }

@media (max-width: 767px) {
  .enc-p-songs.enc-fe { padding-top: 32px; }
  .enc-p-songs > h1 { grid-area: 1 / 2 / 2 / 10; }
  .enc-p-songs > .wp-block-image { grid-area: 3 / 2 / 10 / 10; }
  .enc-p-songs__text { grid-area: 10 / 2 / 19 / 10; }
  .enc-p-songs .enc-listen.wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 16px; }
  .enc-p-songs .enc-listen .wp-block-button, .enc-p-songs .enc-listen .wp-block-button__link { width: 100%; }
}
