/* Elusive Pursuits site refinements.
   This stylesheet is intentionally small and only adjusts the Genesis page/post
   reading column. The homepage and shop page keep their full-width layouts. */

body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .content-sidebar-wrap,
body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .content,
body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .entry {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner {
  max-width: 100%;
}

body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content > * {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content > .alignwide,
body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content > .alignfull,
body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content > figure {
  max-width: 100% !important;
}

body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content img {
  max-width: 100%;
  height: auto;
}

body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .content-sidebar-wrap,
body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .content,
body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .entry,
body.full-width-content.ep-product-content:not(.page-id-222) .entry-content {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > * {
  max-width: 1180px !important;
}

body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > p,
body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > h1,
body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > h2,
body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > h3,
body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > .wp-block-heading {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.full-width-content.ep-product-content:not(.page-id-222) .apd-section,
body.full-width-content.ep-product-content:not(.page-id-222) .apd-list,
body.full-width-content.ep-product-content:not(.page-id-222) .epstore-section,
body.full-width-content.ep-product-content:not(.page-id-222) .epstore-grid {
  width: 100% !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.full-width-content.ep-product-content:not(.page-id-222) .apd-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
  gap: 28px !important;
}

body.full-width-content.ep-product-content .apd-list-item,
body.full-width-content.ep-product-content .epstore-card {
  content-visibility: auto;
  contain-intrinsic-size: 520px 320px;
}

body.full-width-content.ep-product-content:not(.page-id-222) .apd-list-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .content-sidebar-wrap,
  body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .content,
  body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .site-inner .entry,
  body.full-width-content:not(.home):not(.page-id-222):not(.ep-product-content) .entry-content > * {
    max-width: calc(100vw - 40px) !important;
  }

  body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .content-sidebar-wrap,
  body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .content,
  body.full-width-content.ep-product-content:not(.page-id-222) .site-inner .entry,
  body.full-width-content.ep-product-content:not(.page-id-222) .entry-content,
  body.full-width-content.ep-product-content:not(.page-id-222) .entry-content > *,
  body.full-width-content.ep-product-content:not(.page-id-222) .apd-section,
  body.full-width-content.ep-product-content:not(.page-id-222) .apd-list,
  body.full-width-content.ep-product-content:not(.page-id-222) .epstore-section,
  body.full-width-content.ep-product-content:not(.page-id-222) .epstore-grid {
    max-width: calc(100vw - 40px) !important;
  }

  body.full-width-content.ep-product-content:not(.page-id-222) .apd-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.full-width-content.ep-product-content:not(.page-id-222) .apd-grid {
    grid-template-columns: 1fr !important;
  }
}
