/* MoMaDoRa overrides for the static SiteGround export. */

/* Responsive header */
@media (min-width: 768px) {
  .sb-mobile--visible { display: none !important; }
  .sb-mobile--hidden { display: block !important; }
}
@media (max-width: 767px) {
  .sb-mobile--hidden { display: none !important; }
  .sb-mobile--visible { display: block !important; }
}

/* Header, typography and footer */
button[data-locator="nav-scroll-left"],
button[data-locator="nav-scroll-right"] {
  display: none !important;
}
a[data-locator="nav-link"] {
  font-size: 20px !important;
  font-weight: 600 !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}
img[src*="momadora-logo"] {
  width: 74px !important;
  height: 74px !important;
  max-height: 74px !important;
  margin-left: 16px !important;
}
p.font-paragraph {
  font-size: 19px !important;
  line-height: 1.45 !important;
}
footer [data-preview-locator="footer-copyright"] p {
  font-size: 14px !important;
  white-space: nowrap !important;
}
sb-scroll-to-top {
  display: none !important;
}
.sb-lightbox {
  display: none !important;
}

/* Images */
img.max-w-full.max-h-full {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
.rounded-img img.object-cover {
  object-fit: contain !important;
}
div[data-interactive-element="image-editor"] picture {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}
div[data-interactive-element="image-editor"] picture > img {
  width: 90% !important;
  max-width: 720px !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin-inline: auto !important;
}

/* Static mobile menu */
#momadora-mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10000;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid rgba(68, 61, 57, .18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
}
#momadora-mobile-menu a {
  display: block;
  padding: 16px 24px;
  color: #443d39;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  border-bottom: 1px solid rgba(68, 61, 57, .10);
}
#momadora-mobile-menu a:last-child { border-bottom: 0; }
#momadora-mobile-menu a:focus-visible {
  outline: 3px solid #443d39;
  outline-offset: -4px;
}

