/* =========================================================
   Big Woods Fish Landed Gallery
   Green / black hero with clean black stop and tan gallery wall
   File: assets/css/bwfgp-gallery.css
========================================================= */

.gallery-page {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(211, 170, 69, .10), transparent 24rem),
    radial-gradient(circle at 84% 24%, rgba(42, 96, 52, .22), transparent 28rem),
    linear-gradient(
      180deg,
      #07180f 0px,
      #092516 145px,
      #06150f 230px,
      #020806 292px,
      #020806 318px,
      #e6dcc6 319px,
      #efe7d7 100%
    );
}


/* =========================================================
   Gallery Hero
========================================================= */

.gallery-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-bottom: 22px solid #020806;
  background:
    radial-gradient(circle at 72% 18%, rgba(211,170,69,.18), transparent 30%),
    radial-gradient(circle at 14% 90%, rgba(37, 93, 48, .34), transparent 36%),
    linear-gradient(
      180deg,
      #07180f 0%,
      #092516 54%,
      #06150f 82%,
      #020806 100%
    );
  isolation: isolate;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 78px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(8, 36, 21, .68) 32%,
    #06150f 60%,
    #020806 88%,
    #020806 100%
  );
}

.gallery-hero-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .18;
  filter: blur(2px) saturate(.9) contrast(1.05);
  transform: translateZ(0) scale(1.04);
  backface-visibility: hidden;
  will-change: transform;
}

.gallery-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 13, 8, .88), rgba(5, 20, 12, .68), rgba(7, 31, 18, .40)),
    linear-gradient(0deg, rgba(7, 35, 20, .64), rgba(5, 17, 11, .24));
}

.gallery-hero-inner {
  position: relative;
  z-index: 3;
  width: min(1500px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  align-items: center;
  gap: 64px;
}

.gallery-kicker {
  margin: 0 0 8px;
  color: #d3aa45;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.058em;
  text-transform: uppercase;
  text-shadow: 0 20px 54px rgba(0, 0, 0, .48);
}

.gallery-hero-copy > p:last-of-type {
  max-width: 690px;
  margin: 11px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.45;
}


/* =========================================================
   Upload Card
========================================================= */

.gallery-upload-card {
  width: 100%;
  padding: 18px 17px 20px;
  border: 1px solid rgba(211,170,69,.38);
  background:
    linear-gradient(180deg, rgba(236, 222, 188, .13), rgba(8, 28, 18, .58));
  box-shadow: 0 24px 65px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
}

.upload-label {
  display: block;
  margin-bottom: 8px;
  color: #d3aa45;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.gallery-upload-card p {
  margin: 0 0 13px;
  color: rgba(255,255,255,.80);
  font-size: 12px;
  line-height: 1.4;
}

.upload-picker {
  display: block;
  margin-bottom: 11px;
}

.upload-picker input {
  position: absolute;
  left: -9999px;
}

.upload-picker span,
.gallery-upload-card button {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
}

.upload-picker span {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color: #fff;
}

.gallery-upload-card button {
  border: 1px solid rgba(211,170,69,.86);
  background: #d3aa45;
  color: #06100b;
}


/* =========================================================
   Gallery Content
========================================================= */

.gallery-content {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 76px;
  background: transparent;
}

.gallery-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 12% 8%, rgba(211, 170, 69, .16), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(30, 76, 43, .07), transparent 28rem),
    linear-gradient(180deg, #e6dcc6 0%, #efe7d7 42%, #eadfc9 100%);
}

.gallery-section-head {
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0;
  color: #7e6224;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}


/* =========================================================
   Masonry Fish Wall
========================================================= */

.modern-fish-wall {
  column-count: 8;
  column-gap: 10px;
  background: transparent;
}

.modern-fish-tile {
  display: block;
  position: relative;
  width: 100%;
  min-height: 80px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background:
    linear-gradient(135deg, rgba(8, 23, 15, .10), rgba(211, 170, 69, .09));
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  page-break-inside: avoid;
  box-shadow:
    0 5px 12px rgba(34, 25, 10, .15),
    0 0 0 1px rgba(5, 24, 14, .11);
  transform: translateZ(0);
}

.modern-fish-tile img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  background: rgba(8, 23, 15, .08);
  transform: translateZ(0) scale(1.01);
  transition: transform .35s ease, filter .35s ease;
  backface-visibility: hidden;
}

.modern-fish-tile:hover img {
  transform: translateZ(0) scale(1.05);
  filter: saturate(1.08) contrast(1.06);
}

.tile-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(0,0,0,.68));
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.modern-fish-tile:hover .tile-glow {
  opacity: 1;
}

.tile-caption {
  display: none !important;
}


/* =========================================================
   Empty State
========================================================= */

.gallery-empty {
  padding: 28px;
  border: 1px solid rgba(126, 98, 36, .28);
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.22));
  box-shadow: 0 18px 46px rgba(34, 25, 10, .16);
}

