/* Spirit 24 - navbar sizing overrides (desktop only) */
@media (min-width: 992px) {
  .nav_component {
    padding-top: 0.7rem;
  }
  .nav_container {
    padding-bottom: 0.45rem;
  }
  .nav_logo {
    height: 4.8rem !important;
    width: auto !important;
    margin-top: -0.3rem !important;
  }
}

/* Hide Webflow badge (injected at runtime) */
.w-webflow-badge {
  display: none !important;
}

/* FRED STUDIO footer credit: hover affordance */
a[aria-label="FRED STUDIO"]:hover p {
  text-decoration: underline;
  text-underline-offset: 0.08em;
}

/* Static bananas fallback (touch devices): swap Spline 3D scene for a still plate.
   The runtime never boots there (see gate script in index.html), the plate is
   pointer-art-directed per breakpoint. Desktop keeps the live Spline scene. */
.spline-static {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .spline-object {
    display: none;
  }
  .spline-static {
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
  }
  .spline-static picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .spline-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Sticker CTA: prompt that nudges users to drag the mouth.
   Fades out on first interaction. */
.sticker-cta {
  display: block;
  position: absolute;
  bottom: -2vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  animation: sticker-cta-pulse 2.4s ease-in-out infinite 1.5s;
}
.sticker-cta.is-hidden {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.6s ease;
}
@media (min-width: 992px) {
  .sticker-cta {
    bottom: -4vh;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }
}

/* Touch drag simplification (iPhone/iPad incl. trackpad-attached iPads):
   the desktop peel/flap/shadow choreography repaints an SVG-filtered image on
   every move � brutal on tablet GPUs while dragging. Same treatment the
   max-width:991px block gives phones. Lighting is already JS-gated off. */
@media (hover: none), (pointer: coarse) {
  /* Re-enable the sticker on phones (responsive CSS sets pointer-events:none
     below its breakpoint — the sticker swallowed no input at all there) */
  .sticker_bananas,
  .sticker_footer {
    pointer-events: auto;
  }
  .sticker-container {
    cursor: default !important;
  }
  /* Full drag freedom on touch: the finger that lands on the sticker moves it,
     scrolling starts from anywhere else. The webflow block below 992px sets
     touch-action:auto — override back for the drag to work on phones. */
  .sticker-container {
    touch-action: none;
  }
  .sticker-lighting,
  .flap-lighting {
    filter: none !important;
  }
  /* while dragging on touch: no SVG filters at all, just the flat image */
  .sticker-container.is-plain-drag .sticker-main {
    filter: none !important;
    transition: none !important;
  }
  .sticker-container.is-hovered .sticker-main,
  .sticker-container.is-active .sticker-main,
  .sticker-container:hover .sticker-main {
    clip-path: polygon(
      var(--sticker-start) var(--sticker-start),
      var(--sticker-end) var(--sticker-start),
      var(--sticker-end) var(--sticker-end),
      var(--sticker-start) var(--sticker-end)
    ) !important;
  }
  .sticker-container.is-hovered .flap,
  .sticker-container.is-active .flap,
  .sticker-container:hover .flap {
    top: calc(-100% - 2 * var(--sticker-p)) !important;
    clip-path: polygon(
      var(--sticker-start) var(--sticker-start),
      var(--sticker-end) var(--sticker-start),
      var(--sticker-end) var(--sticker-start),
      var(--sticker-start) var(--sticker-start)
    ) !important;
  }
}

@keyframes sticker-cta-pulse {
  0%, 100% { opacity: 0; }
  15%, 85% { opacity: 0.85; }
}

/* ============================================================
   GALLERIA page (galleria.html) — grid, lightbox, hero
   Same design tokens as the main site: beige/black/red,
   decor-text sizes, padding-global rhythm.
   ============================================================ */

/* --- page hero (compact, no 3D letters) --- */
.section_gallery-hero {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.section_gallery-hero .is-absolute-centr {
  position: relative;
  inset: auto;
  margin: 0 auto;
  text-align: center;
}

/* --- grid --- */
.gallery_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery_item {
  margin: 0;
  position: relative;
  cursor: pointer;
}
.gallery_item-frame {
  overflow: hidden;
  background: var(--brown-200);
  aspect-ratio: 4 / 5;
}
.gallery_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
/* hover zoom only on real pointers */
@media (hover: hover) and (pointer: fine) {
  .gallery_item:hover .gallery_img {
    transform: scale(1.06);
  }
}
.gallery_caption {
  margin-top: 0.5rem;
}

/* responsive: tablet 2 cols, phone 1 col */
@media screen and (max-width: 991px) {
  .gallery_grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media screen and (max-width: 767px) {
  .gallery_grid { grid-template-columns: 1fr; gap: 1rem; }
  .gallery_item-frame { aspect-ratio: 3 / 4; }
}

/* --- lightbox --- */
.gallery_lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gallery_lightbox[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}
.gallery_lightbox-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}
.gallery_lightbox-content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: min(90vw, 1080px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.gallery_lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
.gallery_lightbox-content .gallery_caption {
  text-align: center;
}
.gallery_lightbox-nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery_nav-btn p {
  font-size: 1rem;
}

/* GALLERIA link behind the mouth sticker (bananas section) */
.bananas_text-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.bananas_text-link .text-qoute-bottom {
  transition: color 0.3s ease;
}
.bananas_text-link:hover .text-qoute-bottom:first-child {
  color: var(--red);
}
