/* Post-capture layout fixes (2026-10-28): mobile header, readable inside pages, gallery grid. */

/* Header: a logo you can read on phones (theme.css: 36px, 60px from 992px); keep the body
   offset equal to the fixed navbar. */
@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 48px;
  }
}
body {
  padding-top: 74px;
}
@media (min-width: 992px) {
  body {
    padding-top: 86px;
  }
}

/* Header, content and footer share one centred container (the home carousel stays full width). */
.navbar > .container-fluid,
main > .container-fluid,
footer > .container-fluid {
  max-width: 72rem;
  padding-right: 1rem;
  padding-left: 1rem;
}
.region-content,
.region-footer {
  padding: 0;
}
.region-footer > * {
  width: 100%;
}

/* Article and book pages: text kept to a readable measure. */
.page-node h1 {
  max-width: 46rem;
  margin: 1.5rem 0 1.25rem;
  font-size: calc(1.5rem + 1.2vw);
  line-height: 1.2;
}
.page-node .field--name-field-image {
  margin-bottom: 1.75rem;
}
.page-node .field--name-field-image img {
  max-height: 80vh;
  width: auto;
}
.page-node main .clearfix {
  max-width: 46rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.page-node main .clearfix img {
  max-width: 100%;
  height: auto;
}

/* Galleries: 2 columns on phones, 3 on tablets (col-lg-3 in theme.css gives 4 on desktop);
   thumbnails fill their column. Bounded queries: this file loads after theme.css. */
@media (max-width: 767.98px) {
  .col-6 {
    flex: 0 0 auto;
    width: 50%;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .col-md-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}
.photoswipe-gallery {
  margin-top: 2rem;
}
.photoswipe-gallery a {
  display: block;
}
.photoswipe-gallery img {
  width: 100%;
  height: auto;
}
.gallery-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
@media (min-width: 1200px) {
  .page-node h1 {
    font-size: 2.5rem;
  }
}
