/* BEGIN JKO HEADER NORMALIZATION v1.0.2 */
/* Twenty Seventeen classic theme. Paste after existing Additional CSS. */
@media screen {
  body.has-header-image #masthead .custom-header {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 !important; /* global.js writes inline margins */
  }
  body.has-header-image #masthead .custom-header-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    max-height: none;
    overflow: hidden;
    background: transparent;
  }
  body.has-header-image #masthead .wp-custom-header {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }
  body.has-header-image #masthead .custom-header-media img {
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    object-fit: fill;
    object-position: center;
    transform: none;
  }
  body.has-header-image #masthead .custom-header-media::before {
    display: none;
  }
  /* The title is part of the photograph. Retain the real site title for
     assistive technology; reveal branding when its link receives focus. */
  body.has-header-image #masthead .site-branding {
    display: block;
    position: absolute;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0 !important;
    overflow: hidden;
    clip-path: inset(50%);
  }
  body.has-header-image #masthead .site-branding:focus-within {
    inset: 0 0 auto 0;
    width: auto;
    height: auto;
    padding: .75rem 1rem;
    overflow: visible;
    clip-path: none;
    background: #203624;
    z-index: 4;
  }
  body.has-header-image #masthead .site-branding:focus-within .site-title,
  body.has-header-image #masthead .site-branding:focus-within .site-description {
    position: static;
    clip-path: none;
  }
  body.has-header-image #masthead .site-branding:focus-within .site-title a {
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: 3px;
  }
  /* Normal-flow menu on every template; defeat the JS sticky class without
     removing keyboard/mobile submenu handlers from the parent theme. */
  body.has-header-image #masthead .navigation-top,
  body.has-header-image #masthead .navigation-top.site-navigation-fixed {
    position: relative;
    inset: auto;
    width: 100%;
    z-index: 3;
  }
  body.has-header-image #masthead .menu-scroll-down {
    display: none;
  }
  /* Preserve native page and post featured images below navigation. */
}
/* END JKO HEADER NORMALIZATION v1.0.2 */