.gallery-empty h2 {
  margin: 0;
  color: #08170f;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.gallery-empty p {
  margin: 12px 0 0;
  color: rgba(8, 23, 15, .74);
  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   Upload Status Toast
========================================================= */

.gallery-toast {
  position: fixed;
  top: 92px;
  right: 24px;
  z-index: 100000;
  width: min(360px, calc(100vw - 28px));
  padding: 13px 15px;
  border: 1px solid transparent;
  border-left-width: 5px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .01em;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  animation: galleryToastIn .2s ease-out both;
  transition: opacity .25s ease, transform .25s ease;
}

.gallery-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.gallery-toast-success {
  background: linear-gradient(180deg, #f3fff6 0%, #d9f8e3 100%);
  color: #075c2b;
  border-color: rgba(25, 164, 75, .38);
  border-left-color: #18a64d;
}

.gallery-toast-error {
  background: linear-gradient(180deg, #fff3ed 0%, #f8ded3 100%);
  color: #7a2012;
  border-color: rgba(122, 32, 18, .32);
  border-left-color: #c53a24;
}

@keyframes galleryToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   Not A Robot Modal
========================================================= */

.bw-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(8px);
}

.captcha-modal.is-open {
  display: flex;
}

.captcha-box {
  width: min(420px, 100%);
  border: 1px solid rgba(211, 170, 69, .5);
  background: #efe7d7;
  color: #15130d;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .48);
}

.captcha-box-head {
  padding: 16px 18px;
  background: #03110c;
  color: #fff;
  border-bottom: 1px solid rgba(211, 170, 69, .45);
}

.captcha-box-head strong {
  display: block;
  color: #d7b96a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.captcha-box-head span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .82);
}

.captcha-box-body {
  padding: 18px;
}

.captcha-question {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
  color: #15130d;
}

.captcha-question strong {
  color: #061e13;
  font-size: 22px;
}

.captcha-box input {
  width: 100%;
  height: 42px;
  border: 1px solid #aa9c7f;
  background: #fffdf8;
  color: #15130d;
  padding: 8px 10px;
  font: inherit;
  outline: none;
}

.captcha-error {
  display: none;
  margin: 10px 0 0;
  color: #7b1d12;
  font-size: 12px;
  font-weight: 800;
}

.captcha-error.is-visible {
  display: block;
}

.captcha-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.captcha-actions button {
  min-height: 40px;
  border: 1px solid rgba(6, 30, 19, .25);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.captcha-cancel {
  background: #fff8e8;
  color: #17140f;
}

.captcha-confirm {
  background: #061e13;
  color: #fff;
}


/* =========================================================
   Lightbox
========================================================= */

body.lightbox-open {
  overflow: hidden;
}

.fish-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(12px);
}

.fish-lightbox.is-open {
  display: flex;
}

.lightbox-frame {
  max-width: min(1120px, 88vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 50px);
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.2);
}

.lightbox-frame figcaption {
  display: none;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(0,0,0,.62);
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 21px;
  right: 23px;
  width: 43px;
  height: 43px;
  font-size: 31px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  width: 50px;
  height: 68px;
  font-size: 50px;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 23px;
}

.lightbox-next {
  right: 23px;
}


/* =========================================================
   Footer Blend
========================================================= */

.gallery-page .footer {
  background:
    linear-gradient(180deg, #06150f 0%, #020806 100%);
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .gallery-toast,
  .modern-fish-tile img,
  .tile-glow {
    animation: none;
    transition: none;
  }

  .modern-fish-tile:hover img {
    transform: none;
    filter: none;
  }
}


/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1600px) {
  .modern-fish-wall {
    column-count: 7;
  }
}

@media (max-width: 1400px) {
  .modern-fish-wall {
    column-count: 6;
  }
}

@media (max-width: 1120px) {
  .gallery-hero {
    height: auto;
    min-height: 270px;
  }

  .gallery-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 62px 0 32px;
  }

  .gallery-upload-card {
    max-width: 420px;
  }

  .modern-fish-wall {
    column-count: 5;
  }
}

@media (max-width: 860px) {
  .gallery-hero h1 {
    font-size: clamp(36px, 14vw, 58px);
  }

  .modern-fish-wall {
    column-count: 4;
  }
}

@media (max-width: 700px) {
  .gallery-hero-inner,
  .gallery-content {
    width: min(100% - 32px, 1500px);
  }

  .gallery-hero-inner {
    padding-top: 48px;
  }

  .fish-lightbox {
    padding: 20px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 58px;
    font-size: 42px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}

@media (max-width: 620px) {
  .modern-fish-wall {
    column-count: 3;
    column-gap: 9px;
  }

  .modern-fish-tile {
    margin-bottom: 9px;
    min-height: 70px;
  }
}

@media (max-width: 420px) {
  .gallery-hero h1 {
    font-size: 28px;
  }

  .gallery-hero-copy > p:last-of-type {
    font-size: 12px;
  }

  .modern-fish-wall {
    column-count: 2;
  }

  .modern-fish-tile {
    min-height: 64px;
  }

  .gallery-upload-card,
  .gallery-empty {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .gallery-toast {
    top: 76px;
    left: 14px;
    right: 14px;
    width: auto;
    font-size: 12px;
  }
}