/* Brown Europe House snapshot-specific presentation fixes */
#branding img,
#phantom .logo-box img {
  display: block;
  width: min(440px, 100%);
  height: auto;
}

/* Keep one simple header. The original theme injects #phantom as a second,
   floating copy of the logo/navigation once the page starts scrolling. */
#phantom {
  display: none !important;
}

#header,
#masthead {
  position: relative !important;
  top: auto !important;
  transform: none !important;
}

.beh-fixed-hero {
  width: 100%;
  margin: 0;
  background: #f5f5f5;
  overflow: hidden;
}

.beh-fixed-hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.beh-home-intro {
  display: grid;
  grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.beh-home-intro figure {
  margin: 0;
}

.beh-home-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.beh-home-intro p {
  margin-top: 0;
  color: #000;
}

.beh-contact-details {
  padding: 24px;
  border-top: 5px solid #c40001;
  background: #f5f5f5;
  box-sizing: border-box;
  color: #111;
}

.beh-contact-details h3 {
  margin: 0 0 18px;
  color: #161586;
}

.beh-contact-details p {
  margin: 0 0 16px;
  color: #111;
}

.beh-contact-details p:last-child {
  margin-bottom: 0;
}

.beh-contact-details a {
  color: #161586;
  font-weight: 700;
  text-decoration: none;
}

.beh-contact-details a:hover,
.beh-contact-details a:focus {
  color: #c40001;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .beh-home-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* Brown logo visibility: the original theme initially fades header images to opacity 0. */
#branding, #branding a, #branding img, #phantom .logo-box, #phantom .logo-box a, #phantom .logo-box img {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Prevent the table-layout header from collapsing the logo cell to 1px. */
#header #branding {
  width: 440px !important;
  min-width: 440px !important;
}

#header #branding > a {
  display: block !important;
  width: 440px !important;
}

#header #branding img {
  width: 440px !important;
  max-width: none !important;
}

@media (max-width: 900px) {
  #header #branding {
    width: auto !important;
    min-width: 0 !important;
  }

  #header #branding > a {
    width: min(440px, calc(100vw - 96px)) !important;
  }

  #header #branding img {
    width: 100% !important;
    max-width: 100% !important;
  }
}
