/* =========================
   GLOBAL + VARIABLES
========================= */

:root{
  --bg:#0b0f17;
  --panel:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --brand:#f59e0b;
  --line:rgba(255,255,255,.12);
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  --radius:18px;
  --max: 1150px;
}

/* Font (note: .otf should be format("opentype"), not truetype) */
@font-face{
  font-family: "Akira Expanded";
  src: url("/assets/fonts/lemon_milk/LEMONMILK-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base reset */
html{ box-sizing: border-box; }
*, *::before, *::after{ box-sizing: inherit; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: white;
  font-size: 16px;
  background-color: var(--bg);
}

a{
  color: #fff;
  text-decoration: none;
}

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================
   PAGE BACKGROUNDS
   Use root-relative paths so they work from any page + inside iframe pages.
========================= */

.page-home{
  background: url("/assets/BG2.jpg") center/cover no-repeat fixed;
}

.page-bounce{
  background: url("/assets/BG3.jpg") center/cover no-repeat fixed;
}

.page-inflatables{
  background: url("/assets/BGGREEN.jpg") center/cover no-repeat fixed;
}

.page-other-items{
  background: url("/assets/BGORNG.jpg") center/cover no-repeat fixed;
}

/* =========================
   HEADER / MARQUEE
========================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(11,15,23,.65);
  backdrop-filter: blur(12px);
}

.topbar-center{
  justify-content: center;
  text-align: center;
}

.topbar-title{
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: clamp(18px, 2vw, 28px);
  text-transform: uppercase;
}

.topbar-marquee{
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track{
  display: inline-flex;
  width: max-content;
  white-space: nowrap;
  gap: 20px;
  will-change: transform;
  animation: marquee 40s linear infinite;
}

.marquee-track span{
  display: inline-block;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: clamp(16px, 2vw, 22px);
}

@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal > *{
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s ease forwards;
}

.reveal > *:nth-child(1){ animation-delay: .2s; }
.reveal > *:nth-child(2){ animation-delay: .4s; }
.reveal > *:nth-child(3){ animation-delay: .6s; }
.reveal > *:nth-child(4){ animation-delay: .8s; }

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

@media (prefers-reduced-motion: reduce){
  .reveal > *{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =========================
   BUTTONS
========================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.btn.primary{
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(135deg, rgba(245,158,11,.95), rgba(245,158,11,.65));
  color:#111827;
}

/* =========================
   HERO
========================= */

.hero{ padding: 42px 0 24px; }

.hero-grid:not(.hero-grid--split){
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-grid--split{
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  max-width: none;
  text-align: initial;
}

.hero-right{
  text-align: center;
  justify-self: center;
  align-self: center;
  max-width: 820px;
}

.tagline-wrap{
  text-align: center;
  margin-bottom: 16px;
}

.hero-tagline{
  display: inline-block;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.05;
}

.hero-tagline .line1,
.hero-tagline .line2{
  display:block;
  font-size: clamp(34px, 4vw, 64px);
}

.hero-tagline .line1{
  white-space: nowrap;
}

.subcopy{
  margin: 0 0 18px;
  color:aliceblue;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-call{ margin-top: 22px; }

.call-text{
  font-size: clamp(18px, 1.4vw, 26px);
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 18px 0 0;
}

.phone-number{
  font-size: clamp(34px, 3.6vw, 68px);
  font-weight: 900;
  margin: 10px 0 0;
  letter-spacing: 1px;
  display:inline-block;
  transition: transform .2s ease, color .2s ease;
}

.phone-number:hover{
  transform: scale(1.05);
  color: var(--brand);
}

/* 3D logo */
.logo-3d{
  perspective: 1000px;
  height: clamp(340px, 32vw, 560px);
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

.logo-3d-inner{
  position: relative;
  height: 100%;
  width: min(520px, 100%);
  transform-style: preserve-3d;
  animation: spinLogo 10s linear infinite;
  will-change: transform;
}

.logo-face{
  position:absolute;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  backface-visibility:hidden;
}

.logo-face img{
  height: 100%;
  width: auto;
  max-width: 100%;
  display:block;
  object-fit: contain;
}

.logo-face.back{ transform: rotateY(180deg); }

@keyframes spinLogo{
  0%{ transform: rotateY(0deg); }
  100%{ transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .logo-3d-inner{ animation: none; }
}

/* =========================
   LICENSE MARQUEE
========================= */

.license-bar{ padding: 14px 0; }

.license-pill{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0,0,0,.35);
  overflow: hidden;
}

.license-track{
  display: inline-flex;
  gap: 8px;
  width: max-content;
  padding: 12px 18px;
  animation: licenseMarquee 14s linear infinite;
  will-change: transform;
}

.license-track span{
  font-weight: 950;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: clamp(14px, 1.6vw, 20px);
  white-space: nowrap;
}

@keyframes licenseMarquee{
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .license-track{ animation: none; }
}

/* =========================
   SECTION + CARDS GRID
========================= */

.section{ padding: 34px 0; }
.section-head{ margin-bottom: 16px; }
.section-head h2{ margin: 0 0 6px; font-size: 28px; }
.section-head p{ margin: 0; color: #fff; }

.grid{ display: grid; gap: 14px; }
.cards{ grid-template-columns: repeat(3, 1fr); perspective: 1200px; }

.card{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.card h3{
  margin: 0;
  font-size: 22px;
  text-align: center;
  font-family: "Akira Expanded", system-ui, sans-serif;
  letter-spacing: 1px;
}

.card p{
  margin: 0;
  color: #fefefe;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* Image frame (this is what shows your photos via background-image rules below) */
.card-img{
  height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(255,255,255,.05);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 10px 25px rgba(0,0,0,.35);

  /* so hover zoom is smooth */
  transform: translateZ(0);
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.card-img::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.08),
    rgba(255,255,255,0) 40%
  );
  pointer-events:none;
}

/* =========================
   RENTAL CARDS (clickable + flare)
========================= */

.rental-card{
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s cubic-bezier(.16,1,.3,1);
}

.rental-card:hover{
  transform: translateY(-18px) scale(1.06);
  box-shadow:
    0 30px 60px rgba(0,0,0,.45),
    0 0 30px rgba(245,158,11,.25);
}

.rental-card:hover .card-img{
  transform: scale(1.05);
}

.rental-card::after{
  content:"";
  position:absolute;
  top:-150%;
  left:-150%;
  width:300%;
  height:300%;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255,255,255,.35) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  opacity:0;
  pointer-events:none;
}

.rental-card:hover::after{
  opacity:1;
  animation: flareMove .9s ease forwards;
}

@keyframes flareMove{
  0%{ transform: translateX(-60%) rotate(25deg); }
  100%{ transform: translateX(60%) rotate(25deg); }
}

/* =========================
   HOME PAGE IMAGES
========================= */
body.page-home .img-home-bounce .card-img{
  background-image: url("/images/sportsbounce.jpg");
}

body.page-home .img-home-inflatables .card-img{
  background-image: url("/images/projector.jpg");
}

body.page-home .img-home-other .card-img{
  background-image: url("/images/generator.jpg");
}

/* =========================
   BOUNCE HOUSE PAGE IMAGES
========================= */
/* Bounce House Page Images */

/* Bounce Houses page (new lowercase .jpg filenames) */
body.page-bounce .img-bounce .card-img{
  background-image: url("/images/pirateship.jpg");
}

body.page-bounce .img-combo .card-img{
  background-image: url("/images/junglebounce.jpg");
}

body.page-bounce .img-water .card-img{
  background-image: url("/images/junglecourse.jpg");
}

body.page-bounce .img-princess .card-img{
  background-image: url("/images/princesscastle.jpg");
}

body.page-bounce .img-dry .card-img{
  background-image: url("/images/wetdryslide.jpg");
}

body.page-bounce .img-sports .card-img{
  background-image: url("/images/sportsbounce.jpg");
}

body.page-bounce .img-doubleslide .card-img{
  background-image: url("/images/sidebyside.jpg");
}

body.page-bounce .img-obstacle .card-img{
  background-image: url("/images/obstaclecourse.jpg");
}

body.page-bounce .img-tumbleweed .card-img{
  background-image: url("/images/tumbleweed.jpg");
}

body.page-bounce .img-18ftslide .card-img{
  background-image: url("/images/18ftslide.jpg");
}

body.page-bounce .img-castlebounce .card-img{
  background-image: url("/images/castlebounce.jpg");
}

body.page-bounce .img-climbslide .card-img{
  background-image: url("/images/climbandslide.jpg");
}
/* =========================
   INFLATABLES PAGE IMAGES
========================= */
body.page-inflatables .img-bounce .card-img{
  background-image: url("/images/projector.jpg");
}

body.page-inflatables .img-combo .card-img{
  background-image: url("/images/cashgrab.jpg");
}

/* =========================
   INFLATABLES PAGE IMAGES
========================= */
body.page-inflatables .img-bounce .card-img{
  background-image: url("/images/projector.jpg");
}

body.page-inflatables .img-combo .card-img{
  background-image: url("/images/cashgrab.jpg");
}

/* =========================
   OTHER ITEMS PAGE IMAGES
========================= */
body.page-other-items .img-generator .card-img{
  background-image: url("/images/generator.jpg");
}

body.page-other-items .img-popcorn .card-img{
  background-image: url("/images/pc-machine.jpg");
}

body.page-other-items .img-cottoncandy .card-img{
  background-image: url("/images/cc-machine.jpg");
}

body.page-other-items .img-snowcone .card-img{
  background-image: url("/images/snowcone.jpg");
}

body.page-other-items .img-cooler .card-img{
  background-image: url("/images/cooler.jpg");
}

body.page-other-items .img-dunktank .card-img{
  background-image: url("/images/dunktank.jpg");
}

body.page-other-items .img-tumbler .card-img{
  background-image: url("/images/ticketdrum.jpg");
}

body.page-other-items .img-tables .card-img{
  background-image: url("/images/tables.jpg");
}

body.page-other-items .img-chairs .card-img{
  background-image: url("/images/chairs.jpg");
}

/* =========================
   DEPOSIT CTA
========================= */

.deposit-cta{ padding: 34px 0; }

.deposit-cta__inner{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 34px 28px;

  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:16px;
}

.deposit-cta__title{
  margin:0;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 950;
  letter-spacing: .6px;
}

.deposit-cta__text{
  margin: 0 0 8px;
  font-size: clamp(18px, 1.6vw, 22px);
  color: #fff;
  white-space: nowrap;
}

.deposit-cta__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  background: linear-gradient(135deg, #22c55e, #16a34a);
  color:#fff;
  border:0;

  font-size:22px;
  font-weight:900;
  padding:22px 54px;
  border-radius:18px;

  box-shadow: 0 18px 45px rgba(34,197,94,.35);
  transition: transform .25s cubic-bezier(.16,1,.3,1),
              box-shadow .25s cubic-bezier(.16,1,.3,1);
}

.deposit-cta__btn:hover{
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 28px 65px rgba(34,197,94,.50);
}

.deposit-cta__fineprint{
  margin: 8px 0 0;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

/* =========================
   MODAL + IFRAME
========================= */



.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{ display: block; }

.modal__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.modal__panel{
  position: relative;
  width: min(980px, calc(100% - 28px));
  height: min(720px, calc(100% - 28px));
  margin: 14px auto;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.92);
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  overflow: hidden;
  display:flex;
  flex-direction:column;
}

.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.modal__title{
  font-weight: 900;
  letter-spacing: .4px;
  font-size: 18px;
}

.modal__subtitle{
  color: rgba(229,231,235,.75);
  font-size: 13px;
  margin-top: 2px;
}

.modal__close{
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

.modal__body{
  flex: 1;
  background: rgba(0,0,0,.15);
}

.modal__panel {
  overflow-x: hidden;
}

.modal__body {
  overflow-x: hidden;
}

#bookingFrame{
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 600px;
}

/* Keep grid inside iframe modal looking like the main page */
.in-modal-iframe .cards{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}

.cards {
  width: 100%;
}

.card {
  width: 100%;
}

/* ===== STOP HORIZONTAL SCROLL IN POPUPS (iPhone) ===== */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* Make sure grid items are allowed to shrink */
.cards,
.card,
.card-img{
  min-width: 0;
}

/* =========================
   FOOTER
========================= */

.footer{
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  padding: 24px 0 10px;
}

.footer-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.footer-title{ font-weight: 900; margin-bottom: 8px; }
.footer-text{ color: var(--muted); line-height: 1.7; }

.footer-links{
  display:flex;
  gap:14px;
  justify-content:flex-end;
  flex-wrap:wrap;
  color: var(--muted);
}

.footer-bottom{
  padding-top: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-links{ justify-content:flex-start; }
}

@media (max-width: 820px){
  .deposit-cta__text,
  .deposit-cta__fineprint{ white-space: normal; }

  .deposit-cta__inner{ padding: 26px 18px; }

  .deposit-cta__btn{
    width: 100%;
    max-width: 420px;
  }

  .hero-grid--split{
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .hero-tagline .line1{ white-space: normal; }

  .in-modal-iframe .cards{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 620px){
  .nav{ display:none; }
  .cards{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .call-text{
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
  }

  .phone-number{
    font-size: clamp(34px, 10vw, 54px);
    font-weight: 900;
    margin: 10px 0 0;
  }
}

/* ===========================================
   FIX: iPhone / modal iframe horizontal scroll
   (Inflatables scrolling to the right)
   Paste at the VERY BOTTOM of styles.css
=========================================== */

/* 1) Hard-stop horizontal scrolling everywhere */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

/* 2) Hard-stop horizontal scrolling inside the modal */
.modal,
.modal__panel,
.modal__body {
  overflow-x: hidden !important;
}

#bookingFrame {
  width: 100%;
  max-width: 100%;
  border: 0;
  display: block;
  overflow: hidden;
}

/* 3) IMPORTANT:
   Do NOT force 3 columns in the iframe. Use auto-fit so it can’t overflow.
   This works on normal pages AND inside the iframe modal. */
.cards {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Make sure grid items can shrink instead of forcing overflow */
.grid, .cards, .card, .card-img {
  min-width: 0 !important;
  max-width: 100%;
}

/* 4) iOS marquee/track overflow fix (these tracks often create “phantom width”) */
.topbar-marquee,
.license-pill {
  width: 100%;
  max-width: 100%;
  overflow: hidden !important;
}

.marquee-track,
.license-track {
  max-width: 100%;
}

/* 5) Mobile tuning: guarantee 1-column on small screens (works in iframe too) */
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Disable clicking + hover lift on OTHER ITEMS page ===== */
body.page-other-items .rental-card{
  cursor: default !important;
}

body.page-other-items .rental-card:hover{
  transform: none !important;
  box-shadow: var(--shadow) !important;
}

body.page-other-items .rental-card:hover .card-img{
  transform: none !important;
}

body.page-other-items .rental-card::after{
  display: none !important;
}
/* ===========================================
   DISABLE CLICK + HOVER EFFECTS
   Bounce Houses, Inflatables, Other Items
=========================================== */

/* Remove pointer cursor */
body.page-bounce .rental-card,
body.page-inflatables .rental-card,
body.page-other-items .rental-card{
  cursor: default !important;
}

/* Remove lift animation */
body.page-bounce .rental-card:hover,
body.page-inflatables .rental-card:hover,
body.page-other-items .rental-card:hover{
  transform: none !important;
  box-shadow: var(--shadow) !important;
}

/* Remove image zoom */
body.page-bounce .rental-card:hover .card-img,
body.page-inflatables .rental-card:hover .card-img,
body.page-other-items .rental-card:hover .card-img{
  transform: none !important;
}

/* Remove flare shine effect */
body.page-bounce .rental-card::after,
body.page-inflatables .rental-card::after,
body.page-other-items .rental-card::after{
  display: none !important;
}

/* ===========================================
   HARD STOP: HORIZONTAL SCROLL INSIDE IFRAME
   Bounce Houses + Inflatables popup pages
=========================================== */

/* Lock the iframe document to the viewport width */
html, body{
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Any wrapper/container/grid must not exceed viewport */
*{
  max-width: 100%;
}

/* Common offenders: marquee/track elements creating phantom width */
.topbar-marquee,
.license-pill{
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Tracks should not force layout wider than screen */
.marquee-track,
.license-track{
  width: max-content;
  max-width: 100% !important;
}

/* Grid/cards must be allowed to shrink */
.container,
.section,
.grid,
.cards,
.card,
.card-img{
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Prevent transforms from generating scroll width on iOS */
.marquee-track,
.license-track{
  transform: translate3d(0,0,0);
}

/* ===== FORCE Bounce House new item images (works in modal iframe too) ===== */
.img-tumbleweed .card-img{ background-image: url("/images/tumbleweed.jpg") !important; }
.img-18ftslide  .card-img{ background-image: url("/images/18ftslide.jpg") !important; }

/* Pick the correct class name based on your HTML (you can keep both safely) */
.img-castlebounce .card-img{ background-image: url("/images/castlebounce.jpg") !important; }
.img-castle       .card-img{ background-image: url("/images/castlebounce.jpg") !important; }

.img-climbslide   .card-img{ background-image: url("/images/climbandslide.jpg") !important; }
.img-climb        .card-img{ background-image: url("/images/climbandslide.jpg") !important; }
.img-climbandslide .card-img{ background-image: url("/images/climbandslide.jpg") !important; }

/* ===========================================
   IMAGE LIGHTBOX
=========================================== */

/* make only the image area feel clickable */
body.page-bounce .card-img,
body.page-inflatables .card-img,
body.page-other-items .card-img{
  cursor: zoom-in;
}
body.page-home .card-img{
  cursor: default;
}

.img-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.img-lightbox.is-open{
  display: block;
}

.img-lightbox__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
}

.img-lightbox__content{
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  height: min(90vh, calc(100% - 32px));
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox__content img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  object-fit: contain;
}

.img-lightbox__close{
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-52px);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px){
  .img-lightbox__content{
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px auto;
  }

  .img-lightbox__close{
    top: 10px;
    right: 10px;
    transform: none;
  }
}

/* ===== IMAGE POPUP ===== */
body.page-bounce .card-img,
body.page-inflatables .card-img,
body.page-other-items .card-img{
  cursor: zoom-in;
}

.img-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.img-lightbox.is-open{
  display: block;
}

.img-lightbox__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
}

.img-lightbox__content{
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  height: min(90vh, calc(100% - 32px));
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-lightbox__content img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  object-fit: contain;
}

.img-lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 22px;
  cursor: pointer;
}
