/* Oceanside round 1: styles for Fish Reports, the report page, Fish Counts and the Gallery. Loaded after os-theme.css.
   The old site showed the first three in iframes of fishreports.com / fishcounts.com pages (Bootstrap 3 pages laid out for the
   width of their own frame) and drew the gallery in the browser. The rules below reproduce those pages' measured look
   (their CSS: fishreports.com/css/style-dev.css + oceanside.css, fishcounts.com/oceanside/oceanside.css). The frames' breakpoints
   (768, 992, 1200 px) were the frame's width, not the screen's, so they are container queries on .os-rep (the frame), not
   media queries. The grid classes are this file's own (.os-r row, .os-c / .os-s* columns): Bootstrap 5's would collide. */

/* ---- the frame: what the old iframe's page looked like (its width is the old iframe's width: the container's 1160 px) ---- */
.os-rep { container-type: inline-size; display: block; margin: 0 0 8px; font: 400 14px/1.42857143 'Open Sans', sans-serif; color: #333333; text-align: left; letter-spacing: normal; overflow: visible; }
.os-rep *, .os-rep *::before, .os-rep *::after { box-sizing: border-box; }
.os-rep a { color: #337ab7; text-decoration: none; }
.os-rep a:hover, .os-rep a:focus { color: #23527c; text-decoration: underline; }
.os-rep-main { padding: 0 15px; }
/* No outer shadow on the cards block or the list block: the old frames clipped theirs, so only the cards' own shadow showed. */
.os-rep-main::before, .os-r::before { content: " "; display: table; }
.os-rep-main::after, .os-r::after { content: " "; display: table; clear: both; }
.os-rep br { display: inline; }
.os-rep b, .os-rep strong { font-weight: 700; }
.os-rep p { font-size: inherit; line-height: inherit; }
.os-rep-wrap { padding-top: 0; }
.os-rep-gap { height: 108px; /* the old page: the inline frame's 8 px line gap, then four <br> of 27 px (the frame is the line's only content) */ }
.os-rep-gap-counts { height: 135px; /* five <br> on the old Fish Counts page */ }
.os-rep-gap-report { height: 81px; /* four <br> on the old report page */ }

/* ---- the grid ---- */
.os-r { margin: 0 -15px; }
.os-c, .os-s2, .os-s4, .os-s8 { position: relative; min-height: 1px; padding: 0 15px; }
.os-c { float: left; width: 100%; }
@container (min-width: 768px) {
  .os-s2, .os-s4, .os-s8 { float: left; }
  .os-s2 { width: 16.66666667%; }
  .os-s4 { width: 33.33333333%; }
  .os-s8 { width: 66.66666667%; }
}

/* ---- the three report cards (the "oceanside-features" embed) ---- */
.os-rep-features .feature-col { float: left; margin-bottom: 20px; }
.os-rep-features .feature-wrapper { padding: 15px 5px; margin: 20px; background: #ffffff; border: 1px solid #999999; border-radius: 0; box-shadow: 0 0 38px 1px rgba(0, 0, 0, .3); font-family: 'Open Sans', sans-serif; color: #333333; }
.os-rep-features .feature-col:last-child .feature-wrapper { margin-bottom: 0; }
.os-rep-features h3.feature-title { margin: 0 0 10px; height: 1.5em; overflow: visible; text-align: center; font: 700 16px/1.1 'Open Sans', sans-serif; color: #000000; }
.os-rep-features .feature-img { height: 300px; border-radius: 5px; background-color: transparent; background-size: contain; background-repeat: no-repeat; background-position: 50% 50%; }
.os-rep-features .feature-author { height: 1.33em; overflow: hidden; margin: 3px 0 8px; }
.os-rep-features .feature-teaser { height: 3em; overflow: hidden; }
.os-rep-features .feature-more { height: 1.33em; overflow: hidden; margin-top: 2px; }

/* ---- the list (the "oceanside-fishreports" embed: the old .scale-table) ---- */
.os-rep .scale-table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; background: none; }
.os-rep .scale-table td { vertical-align: top; }
.os-rep .scale-title { padding: 6px 0 6px 10px; font: 700 24px/1.42857143 Roboto, sans-serif; color: #ffffff; text-shadow: rgb(3, 3, 3) 2px 2px 2px; text-align: center; text-transform: uppercase; background: #3478a5; border-style: solid; border-color: #666666; border-width: 1px 1px 0 1px; border-radius: 0; }
.os-rep .scale-title span { font-weight: 700; }
.os-rep .scale-head { padding: 5px; background: #333333; font: 700 14px/1.42857143 'Open Sans', sans-serif; color: #ffffff; text-align: center; border-top: 2px solid #666666; }
.os-rep .scale-data { padding: 5px; background-color: rgba(255, 255, 255, .7); font: 400 17px/1.42857143 'EB Garamond', serif; color: #000000; text-align: center; border-top: 1px solid #666666; vertical-align: top; }
.os-rep .scale-data:first-child { border-left: 1px solid #666666; }
.os-rep .scale-data:nth-child(2) { border-left: 1px solid #666666; }
.os-rep .scale-data:first-child { border-right: 1px solid #333333; }
.os-rep .scale-data:last-child { border-right: 1px solid #333333; }
.os-rep .scale-foot { padding: 5px 0 5px 10px; background: #333333; font: 400 12px/1.42857143 'Open Sans', sans-serif; color: #0066cc; text-align: center; border-style: solid; border-color: #666666; border-width: 0 1px 1px 1px; border-top: 2px solid #999999; border-radius: 0; }
.os-rep .scale-foot a { color: #337ab7; }
.os-rep .scale-head a, .os-rep .scale-head a:hover { color: #ffffff; }
.os-rep .fish-report-date { vertical-align: top; }
.os-rep .fish-report-report a strong { color: inherit; }

/* ---- Fish Counts (the fishcounts.com page: its own base text is medium, 16 px, Open Sans) ---- */
.os-rep-counts { font: 400 16px/normal 'Open Sans', sans-serif; color: #000000; overflow-x: auto; /* the old frame scrolled inside itself when its table was wider than the phone */ }
.os-rep-counts a { color: #4868aa; }
.os-rep-counts a:hover, .os-rep-counts a:focus { color: #4868aa; }
.os-rep-counts .OSCWrapper { width: 100%; }
.os-rep-counts .OSCFishCount { margin: 0; padding: 0; }
.os-rep-counts .OSCFishCount table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #828282; border-bottom: none; background: #ffffff; }
.os-rep-counts .OSCFishCount table td { border-bottom: 1px solid #828282; padding: 15px 10px; vertical-align: middle; }
.os-rep-counts .OSCFishCountHeader { background: #3478a5; font-weight: 700; color: #ffffff; font-size: 18px; text-transform: uppercase; text-shadow: rgb(3, 3, 3) 2px 2px 2px; text-align: center; padding: 10px; }
.os-rep-counts .OSCFishCountHeader td { font-weight: 700; text-align: center; padding: 10px; border-bottom: 5px solid #2d507b; /* loses to ".OSCFishCount table td" (padding 15/10, 1px border) exactly as in the old oceanside.css */ }
.os-rep-counts #anglers-label::before { content: attr(data-short); }
@container (min-width: 768px) { .os-rep-counts #anglers-label::before { content: attr(data-long); } }
.os-rep-counts .OSCFooter { text-align: center; line-height: 25px; }
.os-rep-counts .OSCFooter img { max-width: 100%; height: auto; vertical-align: baseline; }
.os-rep .os-rep-released { color: #ff0000; }

/* ---- one report (the "detailed_report" embed, style "oceanside": 10/12 of the frame from 768 px, 8/12 from 992, 6/12 from 1200) ---- */
.os-rep-report .os-rep-panel { position: relative; float: left; width: 100%; min-height: 1px; margin: 0 0 20px; padding: 0 15px; background-color: rgba(255, 255, 255, .7); border: 1px solid transparent; border-radius: 4px; box-shadow: 1px 2px 5px rgba(6, 6, 6, .4); }
@container (min-width: 768px)  { .os-rep-report .os-rep-panel { width: 83.33333333%; margin-left: 8.33333333%; } }
@container (min-width: 992px)  { .os-rep-report .os-rep-panel { width: 66.66666667%; margin-left: 16.66666667%; } }
@container (min-width: 1200px) { .os-rep-report .os-rep-panel { width: 50%; margin-left: 25%; } }
.os-rep-report h3 { margin: 20px 0 10px; text-align: center; font: 500 24px/1.1 'Open Sans', sans-serif; color: #333333; }
.os-rep-report p { margin: 0 0 10px; }
.os-rep-report .report_primary_img { text-align: center; }
.os-rep-report .report_img { display: block; max-width: 100%; max-height: 500px; height: auto; margin: 0 auto 10px; border-radius: 5px; vertical-align: middle; }
.os-rep-report .report_title_data { text-align: center; }
.os-rep-report .report_audio_data audio { display: block; width: 100%; max-width: 460px; margin: 0 auto 10px; }
.os-rep-report .report_descript_data { text-align: left; }
.os-rep-report .report_descript_data img { max-width: 100%; height: auto; }
.os-rep-report .os-rep-empty { margin: 20px 0 10px; text-align: center; }

/* ---- Gallery (the old gallery.pug + gallery.sass; Bootstrap 4 grid gutters are 30 px, Bootstrap 5's are 24) ---- */
.os-gal .row { --bs-gutter-x: 30px; --bs-gutter-y: 0; }
.os-gal #search-form, .os-gal #page-form { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; }
.os-gal .form-group { margin-bottom: 1rem; }
.os-gal label.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.os-gal #search-form .form-control, .os-gal #page-form .form-control { display: block; width: 100%; height: 38px; margin: 10px; padding: 6px 12px; font: 400 16px/24px var(--default-font, Montserrat, sans-serif); color: #495057; background-color: #ffffff; border: 1px solid #ced4da; border-radius: 4px; box-shadow: none; }
.os-gal .search-term-date, .os-gal .search-term-fish { width: 200px; }
.os-gal #date, .os-gal #fish_id { width: 100% !important; }
.os-gal #search-form select.form-control { appearance: auto; -webkit-appearance: menulist; /* the old Bootstrap 4 select keeps the native arrow */ }
.os-gal #search-form .btn-os-navy { white-space: nowrap; max-width: none; margin: 0; border: 0; padding: 7px 20px; box-shadow: 0 0 38px 1px rgba(0, 0, 0, .75); cursor: pointer; }
.os-gal #search-form .btn-os-navy .bi { margin-right: 2px; }
@media (min-width: 576px) {
  .os-gal .form-group { display: flex; flex: 0 0 auto; flex-flow: row wrap; align-items: center; margin-bottom: 0; }
  .os-gal #search-form .form-control, .os-gal #page-form .form-control { display: inline-block; width: auto; vertical-align: middle; }
}
.os-gal .gallery-wrap .row, .os-gal #gallery { width: 100%; }
.os-gal .gallery-wrap { width: 100%; }
.os-gal .photo2wrapper { line-height: 1.5; margin: 10px 10px 20px; padding: 15px 5px; background-color: #ffffff; border: 1px solid #999999; box-shadow: 0 0 38px 1px rgba(0, 0, 0, .3); color: #333333; }
.os-gal .os-gal-weight { font-weight: 700; font-size: 1.5em; text-align: center; }
.os-gal .os-gal-fish { font-weight: 700; font-size: 1.2em; text-align: center; }
.os-gal .os-gal-spot { font-weight: 700; text-align: center; }
.os-gal .photo2wrapper a img { display: block; margin: 10px auto; max-height: 450px; }
.os-gal .photo2comments { font-size: .9em; text-align: center; }
.os-gal .photo2credits { margin-top: 10px; text-align: center; font-size: .75em; color: #666666; }
.os-gal .os-gal-empty { text-align: center; margin: 30px 0; }
