/* mobile-overrides-43: uncached visual fixes for the deployed site */

/* The moving track must not clip later slides or their lazy-load visibility.
   The stationary .swiper viewport already clips the gallery's outer edges. */
.exhibition-swiper > .swiper-wrapper {
  contain: none;
}

@media (max-width: 767px) {
  section#ueber-mich .painted-frame.about-feature {
    padding: 3.25rem 3.75rem 9.5rem !important;
    background-size: 100% 100% !important;
    margin-bottom: 2.5rem !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner {
    padding-bottom: 5.5rem !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 {
    background: rgba(255, 255, 250, 0.94) !important;
    padding: 1rem 0.85rem 1.45rem !important;
    margin: 1.55rem -0.45rem 2.75rem !important;
    border-radius: 2px !important;
    position: relative !important;
    z-index: 3 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul {
    margin-bottom: 0 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li {
    display: block !important;
    padding: 0.85rem 0 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li:first-child {
    padding-top: 0 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li:last-child {
    padding-bottom: 0 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li > span,
  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li > p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li > span {
    margin: 0 0 0.45rem !important;
    line-height: 1.15 !important;
  }

  section#ueber-mich .painted-frame.about-feature .painted-frame__inner > div.mt-6 > ul > li > p {
    margin: 0 !important;
    line-height: 1.4 !important;
  }
}

/* Match the existing compact-header breakpoint, including the open menu. */
@media (max-width: 1180px) {
  header > nav.painted-frame {
    display: block !important;
    max-height: calc(100vh - 10rem);
    max-height: calc(100dvh - 10rem);
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}
