/* v7 hotfix */
.cardMedia{position:relative; overflow:hidden}
.cardMedia img{width:100%; height:600px !important; object-fit:cover;}
.cardShade{position:absolute; inset:0; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.65)); pointer-events:none}
select.field{color: rgba(245,247,255,.92)}
select.field option{color:#111}

/* ------------------------------------------------------------
   Galerie (albume + lightbox)
------------------------------------------------------------ */

.mlGalleryGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.mlAlbum{display:block;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);text-decoration:none;color:inherit;transition:transform .15s ease, border-color .15s ease}
.mlAlbum:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.22)}
.mlAlbumMedia{position:relative;height:180px}
.mlAlbumMedia img{width:100%;height:100%;object-fit:cover;display:block}
.mlAlbumFallback{width:100%;height:100%;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02))}
.mlAlbumShade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.62) 100%)}
.mlAlbumBody{padding:14px 14px 16px}
.mlAlbumTitle{font-weight:800;font-size:18px;line-height:1.2}
.mlAlbumDesc{margin-top:6px;opacity:.78;font-size:13px;line-height:1.35}

.mlPhotos{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.mlPhoto{position:relative;border:0;padding:0;background:transparent;border-radius:14px;overflow:hidden;cursor:pointer}
.mlPhoto img{width:100%;height:160px;object-fit:cover;display:block;border:1px solid rgba(255,255,255,.12);border-radius:14px}
.mlPlay{position:absolute;left:10px;bottom:10px;width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);color:#fff;font-weight:800;font-size:14px;border:1px solid rgba(255,255,255,.2)}

.mlLightbox{position:fixed;inset:0;z-index:9999;opacity:0;transition:opacity .18s ease}
.mlLightbox.isOpen{opacity:1}
.mlLightboxShade{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.mlLightboxCard{position:relative;max-width:min(1100px,92vw);max-height:86vh;margin:8vh auto 0;border-radius:18px;overflow:hidden;background:rgba(10,12,18,.92);border:1px solid rgba(255,255,255,.12);box-shadow:0 25px 80px rgba(0,0,0,.55);}
.mlLbImg,.mlLbVid{display:block;max-width:100%;max-height:72vh;margin:0 auto}
.mlLbVid{width:100%;height:auto;background:#000}
.mlLbCap{padding:12px 14px;font-size:13px;opacity:.8;border-top:1px solid rgba(255,255,255,.10)}
.mlLbClose{position:absolute;right:10px;top:10px;z-index:3;border:0;background:rgba(0,0,0,.45);color:#fff;border-radius:999px;width:40px;height:40px;cursor:pointer}
.mlLbNav{position:absolute;top:50%;transform:translateY(-50%);z-index:3;border:0;background:rgba(0,0,0,.35);color:#fff;border-radius:999px;width:44px;height:44px;cursor:pointer;font-size:26px;line-height:1}
.mlLbPrev{left:10px}
.mlLbNext{right:10px}

/* --- HEADER RESTORE (mobile) ---
   This block forces the header back to the original working behavior
   (flex header + dropdown nav), overriding any v7 mobile-header overrides.
*/
@media (max-width: 920px){
  /* keep header row as flex, not grid */
  .topbar .nav{display:flex !important; align-items:center; justify-content:space-between; gap:16px; padding:14px 0;}

  /* show brand text as before */
  .topbar .brand{display:flex; align-items:center; gap:12px; max-width:150px; justify-self:auto; min-width:unset;}
  .topbar .brandText{display:block !important;}
  .topbar .brandMark{width:auto; height:auto;}

  /* burger visible, CTAs hidden (as before) */
  .topbar .navBurger{display:flex;}


  .topbar .navlinks.isOpen{display:flex;}
  .topbar .navlinks a{
    font-size:16px;
    font-weight:700;
    padding:10px 12px;
    border-bottom:0;
    text-align:center;
    justify-content:center;
  }

  /* keep the mobile CTA link visible inside nav (as in old css) */
  .topbar .navCtaMobile{display:inline-flex;}
}



/* =========================
   v8: Fullscreen Hamburger Nav (all devices)
   - overlay with blur + dual-tone background using pseudo-elements
   - high-quality typography + separators + hover
   ========================= */
:root{
  --navOverlayBg1: rgba(5,6,10,.92);
  --navOverlayBg2: rgba(20,10,30,.92);
  --navOverlayLine: rgba(255,255,255,.10);
}

/* Always use hamburger */
.topbar .navBurger{display:flex !important;}
/* Keep layout stable so the burger can be perfectly centered */
.topbar .nav{position:relative;}
.topbar .navCenter{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none; /* let button handle */
}
.topbar .navCenter .navBurger{pointer-events:auto;}

/* Hide any inline link row if present */
.topbar .navlinks{display:flex;}
/* Header action cluster */
.topbar .navActions{
  display:flex;
  align-items:center;
  gap:10px;
}
.topbar .navAccount{
  font-size:13px;
  opacity:.92;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  max-width: 260px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-decoration:none;
  color: rgba(245,247,255,.92);
}
.topbar .navAccount:hover{background: rgba(255,255,255,.09);}
.topbar .navCartBtn{
  position:relative;
}
.topbar .cartBadge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  background: rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.18);
}
.topbar .navCartBtn.hasItems{
  border-color: rgba(34,197,94,.55) !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.topbar .navCartBtn.hasItems .cartBadge{
  background: rgba(34,197,94,.18);
  border-color: rgba(34,197,94,.35);
}

/* Overlay */
.navOverlay{
  position:fixed;
  inset:0;
  display:none;
  box-sizing:border-box;
}
.navOverlay::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, var(--navOverlayBg1), var(--navOverlayBg2));
}
.navOverlay::after{
  content:"";
  position:absolute;
  inset:-120px;
  background:
    radial-gradient(600px 500px at 15% 20%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(620px 520px at 85% 35%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(520px 420px at 55% 80%, rgba(244,63,94,.14), transparent 60%);
  filter: blur(6px);
  opacity:.9;
  pointer-events:none;
}
.navOverlay.isOpen{display:block;z-index:999;}

.navPanel{
  position:relative;
  width:100%;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,12,18,.75);
  box-shadow: 0 30px 120px rgba(0,0,0,.75);
  backdrop-filter: blur(18px);
  overflow:hidden;
  opacity:0;
  height:100%;
  min-height:120vh;
}
.navOverlay.isOpen .navPanel{
  opacity:1;
}

.navPanelHead{
  display:flex;
  align-items:center;
  justify-content:space-around;
  padding: 18px 18px;
  border-bottom:1px solid var(--navOverlayLine);
}
.navPanelTitle{
  font-size: 18px;
  font-weight: 900;
  letter-spacing:.2px;
}
.navClose{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor:pointer;
}

.navOverlay .navlinks{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  padding: 8px 0;
  overflow:auto;
}
.navOverlay .navlinks a{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    padding: 20px;
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15px;
    border-bottom: 1px solid #7b7b7b;
    text-decoration: none;
    color: rgba(245, 247, 255, .92);
    transition: background .18s ease, transform .18s ease;

}
.navOverlay .navlinks a:hover{
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid #ac98ff;
}
.navOverlay .navlinks a:active{
  transform: translateY(1px);
}

.navPanelFoot{
  position:relative;
  padding: 14px 18px 18px;
  border-top:1px solid var(--navOverlayLine);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:9999;
  bottom:0;
  width:100%;
  align-items:center;
}
.navAccountMini{
  font-size:13px;
  opacity:.92;
}
.navQuick{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.navCta, .navLogout, .navCart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  text-decoration:none;
  font-weight: 900;
  color: rgba(245,247,255,.92);
}
.navCta{background: linear-gradient(135deg, rgba(124,58,237,.26), rgba(6,182,212,.16));}
.navCart{position:relative;}
.navCartBadge{
  margin-left:4px;
  min-width:20px;
  height:20px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.14);
}
.navCart.hasItems{
  border-color: rgba(34,197,94,.55);
  box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.navCart.hasItems .navCartBadge{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.18);
}

/* Cart hint: appears only when items exist (js toggles) */
.navHint{
  display:none;
  width:100%;
  text-align:center;
  font-weight:900;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  color: rgba(220,255,235,.95);
}
.navHint.isOn{display:block;}
.navHint.isAnim{animation: navHintIn .26s ease both;}
@keyframes navHintIn{
  from{transform: translateY(-6px); opacity:0}
  to{transform: translateY(0); opacity:1}
}

/* tighten header on small screens */
@media (max-width: 920px){
  .topbar .navAccount{display:none;}
}

@media (max-width: 560px){
  .navOverlay .navlinks a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    padding: 30px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15px;
    border-bottom: 1px solid #7b7b7b;
    text-decoration: none;
    color: rgba(245, 247, 255, .92);
    transition: background .18s ease, transform .18s ease;
  }
   .mlLightboxCard {position: fixed; 
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%); }

  .navPanelHead {justify-content:space-between;}
}
/* hide old .navCtas row if still present in templates */
.topbar .navCtas{display:none !important;}




