/* Anti-FOUC logo sizing — load in <head> before body paints */

:root {
  --lmyc-header-logo-slot-mobile: 6.75rem;
  --lmyc-header-logo-slot-desktop: 7rem;
  --lmyc-hero-logo-max: 36rem;
  --lmyc-footer-logo-max: 18rem;
  --lmyc-header-logo-bg: #fdf8f3;
}

#site-header .lmyc-header-bar-logo-link {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: stretch !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  line-height: 0 !important;
  background: var(--lmyc-header-logo-bg) !important;
}

#site-header .lmyc-header-bar-logo,
#site-header .lmyc-header-bar-logo-wrap .lmyc-header-bar-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media screen and (max-width: 1499px) {
  #site-header .lmyc-header-bar-logo-link {
    width: var(--lmyc-header-logo-slot-mobile) !important;
    min-width: var(--lmyc-header-logo-slot-mobile) !important;
    max-width: var(--lmyc-header-logo-slot-mobile) !important;
    height: var(--lmyc-header-logo-slot-mobile) !important;
    min-height: var(--lmyc-header-logo-slot-mobile) !important;
    max-height: var(--lmyc-header-logo-slot-mobile) !important;
  }
}

@media screen and (min-width: 1500px) {
  #site-header .lmyc-header-row {
    height: var(--lmyc-header-logo-slot-desktop) !important;
    min-height: var(--lmyc-header-logo-slot-desktop) !important;
    max-height: var(--lmyc-header-logo-slot-desktop) !important;
  }

  #site-header .lmyc-header-bar-logo-link {
    width: var(--lmyc-header-logo-slot-desktop) !important;
    min-width: var(--lmyc-header-logo-slot-desktop) !important;
    max-width: var(--lmyc-header-logo-slot-desktop) !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    align-self: stretch !important;
  }
}

body.lmyc-header-logo-page #site-header .header__heading,
body.lmyc-home-page #site-header .header__heading {
  display: none !important;
}

.lmyc-hero-logo,
.home-slideshow-section .slideshow-thumb-img .lmyc-hero-logo {
  width: clamp(12rem, 38vw, min(var(--lmyc-hero-logo-max), 94vw)) !important;
  max-width: min(var(--lmyc-hero-logo-max), 94vw) !important;
  height: auto !important;
}

@media screen and (max-width: 749px) {
  .lmyc-hero-logo,
  .home-slideshow-section .slideshow-thumb-img .lmyc-hero-logo {
    width: clamp(16rem, 84vw, min(var(--lmyc-hero-logo-max), 96vw)) !important;
    max-width: min(var(--lmyc-hero-logo-max), 96vw) !important;
  }
}

#site-footer .footer-block__brand-info .footer-block__image-wrapper {
  width: min(100%, var(--lmyc-footer-logo-max)) !important;
  max-width: min(100%, var(--lmyc-footer-logo-max)) !important;
}

#site-footer .footer-block__brand-info .footer-block__image-wrapper img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
