/* Hog Heaven round 1: the gallery area. Loaded after hh-theme.css (includes/header.php).
   Measured on the old gallery (www.hogheaven.net/gallery.php, 2026-11-17): panel 1000 px, section padding 0 40px 20px
   (15 px below 992), centred body 10 px padding, a 3-column row (2 from 576 px, 1 below) with 15 px gutters, and the
   old .photo2wrapper frame. The old form is Bootstrap 4's .form-inline (flex, wrapping). */
.hh-gallery-page { padding: 0; }
.hh-gallery-area { width: calc(100% - 30px); margin: 0 auto; }
@media (min-width: 1030px) { .hh-gallery-area { width: 1000px; } }
.hh-gallery-section { position: relative; background: #23634e url("../img/hh/gallery/white-top.png") repeat-x top; padding: 0 15px 20px; }
@media (min-width: 992px) { .hh-gallery-section { padding: 0 40px 20px; } }
.hh-gallery-section > h1 { text-align: center; margin: 0 0 8px; }
.hh-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: Arial, Helvetica, sans-serif;
  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; }
}
noscript .search-term { display: block; }

/* The grid: the old row of columns, and the frame (.photo2wrapper) with the fish name above the photo. */
.hh-grow { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.hh-gcol { width: 100%; padding: 0 15px; box-sizing: border-box; }
@media (min-width: 576px) { .hh-gcol { width: 50%; } }
@media (min-width: 992px) { .hh-gcol { width: 33.3333%; } }
.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; }
.photo2wrapper img { margin: 5px 0; max-width: 100%; height: auto; }
.photo2wrapper a.hh-lb { cursor: zoom-in; color: #111; }
.photo2weight { font-weight: bold; font-size: 1.5em; text-align: center; color: #111; }
.photo2fish { font-weight: bold; font-size: 1.2em; text-align: center; color: #111; }
.photo2comments { font-size: 0.9em; text-align: center; }
.photo2credits { font-size: 0.8em; font-style: italic; text-align: center; margin-top: 5px; }
