/* Extend the existing theme's type, colours, buttons and ACF section layouts. */
/* Sticky keeps the header's original space in the document, with no jump. */
:root { --bt-header-height: 104px; --bt-admin-offset: 0px; }
html { scroll-padding-top: calc(var(--bt-header-height) + var(--bt-admin-offset) + 16px); }
#site-wrapper > .header { position: sticky; top: var(--bt-admin-offset); z-index: 1020; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }
@media (max-width: 1031.98px) {
  .header .navbar-collapse { max-height: calc(100vh - var(--bt-header-height) - var(--bt-admin-offset)); max-height: calc(100dvh - var(--bt-header-height) - var(--bt-admin-offset)); overflow-y: auto; overscroll-behavior: contain; }
}
.bt-editorial.bt-wide > .page-content.container-slim { max-width: 1300px; }
.bt-section-intro { max-width: 880px; margin-bottom: 3rem; }
.bt-grid { display: grid; gap: 2.5rem 3rem; }
.bt-feature, .bt-line { min-width: 0; }
.bt-feature-image { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 1.5rem; }
.bt-grid h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 1rem; }
.bt-grid p { margin-bottom: 1rem; }
.bt-line { border-top: 1px solid #c9cdd1; padding-top: 1.5rem; }
.bt-line a { text-underline-offset: .25em; }
.bt-actions { margin-top: 1.75rem; margin-bottom: 0; }
.bt-actions .btn { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
.bt-editorial .btn-outline-white { color: #fff; border: 1px solid #fff; background: transparent; }
.bt-editorial .btn-outline-white:hover, .bt-editorial .btn-outline-white:focus { color: var(--primary, #4778bc); background: #fff; }
.bt-editorial.text-white h2, .bt-editorial.text-white h3, .bt-editorial.text-white .h3 { color: inherit; }
.bt-anniversary-date { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; font-weight: 700; margin-bottom: 2rem; }
.bt-institutional-page .thumbnail-top-page .entry-image img { width: 100%; height: clamp(240px, 32vw, 460px); object-fit: cover; }
.bt-editorial.layout-content-image .entry-image img { width: 100%; max-height: 470px; object-fit: contain; }
.bt-editorial.bt-section-heading { padding-bottom: 1rem !important; }
.bt-institutional-page .page-navigation, .home .page-navigation { overflow-x: auto; }
@media (min-width: 768px) {
  .bt-grid-two, .bt-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .bt-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The longer menu keeps the existing mobile collapse and language link. */
@media (max-width: 1031.98px) {
  .header nav.navbar .wrapper-menu ul.navbar-nav > li.wpml-ls-item { width: 100%; text-align: center; }
  .header nav.navbar .wrapper-menu ul.navbar-nav > li.wpml-ls-item > a { display: block; text-align: center; }
}
@media (min-width: 1032px) {
  .header nav.navbar .wrapper-brand { flex: 0 0 22%; max-width: 22%; }
  .header nav.navbar .wrapper-menu { flex: 0 0 75%; max-width: 75%; }
  .header .navbar-brand { max-width: 100%; margin-right: 1rem; }
  .header .navbar-brand img { max-width: 100%; height: auto; }
  .header nav.navbar .wrapper-menu ul.navbar-nav { align-items: center; gap: .25rem; }
  .header nav.navbar .wrapper-menu ul.navbar-nav > li > a { font-size: .94rem; line-height: 1.2; padding-left: .3rem; padding-right: .3rem; }
}
@media (min-width: 1400px) {
  .header nav.navbar .wrapper-menu ul.navbar-nav > li > a { font-size: 1.05rem; }
}
