/* Lovely Martha round 1: the gallery area. Loaded after lm-theme.css (includes/header.php).
   Measured on the old gallery (www.lovelymartha.com/gallery.php, 2026-11-18, raw.json): the h2 title centred on the panel
   (white from 768 px, 24 px #00559b on phones; its size is the theme's h2), a 10 px padded centred body, the search
   row (Bootstrap 4 .form-inline: flex, wrapping, left-aligned), and a 3-column row (2 from 576 px, 1 below) with 15 px
   gutters holding the old .photo2wrapper frame. */
.lm-gallery-title { text-align: center; color: #00559b; }
@media (min-width: 768px) { .lm-gallery-title { color: #ffffff; } }
.lm-gallery-body { padding: 10px; text-align: center; }

#search-form { display: flex; flex-flow: row wrap; align-items: center; text-align: center; }
#search-form .form-group { margin: 0 0 1rem; }
#search-form .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0 0 .5rem; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#search-form .form-control { display: block; width: 100%; height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; font-family: inherit;
  font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; border: 1px solid #ced4da; border-radius: .25rem; }
#search-form select.form-control { appearance: auto; -webkit-appearance: auto; }
#search-form .form-control:focus { border-color: #80bdff; outline: 0; box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25); }
#search-form #search_by { margin-right: 5px; }
#search-form .search-term { display: none; width: 200px; }
#search-form .search-term-weight { width: auto; }
#search-form .search-term.is-on { display: block; }
#search-gallery { margin-left: 5px; }
@media (min-width: 576px) {
  #search-form .sr-only { margin-bottom: 0; }
  #search-form .form-group { display: flex; flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; }
  #search-form .form-control { display: inline-block; width: auto; vertical-align: middle; }
  #search-form .search-term .form-control { width: 100%; }
  #search-form .search-term:not(.is-on) { display: none; }
  #search-form .search-term.is-on { display: flex; }
}

/* The grid: the old row of columns, and the frame (.photo2wrapper) with the weight and fish name above the photo. */
.lm-grow { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.lm-gcol { width: 100%; padding: 0 15px; box-sizing: border-box; }
@media (min-width: 576px) { .lm-gcol { width: 50%; } }
@media (min-width: 992px) { .lm-gcol { width: 33.3333%; } }
.lm-gallery-body .photo2wrapper { padding: 4px 0; border: 1px solid #dedede; box-shadow: 8px 15px 5px 0 rgba(0, 0, 0, .55); height: auto; width: auto; max-width: 100%;
  color: #111; display: inline-block; background-color: #fff; margin-bottom: 30px; box-sizing: border-box; }
.lm-gallery-body .photo2wrapper img { margin: 5px 0; max-width: 100%; height: auto; }
.lm-gallery-body .photo2wrapper a.lm-lb { cursor: zoom-in; color: #111; }
.lm-gallery-body .photo2weight { font-weight: bold; font-size: 1.5em; text-align: center; color: #111; }
.lm-gallery-body .photo2fish { font-weight: bold; font-size: 1.2em; text-align: center; color: #111; }
.lm-gallery-body .photo2comments { font-size: 0.9em; text-align: center; }
.lm-gallery-body .photo2credits { font-size: 0.8em; font-style: italic; text-align: center; margin-top: 5px; }
