/* Kanvartfuly Mobile 1.0.0. Phones only. Every rule sits behind body.kvm-on and a flag class, so each part can be switched off. */
@media (max-width:768px){
  html:has(body.kvm-on){overflow-x:clip}
  body.kvm-on{-webkit-text-size-adjust:100%}
  body.kvm-on img{max-width:100%}
  /* iOS zooms in on fields under 16px */
  body.kvm-on input,body.kvm-on select,body.kvm-on textarea{font-size:16px}

  /* ---------- tighter sections ---------- */
  body.kvm-tight .featured-workshop,
  body.kvm-tight .activities,
  body.kvm-tight .workshops-intro,
  body.kvm-tight .corporate-intro-section,
  body.kvm-tight .team,
  body.kvm-tight .location,
  body.kvm-tight .space,
  body.kvm-tight .testimonials,
  body.kvm-tight .contact{padding-top:44px !important;padding-bottom:44px !important}
  body.kvm-tight .activities-intro,
  body.kvm-tight .workshops-intro-grid,
  body.kvm-tight .corporate-intro,
  body.kvm-tight .location-grid,
  body.kvm-tight .contact-grid{gap:22px !important}
  /* the frames had fixed desktop heights (480-520px), so a shorter photo left an empty half. Frame and photo now share one height. */
  body.kvm-tight .activities-image,
  body.kvm-tight .workshops-image,
  body.kvm-tight .corporate-image,
  body.kvm-tight .location-photo{height:230px !important;min-height:0 !important;aspect-ratio:auto !important}
  body.kvm-tight .activities-image img,
  body.kvm-tight .workshops-image img,
  body.kvm-tight .corporate-image img,
  body.kvm-tight .location-photo img{width:100%;height:100% !important;object-fit:cover}
  body.kvm-tight .location-map{height:250px !important;min-height:0 !important}
  body.kvm-tight .location-map iframe{height:100% !important;min-height:0 !important}
  body.kvm-tight .section-title,body.kvm-tight .activities h2,body.kvm-tight .workshops-intro h2,body.kvm-tight .location h2,body.kvm-tight .contact h2{margin-bottom:12px}
  body.kvm-tight .team-header,body.kvm-tight .space-header,body.kvm-tight .testimonials-header{margin-bottom:20px !important}
  body.kvm-tight .testimonials-cta{margin-top:22px !important}

  /* ---------- inner pages (workshops, calendar, vouchers, ...) ---------- */
  body.kvm-pages .page-header,
  body.kvm-pages .kvx-hero:not(.hero){min-height:0 !important;padding:40px 0 86px !important}
  body.kvm-pages .page-header h1{font-size:clamp(30px,9vw,38px) !important;margin-bottom:10px !important}
  body.kvm-pages .page-header p{font-size:14px !important;line-height:1.5 !important}
  body.kvm-pages .page-content{padding-top:28px !important;padding-bottom:36px !important}

  /* workshops: cards swipe sideways, same colours and text */
  body.kvm-pages .kf-workshops-schedule-note{margin:0 0 14px !important;padding:10px 14px !important;font-size:13px !important;line-height:1.4 !important;display:block !important;text-align:center}
  body.kvm-pages .kf-workshops-grid{
    display:flex !important;grid-template-columns:none !important;gap:12px !important;
    overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-left:-20px;margin-right:-20px;padding:6px 20px 14px;scrollbar-width:none;align-items:stretch;
  }
  body.kvm-pages .kf-workshops-grid::-webkit-scrollbar{display:none}
  body.kvm-pages .kf-workshops-grid > .kf-card{flex:0 0 86%;scroll-snap-align:center;margin:0 !important}
  /* photo frame keeps a 4:3 shape so it is never squashed or cut short */
  body.kvm-pages .kf-card-img{height:auto !important;aspect-ratio:4/3 !important;min-height:0 !important}
  body.kvm-pages .kf-card-img img{height:100% !important;width:100% !important;object-fit:cover;object-position:center}
  body.kvm-pages .kf-card h3{min-height:0 !important}
  body.kvm-pages .kf-card-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}

  /* corporate & private page: events cards two by two, past events two by two */
  body.kvm-pages .kf-corp-carousel-section{gap:20px !important;padding-top:20px !important;padding-bottom:20px !important}
  body.kvm-pages .kf-corp-carousel-section .kf-carousel-viewport{aspect-ratio:16/10 !important}
  body.kvm-pages .kf-private-events-section,
  body.kvm-pages .kf-past-events-section{padding-top:32px !important;padding-bottom:32px !important}
  body.kvm-pages .kf-private-header,
  body.kvm-pages .kf-past-header{margin-bottom:20px !important}
  body.kvm-pages .kf-private-header .section-sub,
  body.kvm-pages .kf-past-header .section-sub{font-size:14px !important;line-height:1.5 !important}
  body.kvm-pages .kf-private-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  body.kvm-pages .kf-private-card{min-height:0 !important;padding:16px 12px !important;border-radius:16px}
  body.kvm-pages .kf-private-icon{font-size:26px !important;margin-bottom:6px !important}
  body.kvm-pages .kf-private-card h3{font-size:14px !important;margin:0 0 6px !important;line-height:1.2}
  body.kvm-pages .kf-private-card p{font-size:12px !important;line-height:1.45 !important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
  /* past events: big photos you swipe through (a grid made them too small to see) */
  body.kvm-pages .kf-events-grid{
    display:flex !important;grid-template-columns:none !important;gap:12px !important;
    overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-left:-20px;margin-right:-20px;padding:6px 20px 14px;scrollbar-width:none;
  }
  body.kvm-pages .kf-events-grid::-webkit-scrollbar{display:none}
  body.kvm-pages .kf-events-grid > .kf-event{flex:0 0 80%;scroll-snap-align:center;height:260px !important;margin:0 !important}
  body.kvm-pages .kf-event img{width:100%;height:100% !important;object-fit:cover}
  body.kvm-pages .kf-event-label{font-size:12px !important;padding:10px 8px !important;white-space:normal !important;line-height:1.25}

  /* calendar: slimmer day cards, empty days become one slim bar */
  body.kvm-pages .kanvartfuly-wrap .calendar-section{padding:18px 12px !important}
  body.kvm-pages .kanvartfuly-wrap .calendar-head{margin-bottom:14px !important}
  body.kvm-pages .kanvartfuly-wrap .calendar-table tr{gap:8px !important}
  body.kvm-pages .kanvartfuly-wrap .calendar-table td{padding:8px !important}
  body.kvm-pages .kanvartfuly-wrap .calendar-table td::before{padding:9px !important;margin-bottom:8px !important;font-size:14px !important}
  body.kvm-pages .kanvartfuly-wrap .activity{min-height:0 !important;padding:9px 10px !important;margin-bottom:8px !important}
  body.kvm-pages .kanvartfuly-wrap .activity.off-bubble{min-height:34px !important;margin-bottom:0 !important;padding:6px !important}
  body.kvm-pages .kanvartfuly-wrap .calendar-table td:has(> .off-bubble:only-child)::before{margin-bottom:0 !important;opacity:.85}
  body.kvm-pages .kanvartfuly-wrap .calendar-table td:has(> .off-bubble:only-child) > .off-bubble{display:none !important}

  /* ---------- numbers and people in a grid ---------- */
  body.kvm-grids .team-grid{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  body.kvm-grids .team-grid{margin-bottom:0 !important}
  body.kvm-grids .team-photo{height:auto !important}
  body.kvm-grids .team-photo img{width:100%;height:auto !important;aspect-ratio:4/5;object-fit:cover}
  body.kvm-grids .team-member h4,body.kvm-grids .team-member h3,body.kvm-grids .team-member .team-name{font-size:14px !important;margin-top:8px}
  body.kvm-grids .stats{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:16px 8px !important;padding:20px 10px !important;margin-top:28px !important}
  body.kvm-grids .stat{padding:4px !important;text-align:center}
  body.kvm-grids .stat-num{font-size:clamp(26px,9vw,34px) !important;line-height:1.05}
  body.kvm-grids .stat-label{font-size:11px !important;letter-spacing:.08em !important;line-height:1.35}
  body.kvm-grids .capacity{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:6px !important;padding:16px 6px !important}
  body.kvm-grids .capacity-num{font-size:clamp(26px,9vw,34px) !important}
  body.kvm-grids .capacity-label{font-size:11px !important;letter-spacing:.06em !important}
  body.kvm-grids .private-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}
  body.kvm-grids .event-tile{height:150px !important}

  /* ---------- swipe rows ---------- */
  body.kvm-swipe .space-grid,
  body.kvm-swipe .testimonials-grid{
    display:flex !important;grid-template-columns:none !important;gap:12px !important;
    overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin-left:-20px;margin-right:-20px;padding:6px 20px 14px;scrollbar-width:none;
  }
  body.kvm-swipe .space-grid::-webkit-scrollbar,body.kvm-swipe .testimonials-grid::-webkit-scrollbar{display:none}
  body.kvm-swipe .space-photo{flex:0 0 84%;scroll-snap-align:center;height:auto !important}
  body.kvm-swipe .space-photo img{width:100%;height:220px !important;object-fit:cover}
  body.kvm-swipe .testimonial{flex:0 0 88%;scroll-snap-align:center;margin:0 !important}

  /* ---------- folding footer ---------- */
  body.kvm-fold .footer{padding-top:36px !important;padding-bottom:20px !important}
  body.kvm-fold .footer-grid{gap:0 !important}
  body.kvm-fold .footer-brand{margin-bottom:18px}
  body.kvm-fold .footer-col{border-top:1px solid rgba(255,255,255,.18);margin:0 !important}
  body.kvm-fold .footer-col > h5{display:flex;align-items:center;justify-content:space-between;min-height:52px;margin:0 !important;cursor:pointer;-webkit-tap-highlight-color:transparent}
  body.kvm-fold .footer-col > h5::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px;transition:transform .2s}
  body.kvm-fold .footer-col.kvm-open > h5::after{transform:rotate(-135deg)}
  body.kvm-fold .footer-col:not(.kvm-open) > :not(h5){display:none !important}
  body.kvm-fold .footer-col.kvm-open > :not(h5){padding-bottom:14px}
  body.kvm-fold .footer-bottom{margin-top:0 !important;padding-top:16px !important}

  /* ---------- bottom bar ---------- */
  body.kvm-bar{padding-bottom:76px}
  /* one WhatsApp button only: the bar has it, so hide the floating ones (theme's and Core's) */
  body.kvm-bar [class*="wa-float"]{display:none !important}
  .kvm-dock{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:90;gap:10px;align-items:center;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;box-shadow:0 -6px 18px rgba(1,46,45,.14);transition:transform .25s ease}
  .kvm-dock a.kvm-book{flex:1;min-height:48px;border-radius:24px;background:#e02045;color:#fff;font:700 15px/1 inherit;letter-spacing:.02em;display:flex;align-items:center;justify-content:center;text-decoration:none}
  .kvm-dock a.kvm-wa{flex:none;width:48px;height:48px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center}
  .kvm-dock.kvm-hide{transform:translateY(110%)}
}
@media (min-width:769px){.kvm-dock{display:none !important}}
