/* New Captain Pete round 1: the gallery area's own styles (one file per area, so slices never edit the same line).
   The old gallery (public/sass/components/gallery.sass + Bootstrap 4 form-inline, measured 2026-11-18): the "Page:" box on the
   left and "Search By" + SEARCH on the right, 12 white-70% cards (15px 5px), 3 columns from 992 px and 2 below; and the old
   Featherlight lightbox (public/css/featherlight*.css) drawn over GLightbox. */

.ncp-gallery-page .ncp-column { overflow: hidden; }
.ncp-gallery-page form { margin: 0; padding: 40px 0; }

/* Bootstrap 4's .form-inline (flex, wrapping, centred), as the old page had it; the old site's .form-control. */
.ncp-gallery-page .form-inline { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; font-size: 17px; font-weight: 300; line-height: 23.8px; }
#search-form.pull-right { float: right; }
.ncp-gallery-page .form-group { margin-bottom: 1rem; }
.ncp-gallery-page .form-control { display: block; width: 100%; height: auto; margin: 10px; padding: 7px 12px; font-family: "Open Sans", sans-serif;
  font-size: 14px; font-weight: 400; line-height: 1.4; color: #555; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); box-sizing: border-box; transition: all .3s ease-out; }
.ncp-gallery-page select.form-control { height: calc(2.74rem + 2px); -webkit-appearance: auto; appearance: auto; }
.ncp-gallery-page .form-control::placeholder { color: #999; }
.ncp-gallery-page .form-control:focus { color: #555; background-color: #fff; border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
.ncp-gallery-page label.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; margin: -1px; }
.ncp-gallery-page #search-gallery { margin: 0; }
.ncp-gallery-page #search-gallery .fa { font-size: 13px; }

/* "Search By" shows its own control (the old script's .search-term-<mode>); JavaScript off shows them all (see the noscript style). */
.ncp-gallery-page .search-term { display: none; }
.ncp-gallery-page .search-term.is-on { display: block; }

@media (min-width: 576px) {
  .ncp-gallery-page .form-inline .form-group { flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; }
  .ncp-gallery-page .form-inline .form-group:not(.search-term), .ncp-gallery-page .form-inline .search-term.is-on { display: flex; }
  .ncp-gallery-page .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
}
.ncp-gallery-page .search-term-date, .ncp-gallery-page .search-term-fish { width: 200px; }
.ncp-gallery-page .search-term-date .form-control, .ncp-gallery-page .search-term-fish .form-control { width: 100%; }

/* The grid: Bootstrap 4's row (width 100%, -15px sides) and columns (15px sides): 3 from 992 px, 2 below. */
.ncp-gwrap { max-width: 960px; padding: 0 30px; background-color: rgba(255, 255, 255, .5); } /* the old .gallery-wrap is capped at the 960 px page width */
.ncp-grow { display: flex; flex-flow: row wrap; width: 100%; margin: 0 -15px; }
.ncp-gcol { position: relative; flex: 0 0 50%; max-width: 50%; padding: 0 15px; box-sizing: border-box; }
@media (min-width: 992px) { .ncp-gcol { flex-basis: 33.3333%; max-width: 33.3333%; } }
.ncp-gallery-page .photo2wrapper { margin: 0 0 15px; padding: 15px 5px; background-color: rgba(255, 255, 255, .7); }
.ncp-gallery-page .photo2weight { font-weight: 700; font-size: 1.5em; text-align: center; }
.ncp-gallery-page .photo2fish { font-weight: 700; font-size: 1.2em; text-align: center; }
.ncp-gallery-page .photo2spot { font-weight: 700; text-align: center; }
.ncp-gallery-page .photo2wrapper img { display: block; margin: 10px auto; max-width: 100%; max-height: 450px; height: auto; }
.ncp-gallery-page .photo2credits { margin-top: 10px; text-align: center; font-size: .75em; }
.ncp-grow, .photo2wrapper { box-sizing: border-box; }

/* The lightbox: the old Featherlight look (a black 80% backdrop; a white frame, 25 px around the photo, 10 px on a phone; a
   small translucent close box top right; the left and right fifth of the frame are the previous and next buttons, with a
   large arrow on hover; the photo alone, no caption), drawn over GLightbox (Featherlight needs jQuery, which this
   template does not load). */
.glightbox-container .goverlay { background: rgba(0, 0, 0, .8); }
.glightbox-container .gslide-media { background: #fff; padding: 25px; box-sizing: border-box; box-shadow: none; max-width: 90vw; }
.glightbox-container .gslide-image img { max-width: 100%; max-height: calc(95vh - 50px); width: auto; }
.glightbox-container .gslide-description, .glightbox-container .gdesc-inner { display: none; }
.glightbox-container .gclose { top: 2.5vh; right: 5vw; width: 25px; height: 25px; padding: 0; opacity: 1; background: rgba(255, 255, 255, .3); border: 0; border-radius: 0; z-index: 99999; }
.glightbox-container .gclose svg { display: none; }
.glightbox-container .gclose::before { content: "\2715"; display: block; line-height: 25px; font-family: Arial, sans-serif; font-size: 14px; color: #000; text-align: center; }
.glightbox-container .gprev, .glightbox-container .gnext { top: 2.5vh; bottom: 2.5vh; height: auto; width: 18vw; max-width: 18vw; margin: 0; padding: 0; border-radius: 0;
  background: rgba(0, 0, 0, 0); opacity: 1; z-index: 99998; }
.glightbox-container .gprev { left: 5vw; right: auto; }
.glightbox-container .gnext { right: 5vw; left: auto; }
.glightbox-container .gprev:hover, .glightbox-container .gnext:hover { background: rgba(255, 255, 255, .25); }
.glightbox-container .gprev svg, .glightbox-container .gnext svg { display: none; }
.glightbox-container .gprev::after, .glightbox-container .gnext::after { display: none; position: absolute; top: 50%; width: 100%; margin-top: -40px; text-align: center;
  font-size: 80px; line-height: 80px; color: #fff; text-shadow: 0 0 5px #fff; }
.glightbox-container .gprev::after { content: "\25C0"; left: 0; }
.glightbox-container .gnext::after { content: "\25B6"; right: 0; }
.glightbox-container .gprev:hover::after, .glightbox-container .gnext:hover::after { display: block; }
@media (max-width: 1024px) {
  .glightbox-container .gslide-media { padding: 10px; max-width: 100vw; }
  .glightbox-container .gslide-image img { max-height: calc(98vh - 20px); }
  .glightbox-container .gclose { top: 10px; right: 0; }
  .glightbox-container .gprev, .glightbox-container .gnext { top: 10px; bottom: 10px; width: 15vw; max-width: 15vw; }
  .glightbox-container .gprev { left: 10px; }
  .glightbox-container .gnext { right: 10px; }
  .glightbox-container .gprev::after, .glightbox-container .gnext::after { display: block; margin-top: -30px; font-size: 40px; }
}

/* Thin screens (under 576 px), Henry 2026-11-18: the old row is broken there and so was ours: each control is 100% wide
   plus a 10 px margin, so it ran 10 px under the SEARCH button, the Search By and Date/Fish/Weight boxes touched, and the
   34 px button sat 8 px off the 46 px boxes' centre. Here the Page box comes first and the search row takes the full width under it: even
   10 px gaps, one 46 px height, centred; it wraps cleanly when it doesn't fit. Differs from the old site on purpose. */
@media (max-width: 575.98px) {
  .ncp-gallery-page .ncp-column { display: flex; flex-direction: column; }
  .ncp-gallery-page #page-form { order: 1; align-self: flex-start; padding-bottom: 20px; }
  .ncp-gallery-page #page-form.form-inline { width: 118px; } /* the old Page box: 118 px, "Page:" over a 98 px input */
  .ncp-gallery-page #search-form { order: 2; }
  .ncp-gallery-page .ncp-gwrap { order: 3; }
  .ncp-gallery-page #search-form.pull-right { float: none; clear: both; width: 100%; }
  .ncp-gallery-page #search-form { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 10px; padding-top: 0; }
  .ncp-gallery-page #search-form .form-group { flex: 1 1 140px; width: auto; margin: 0; }
  .ncp-gallery-page #search-form .search-term.is-on { display: block; }
  .ncp-gallery-page #search-form .form-control { width: 100%; height: 46px; margin: 0; }
  .ncp-gallery-page #search-form #search-gallery { flex: 0 0 auto; height: 46px; padding-left: 20px; padding-right: 20px; }
}