/* Artists overview */
body:has(h2[aria-label^="The Artists Nobody Wanted"]) h2[aria-label^="The Artists Nobody Wanted"] {
  white-space: pre-line !important;
}
body:has(h2[aria-label^="The Artists Nobody Wanted"]) > div.theme-bg > div.w-full.grid {
  grid-template-rows: auto !important;
  row-gap: 32px !important;
}
body:has(h2[aria-label^="The Artists Nobody Wanted"]) > div.theme-bg > div.w-full.grid > div {
  grid-row: auto !important;
}
body:has(h2[aria-label^="The Artists Nobody Wanted"]) > .sb-header-wrapper + div.theme-bg > div.w-full.grid {
  padding-top: 24px !important;
  padding-bottom: 16px !important;
}
body:has(h2[aria-label^="The Artists Nobody Wanted"]) > .sb-header-wrapper + div.theme-bg ~ div.theme-bg > div.w-full.grid {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
body:has(h2[aria-label^="The Artists Nobody Wanted"]) div[data-interactive-element="image-editor"] picture > img {
  width: 90% !important;
  height: clamp(180px, 17vw, 220px) !important;
  max-height: none !important;
  object-fit: contain !important;
}

/* Artist biography and preview pages */
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg > div.w-full.grid,
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg + div.theme-bg > div.w-full.grid {
  grid-template-rows: auto !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg > div.w-full.grid > div,
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg + div.theme-bg > div.w-full.grid > div {
  grid-row: auto !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg > div.w-full.grid {
  padding-top: 32px !important;
  padding-bottom: 12px !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg + div.theme-bg > div.w-full.grid {
  padding-top: 12px !important;
  padding-bottom: 32px !important;
  row-gap: 24px !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > div.theme-bg > div.w-full.grid > * {
  grid-row: auto !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > div.theme-bg > div.w-full.grid > a[href="the-artists-nobody-wanted.html"] {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: min(280px, 80vw) !important;
  height: auto !important;
}
body:has(a[href="the-artists-nobody-wanted.html"] button) > div.theme-bg > div.w-full.grid > a[href="the-artists-nobody-wanted.html"] button {
  min-height: 48px !important;
  white-space: nowrap !important;
}

/* Individual artwork pages */
body:has(h2[aria-label="Click the image to go back to the artist"]) > div.theme-bg > div.w-full.grid {
  grid-template-rows: auto !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) > div.theme-bg > div.w-full.grid > div {
  grid-row: auto !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) [style*="contain:size"] {
  contain: none !important;
  height: auto !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg > div.w-full.grid {
  row-gap: 28px !important;
  padding-top: 28px !important;
  padding-bottom: 20px !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg + div.theme-bg > div.w-full.grid {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg + div.theme-bg + div.theme-bg > div.w-full.grid {
  row-gap: 20px !important;
  padding-top: 20px !important;
  padding-bottom: 28px !important;
}
body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg > div.w-full.grid img.max-w-full.max-h-full.rounded-img {
  width: auto !important;
  height: auto !important;
  max-width: min(76vw, 760px) !important;
  max-height: none !important;
  object-fit: contain !important;
}
.momadora-return-section > div.w-full.grid > :not(.momadora-back-button) {
  display: none !important;
}
.momadora-return-section > div.w-full.grid {
  grid-template-columns: 1fr !important;
  grid-template-rows: auto !important;
}
.momadora-back-button {
  display: inline-flex;
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: min(320px, 82vw);
  min-height: 48px;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  background: var(--color-foreground);
  color: var(--color-background);
  font-family: var(--font-family-paragraph);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s ease;
}
.momadora-back-button:hover,
.momadora-back-button:focus-visible {
  opacity: .82;
}
.momadora-home-image-link {
  display: block;
  cursor: pointer;
}

@media (max-width: 767px) {
  body:has(h2[aria-label^="The Artists Nobody Wanted"]) div[data-interactive-element="image-editor"] picture > img {
    height: 260px !important;
  }
  body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg > div.w-full.grid {
    padding-top: 24px !important;
    padding-bottom: 8px !important;
  }
  body:has(a[href="the-artists-nobody-wanted.html"] button) > .sb-header-wrapper + div.theme-bg + div.theme-bg > div.w-full.grid {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
  }
  body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg > div.w-full.grid {
    row-gap: 20px !important;
    padding-top: 20px !important;
    padding-bottom: 16px !important;
  }
  body:has(h2[aria-label="Click the image to go back to the artist"]) > .sb-header-wrapper + div.theme-bg > div.w-full.grid img.max-w-full.max-h-full.rounded-img {
    max-width: 92vw !important;
  }
}

/* Paragraph rhythm: preserve a visible blank line after each paragraph. */
body > div.theme-bg p[role="paragraph"] + p[role="paragraph"] {
  margin-top: .8em !important;
}

/* Homepage: keep every Freshly Rejected preview at the same visual height. */
body:has(h2[aria-label="Freshly Rejected"]) div[data-interactive-element="image-editor"] picture > img {
  width: 90% !important;
  height: clamp(190px, 20vw, 245px) !important;
  max-height: none !important;
  object-fit: contain !important;
}
body:has(h2[aria-label="Freshly Rejected"]) p[aria-label^="A museum without a building"] {
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin-top: 14px !important;
}
body:has(h2[aria-label="Freshly Rejected"]) h2[aria-label="Because someone had to give them a home."] {
  font-size: 21px !important;
  line-height: 1.35 !important;
}

/* About: remove the fixed SiteGround row scaffolding between the blocks. */
body:has(h1[aria-label="About Us"]) > div.theme-bg > div.w-full.grid {
  grid-template-rows: auto !important;
  row-gap: 24px !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
body:has(h1[aria-label="About Us"]) > div.theme-bg > div.w-full.grid > div {
  grid-row: auto !important;
}

/* Interview: compact its section grids and constrain standalone photographs. */
body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid {
  grid-template-rows: auto !important;
  row-gap: 24px !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}
body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid > div {
  grid-row: auto !important;
}
body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid > div:only-child[style*="contain:size"] {
  contain: none !important;
  height: auto !important;
  overflow: visible !important;
}
body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid > div:only-child[style*="contain:size"] img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(74vw, 850px) !important;
  max-height: none !important;
  margin-inline: auto !important;
  object-fit: contain !important;
}

@media (max-width: 767px) {
  body:has(h2[aria-label="Freshly Rejected"]) div[data-interactive-element="image-editor"] picture > img {
    height: 260px !important;
  }
  body:has(h2[aria-label="Freshly Rejected"]) p[aria-label^="A museum without a building"] {
    font-size: 20px !important;
  }
  body:has(h2[aria-label="Freshly Rejected"]) h2[aria-label="Because someone had to give them a home."] {
    font-size: 20px !important;
  }
  body:has(h1[aria-label="About Us"]) > div.theme-bg > div.w-full.grid,
  body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid {
    row-gap: 18px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  body:has(h1[aria-label^="Interview with Fanny Broodthaers"]) > div.theme-bg > div.w-full.grid > div:only-child[style*="contain:size"] img {
    max-width: 92vw !important;
  }
}