/* =========================
   Galerie (cards + thumbs + lightbox)
   ========================= */

/* Albume grid */
.mlGalleryGrid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.mlAlbum{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color: inherit;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mlAlbum:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(0,0,0,.26);
  border-color: rgba(172,152,255,.35);
}

.mlAlbumMedia{
  position:relative;
  aspect-ratio: 16 / 10;
  overflow:hidden;
  background: rgba(255,255,255,.04);
}
.mlAlbumMedia img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
  transition: transform .35s ease;
}
.mlAlbum:hover .mlAlbumMedia img{ transform: scale(1.06); }

.mlAlbumFallback{
  width:100%;
  height:100%;
  background:
    radial-gradient(420px 280px at 20% 30%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(420px 280px at 80% 60%, rgba(6,182,212,.18), transparent 60%),
    rgba(255,255,255,.06);
}

.mlAlbumShade{
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55));
  pointer-events:none;
}

.mlAlbumBody{
  padding: 14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  min-height: 110px;
}

.mlAlbumTitle{
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.1;
}

.mlAlbumDesc{
  font-size: 13px;
  opacity: .78;
  line-height: 1.35;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.mlAlbumFoot{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.mlAlbumBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.mlAlbum:hover .mlAlbumBtn{
  background: rgba(172,152,255,.18);
  border-color: rgba(172,152,255,.35);
}

/* Thumbnails grid in album */
.mlPhotos{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
@media (min-width: 720px){
  .mlPhotos{ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

.mlPhoto{
  position:relative;
  border:0;
  padding:0;
  cursor:pointer;
  border-radius: 14px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.mlPhoto:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0,0,0,.20);
  border-color: rgba(172,152,255,.28);
}
.mlPhoto img{
  width:100%;
  height:100%;
  aspect-ratio: 1 / 1;
  object-fit:cover;
  display:block;
}

.mlPlay{
  position:absolute;
  inset:auto auto 10px 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}

/* Lightbox */
.mlLightbox{
  position:fixed;
  inset:0;
  z-index: 9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.mlLightboxShade{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
}
.mlLightboxCard{
  position:relative;
  z-index:1;
  width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  overflow:hidden;
  background: rgba(10,12,18,.88);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 120px rgba(0,0,0,.70);
  display:flex;
  flex-direction:column;
}
.mlLbImg,
.mlLbVid{
  width:100%;
  height:auto;
  max-height: 76vh;
  object-fit: contain;
  background: rgba(0,0,0,.35);
}
.mlLbCap{
  padding: 10px 12px;
  font-size: 13px;
  opacity: .85;
  border-top: 1px solid rgba(255,255,255,.10);
}

.mlLbClose{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index:2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  backdrop-filter: blur(10px);
}

.mlLbNav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index:2;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  backdrop-filter: blur(10px);
  font-size: 28px;
  line-height: 1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.mlLbPrev{ left: 10px; }
.mlLbNext{ right: 10px; }

.mlLightbox{ opacity:0; pointer-events:none; transition: opacity .18s ease; }
.mlLightbox.isOpen{ opacity:1; pointer-events:auto; }
