/* Minimal shim for the Bootstrap utility classes still present in legacy markup.
   This replaces the 200KB bootstrap.min.css; only the utilities/components actually
   referenced by the existing HTML are reproduced here. */

/* Bootstrap reboot essentials — without these, browser defaults make the layout
   subtly different from the original (h1 margins push absolute text off-center,
   content-box widths defeat max-width wrapping, etc.) */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  /* Reset browser-default 8px margin. Without this, opening the gallery modal
     (which sets body to position:fixed; left:0) drops the natural 8px gap and
     shifts every page element 8px to the left, then back when the modal closes. */
  margin: 0;
  /* Bootstrap 4 default — many flex-aligned text blocks rely on this to size
     line-boxes consistently; without it, browser-default line-height (~1.2) makes
     centered text drift off-center in flex containers like .link-img buttons. */
  line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
p {
  margin-top: 0;
  margin-bottom: 1rem;
}
ul, ol {
  margin-top: 0;
}

/* Display & Flex utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-stretch { align-items: stretch; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.overflow-hidden { overflow: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }

/* Margin utilities (subset used) */
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }

/* Container & grid (Bootstrap 5 breakpoints) */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.row > [class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  box-sizing: border-box;
}

/* col-N (mobile-first, no breakpoint = always applies) */
.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;       max-width: 25%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
.col-6  { flex: 0 0 50%;       max-width: 50%; }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-9  { flex: 0 0 75%;       max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
.col-12 { flex: 0 0 100%;      max-width: 100%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-sm-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-sm-3  { flex: 0 0 25%;       max-width: 25%; }
  .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-sm-6  { flex: 0 0 50%;       max-width: 50%; }
  .col-sm-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-sm-12 { flex: 0 0 100%;      max-width: 100%; }
}
/* Responsive display utilities (display:flex at given breakpoint and up) */
@media (min-width: 576px) {
  .d-sm-flex   { display: flex; }
  .d-sm-block  { display: block; }
  .d-sm-inline-block { display: inline-block; }
  .d-sm-none   { display: none; }
}
@media (min-width: 768px) {
  .d-md-flex   { display: flex; }
  .d-md-block  { display: block; }
  .d-md-inline-block { display: inline-block; }
  .d-md-none   { display: none; }
}
@media (min-width: 992px) {
  .d-lg-flex   { display: flex; }
  .d-lg-block  { display: block; }
  .d-lg-inline-block { display: inline-block; }
  .d-lg-none   { display: none; }
}
@media (min-width: 1200px) {
  .d-xl-flex   { display: flex; }
  .d-xl-block  { display: block; }
  .d-xl-none   { display: none; }
}

@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-3  { flex: 0 0 25%;       max-width: 25%; }
  .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-md-6  { flex: 0 0 50%;       max-width: 50%; }
  .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-md-9  { flex: 0 0 75%;       max-width: 75%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-11 { flex: 0 0 91.6667%; max-width: 91.6667%; }
  .col-md-12 { flex: 0 0 100%;      max-width: 100%; }
  .flex-md-row { flex-direction: row; }
  .flex-md-column { flex-direction: column; }
}
@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-lg-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3  { flex: 0 0 25%;       max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .col-lg-6  { flex: 0 0 50%;       max-width: 50%; }
  .col-lg-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .col-lg-12 { flex: 0 0 100%;      max-width: 100%; }
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}
@media (min-width: 1200px) {
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Order */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Nav (used in footer) */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-item { display: list-item; }
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
}

/* Spinner & utilities used by the loading states */
@keyframes spinner-border { to { transform: rotate(360deg); } }
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: 0.75s linear infinite spinner-border;
}
.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Print noscript iframe wrapper safety */
img, picture, video { max-width: 100%; }

/* Bootstrap 4 reboot: links default to no underline (matches the legacy site
   that loaded bootstrap.min.css for `a { text-decoration: none }`). Pages like
   privacy/terms still get underlines via inline styles where intended. */
a {
  text-decoration: none;
}
