/* ============================================================
   King Slayer Sportfishing: /gallery/ page layout and feed skin
   Requires tokens.css then base.css.
   Photo-first page: a COMPACT .page-hero band, then one
   responsive grid of every selected image. The grid is the real
   imagery here, so the band only headlines it and never competes
   with the photographs below.
   ============================================================ */

/* ============ Compact photo band ============ */
/* Page-scoped override of the shared .page-hero. This file loads after
   base.css, so these unconditional rules also beat the base.css
   max-width:640px block: the band stays compact at every breakpoint.
   The image is 1440x1080 with the anglers in the upper third, so the
   crop window is raised from the shared 40% to keep faces in frame. */
.page-hero{min-height:clamp(300px,36vh,420px)}
.page-hero-inner{padding:clamp(3rem,7vw,4.5rem) var(--gutter) clamp(1.75rem,3.5vw,2.5rem)}
.page-hero-img{object-position:50% 20%}
.page-hero h1{margin-bottom:1rem}
.page-hero-cta{margin-top:1.4rem;padding-top:1.2rem}

/* ============ Photo grid ============ */
.gal-band{
  padding:clamp(2rem,4vw,3rem) 0 clamp(3rem,6vw,5rem);
  background:var(--deep-700);
}
.gal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:clamp(.75rem,1.6vw,1.15rem);
  list-style:none;
}
.gal-item{
  border:1px solid var(--line);
  background:var(--panel);
  overflow:hidden;
}
/* height:auto is required: the HTML height attribute is a presentational hint
   that would otherwise beat aspect-ratio and render the photo at full pixel height */
.gal-item img{
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
  /* biased above centre: anglers and fish sit in the upper half of the frame */
  object-position:50% 42%;
  transition:transform .35s ease,opacity .25s ease;
}
.gal-item:hover img{transform:scale(1.035);opacity:.94}

/* ============ Responsive ============ */
@media (max-width:600px){
  .gal-grid{grid-template-columns:1fr;gap:.9rem}
  .gal-item img{aspect-ratio:3/2}
}

/* ============ Smash Balloon feed skin (v2.18) ============ */
/* CSS only: the plugin's saved settings stay untouched. Everything is
   scoped to .ig-band #sb_instagram so nothing outside the feed changes.
   The plugin's masonry script writes absolute positions, widths and a
   container height inline, and the default theme inlines a white card
   background, so those few declarations need !important to win.
   Result: a uniform square grid on the site's gap, no caption or likes
   cards, and the two buttons on the site's button tiers. */
.ig-band #sb_instagram{padding-bottom:0 !important}
.ig-band #sb_instagram #sbi_images{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(.75rem,1.6vw,1.15rem) !important;
  height:auto !important;
  position:static !important;
  padding:0;
}
.ig-band #sb_instagram .sbi_item{
  position:static !important;
  left:auto !important;
  top:auto !important;
  width:auto !important;
  padding:0 !important;
  margin:0 !important;
}
.ig-band #sb_instagram .sbi_inner_wrap{
  background:var(--panel) !important;
  border:1px solid var(--line);
  border-radius:0 !important;
  overflow:hidden;
}
.ig-band #sb_instagram .sbi_photo_wrap{position:relative}
.ig-band #sb_instagram .sbi_photo{
  display:block;
  height:auto !important;
  padding-bottom:0 !important;
  aspect-ratio:1;
  overflow:hidden;
}
.ig-band #sb_instagram .sbi_photo img{
  width:100%;
  height:100% !important;
  aspect-ratio:1;
  object-fit:cover;
  object-position:50% 40%;
  transition:transform .35s ease,opacity .25s ease;
}
.ig-band #sb_instagram .sbi_item:hover .sbi_photo img{transform:scale(1.035);opacity:.94}
/* no caption or likes, in the card or in the hover overlay; the overlay
   itself stays because its link opens the lightbox */
.ig-band #sb_instagram .sbi_info_wrapper,
.ig-band #sb_instagram .sbi_hover_top,
.ig-band #sb_instagram .sbi_hover_bottom,
.ig-band #sb_instagram .sbi-divider{display:none !important}
.ig-band #sb_instagram .sbi_link{background:rgba(13,23,48,.2) !important}

/* buttons: Load More is a tier 2 .btn-action, Follow is the tertiary
   .btn-line used for the other outbound social link on the site */
.ig-band #sb_instagram #sbi_load{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch; /* both buttons take the taller one's height */
  gap:.9rem;
  margin-top:clamp(1.75rem,3.5vw,2.5rem);
}
.ig-band #sb_instagram .sbi_load_btn,
.ig-band #sb_instagram .sbi_follow_btn a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  min-height:44px;
  margin:0 !important;
  font-family:var(--display);
  font-stretch:125%;
  font-variation-settings:'wdth' 125;
  font-weight:680;
  font-size:.8125rem;
  line-height:1.2;
  text-transform:uppercase;
  letter-spacing:.11em;
  text-decoration:none;
  padding:.95em 1.8em !important;
  border-radius:0 !important;
  box-shadow:none !important;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.ig-band #sb_instagram .sbi_load_btn{
  background:var(--blue-bright) !important;
  color:var(--deep-900) !important;
  border:1px solid var(--blue-bright) !important;
}
.ig-band #sb_instagram .sbi_load_btn:hover,
.ig-band #sb_instagram .sbi_load_btn:focus-visible{
  background:var(--ice) !important;
  border-color:var(--ice) !important;
}
.ig-band #sb_instagram .sbi_load_btn .sbi_btn_text{font:inherit;color:inherit}
.ig-band #sb_instagram .sbi_follow_btn{margin:0 !important;display:inline-flex}
.ig-band #sb_instagram .sbi_follow_btn a{
  background:transparent !important;
  color:var(--ice) !important;
  border:1px solid var(--blue) !important;
}
.ig-band #sb_instagram .sbi_follow_btn a:hover,
.ig-band #sb_instagram .sbi_follow_btn a:focus-visible{
  border-color:var(--blue-bright) !important;
  color:var(--blue-bright) !important;
}
.ig-band #sb_instagram .sbi_follow_btn svg{width:1.1em;height:1.1em;margin:0 !important}

@media (max-width:880px){
  .ig-band #sb_instagram #sbi_images{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .ig-band #sb_instagram #sbi_images{grid-template-columns:minmax(0,1fr);gap:.9rem !important}
}
