.resource-selected-photo {
  display: none;
}

@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell) .page-hero {
    background:
      linear-gradient(
        90deg,
        rgba(6, 38, 54, 0.99) 0%,
        rgba(6, 38, 54, 0.95) 43%,
        rgba(6, 38, 54, 0.68) 68%,
        rgba(6, 38, 54, 0.34) 100%
      ),
      linear-gradient(180deg, rgba(6, 38, 54, 0.02), rgba(6, 38, 54, 0.3)),
      url("assets/resource-photo-selections/03-mobile-client-access.jpg") center 45% / cover no-repeat,
      #082e41 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-grid
    article.resource-feature {
    position: relative;
    isolation: isolate;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-grid
    article.resource-feature
    > * {
    position: relative;
    z-index: 1;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    > section {
    grid-template-rows: auto auto auto minmax(156px, 1fr) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    .worksheet-library-note {
    grid-row: 3 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-selected-photo--organization {
    position: relative;
    display: block;
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    width: 100%;
    min-height: 156px;
    margin-top: 28px;
    overflow: hidden;
    background:
      linear-gradient(105deg, rgba(8, 46, 65, 0.08), rgba(8, 46, 65, 0.3)),
      url("assets/resource-photo-selections/02-modern-file-organization.jpg") left 54% / 215% auto no-repeat;
    border-top: 1px solid rgba(232, 217, 184, 0.55);
    border-bottom: 1px solid rgba(11, 128, 111, 0.62);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08),
      0 16px 30px rgba(4, 29, 41, 0.18);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-selected-photo--organization::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(8, 46, 65, 0.2), transparent 58%),
      linear-gradient(180deg, transparent 62%, rgba(8, 46, 65, 0.24));
    pointer-events: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    .worksheet-groups {
    grid-row: 1 / span 4 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .financial-calculators-heading {
    background:
      linear-gradient(
        90deg,
        rgba(8, 46, 65, 1) 0%,
        rgba(8, 46, 65, 1) 46%,
        rgba(8, 46, 65, 0.88) 61%,
        rgba(8, 46, 65, 0.18) 100%
      ),
      url("assets/resource-photo-selections/06-financial-analysis.jpg") right 45% / 58% auto no-repeat,
      #082e41 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators[data-resource-media="retirement"]
    .financial-calculators-heading {
    background:
      linear-gradient(
        90deg,
        rgba(8, 46, 65, 1) 0%,
        rgba(8, 46, 65, 1) 45%,
        rgba(8, 46, 65, 0.85) 60%,
        rgba(8, 46, 65, 0.14) 100%
      ),
      url("assets/resource-photo-selections/05-retirement-planning.jpg") right 43% / 58% auto no-repeat,
      #082e41 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder[data-resource-media="property"]
    > div:first-child {
    background:
      linear-gradient(
        90deg,
        rgba(8, 46, 65, 1) 0%,
        rgba(8, 46, 65, 1) 45%,
        rgba(8, 46, 65, 0.72) 60%,
        rgba(8, 46, 65, 0.28) 72%,
        rgba(8, 46, 65, 0.05) 100%
      ),
      url("assets/resource-photo-selections/04-property-rental-records.jpg") calc(100% + 100px) 44% / 68% auto no-repeat,
      #082e41 !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    > section {
    grid-template-rows: auto !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-selected-photo--organization {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 780px);
    min-height: 190px;
    margin: 0 0 30px;
    background-position: left 53%;
    background-size: 205% auto;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    .worksheet-groups {
    grid-column: 1;
    grid-row: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="resources"] .resource-selected-photo {
    transition: none !important;
  }
}
