:root{--red:#e30613;--dark:#050505;--black:#000;--card:#111217;--soft:#17181f;--line:#292b31;--text:#fff;--muted:#b8bac2}
*{box-sizing:border-box}
html,body{margin:0;background:var(--dark);color:var(--text);font-family:Arial,Helvetica,sans-serif}
body{min-height:100vh}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.gg-topbar{position:sticky;top:0;z-index:100;background:rgba(5,5,5,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)}
.gg-nav{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:16px 4vw}
.gg-logo{display:flex;align-items:center;gap:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.gg-logo-mark{width:42px;height:42px;background:var(--red);display:grid;place-items:center;color:#fff;font-size:22px;font-weight:900}
.gg-logo small{display:block;color:var(--muted);font-size:10px;letter-spacing:.18em;margin-top:2px}
.gg-menu{display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.05em}
.gg-menu a{padding:8px 0}
.gg-menu a:hover,.gg-menu .active{color:var(--red)}
.gg-mobile-note{display:none;color:var(--muted);font-size:12px;text-transform:uppercase;font-weight:900}
.gg-hero{min-height:760px;position:relative;display:flex;align-items:center;background:linear-gradient(90deg,rgba(0,0,0,.97) 0%,rgba(0,0,0,.82) 36%,rgba(0,0,0,.28) 70%,rgba(0,0,0,.72) 100%),url("/wp-content/gallery-web/adac-zurich-24h-nuerburgring-2019-gridgirls-1/Tribute-to-GridGirls-1487.jpg");background-size:cover;background-position:center right;border-bottom:1px solid rgba(255,255,255,.1)}
.gg-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 75% 45%,rgba(227,6,19,.25),transparent 26%),linear-gradient(180deg,transparent 76%,rgba(0,0,0,.98) 100%);pointer-events:none}
.gg-hero-inner{position:relative;z-index:2;width:760px;max-width:90%;margin-left:6vw;padding:110px 0 80px}
.gg-kicker,.gg-section-title{color:#fff;text-transform:uppercase;letter-spacing:.18em;font-size:14px;font-weight:900;margin:0 0 22px}
.gg-kicker span,.gg-section-title span{display:inline-block;width:56px;height:3px;background:var(--red);margin-right:16px;vertical-align:middle}
.gg-hero h1{font-size:92px;line-height:.92;text-transform:uppercase;letter-spacing:.03em;margin:0 0 26px;text-shadow:0 12px 32px rgba(0,0,0,.65);font-weight:900}
.gg-hero h1 em{font-style:normal;font-weight:300;letter-spacing:.08em}
.gg-lead{max-width:600px;color:#e8e8e8;font-size:18px;line-height:1.65;margin:0 0 30px}
.gg-buttons{display:flex;flex-wrap:wrap;gap:16px}
.gg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 30px;border:1px solid var(--red);text-transform:uppercase;font-weight:900;letter-spacing:.04em;transition:.22s ease}
.gg-btn-red{background:var(--red)}
.gg-btn:hover{background:#ff1725;color:#fff;transform:translateY(-2px)}
.gg-btn-line{background:rgba(0,0,0,.22)}
.gg-highlight{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 190px;background:rgba(8,8,10,.98);border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);padding:0 4vw}
.gg-highlight article{display:flex;gap:18px;align-items:center;padding:18px 22px;border-right:1px solid var(--line);min-height:105px}
.gg-highlight .thumb{width:96px;height:72px;object-fit:cover;background:#222;border:1px solid rgba(255,255,255,.12)}
.gg-highlight strong{display:block;font-size:38px;line-height:1;font-weight:900}
.gg-highlight span{display:block;text-transform:uppercase;font-size:13px;font-weight:900;margin-top:4px}
.gg-highlight small{display:block;color:var(--muted);text-transform:uppercase;font-size:11px;margin-top:4px}
.gg-all{display:flex;align-items:center;justify-content:center;text-transform:uppercase;font-weight:900;border:1px solid var(--red);margin:auto 0 auto 24px;height:48px}
.gg-all:hover{background:var(--red)}
.gg-section{padding:70px 4vw;background:#070707}
.gg-section.alt{background:#0a0a0d}
.gg-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}
.gg-section h2{font-size:44px;text-transform:uppercase;margin:0;font-weight:900}
.gg-section p{color:var(--muted);line-height:1.75}
.gg-cats{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr 1fr 1fr;gap:22px}
.gg-cats-intro{padding:20px 18px 20px 0}
.gg-card{position:relative;display:block;min-height:310px;overflow:hidden;background:var(--card);border:1px solid rgba(255,255,255,.12);box-shadow:0 20px 42px rgba(0,0,0,.38)}
.gg-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.92) 100%);z-index:1}
.gg-card img{width:100%;height:100%;min-height:310px;object-fit:cover;filter:saturate(.95) contrast(1.08);transition:.35s ease;background:#202026}
.gg-card:hover img{transform:scale(1.06)}
.gg-card div{position:absolute;z-index:2;left:22px;right:22px;bottom:22px}
.gg-card h3{font-size:30px;line-height:1;text-transform:uppercase;margin:0 0 12px;font-weight:900}
.gg-card span{font-size:13px;text-transform:uppercase;letter-spacing:.06em;font-weight:900}
.gg-card:hover span{color:var(--red)}
.gg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.gg-post-card{background:var(--card);border:1px solid rgba(255,255,255,.1);overflow:hidden;transition:.22s ease}
.gg-post-card:hover{transform:translateY(-4px);border-color:rgba(227,6,19,.7)}
.gg-post-image{height:230px;background:linear-gradient(135deg,#1b1b22,#060606);display:flex;align-items:center;justify-content:center;color:#666;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.gg-post-card-body{padding:24px}
.gg-post-card h3{font-size:23px;text-transform:uppercase;line-height:1.12;margin:0 0 10px}
.gg-meta{font-size:12px;color:var(--red);font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px}
.gg-post-card p{font-size:15px;margin:0 0 20px;color:var(--muted);line-height:1.6}
.gg-page-hero{padding:130px 6vw 82px;background:linear-gradient(90deg,rgba(0,0,0,.96),rgba(0,0,0,.72)),url("/wp-content/gallery-web/adac-zurich-24h-nuerburgring-2019-gridgirls-1/Tribute-to-GridGirls-1487.jpg");background-size:cover;background-position:center right;border-bottom:1px solid rgba(255,255,255,.1)}
.gg-page-hero h1{font-size:72px;line-height:1;text-transform:uppercase;margin:0 0 18px;font-weight:900}
.gg-page-hero p{max-width:760px;color:#e8e8e8;font-size:18px;line-height:1.65}
.gg-content{max-width:1120px;margin:0 auto;padding:65px 28px}
.gg-content article{background:#0a0a0d;border:1px solid rgba(255,255,255,.09);padding:42px}
.gg-content h1{font-size:52px;line-height:1;text-transform:uppercase;margin:0 0 18px}
.gg-content p{font-size:18px;line-height:1.8;color:#ddd}
.gg-content a{color:var(--red);font-weight:bold}
.gg-content img{height:auto}
.gg-post-nav{display:flex;justify-content:space-between;gap:18px;margin-top:24px}
.gg-gallery-placeholder{border:1px solid rgba(227,6,19,.55);background:linear-gradient(135deg,rgba(227,6,19,.12),rgba(255,255,255,.04));padding:28px;margin:32px 0}
.gg-gallery-label{display:inline-block;background:var(--red);color:#fff;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;padding:8px 12px;margin-bottom:16px}
.gg-gallery-placeholder h3{font-size:28px;margin:0 0 10px;text-transform:uppercase}
.gg-gallery-placeholder code{color:#fff;background:#111;padding:2px 6px}
.gg-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.gg-list-card{background:var(--card);border:1px solid rgba(255,255,255,.1);padding:30px;min-height:190px}
.gg-list-card h3{font-size:28px;text-transform:uppercase;margin:0 0 10px}
.gg-list-card p{color:var(--muted)}
.gg-stats{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;background:#030303;border-top:1px solid var(--red);border-bottom:1px solid rgba(255,255,255,.09);padding:34px 4vw}
.gg-stats div{text-align:center;border-right:1px solid rgba(227,6,19,.65)}
.gg-stats div:last-child{border-right:none}
.gg-stats strong{display:block;font-size:38px;line-height:1;font-weight:900}
.gg-stats span{display:block;color:var(--muted);text-transform:uppercase;letter-spacing:.18em;font-size:12px;margin-top:9px}
.gg-footer{background:#030303;border-top:1px solid rgba(255,255,255,.08);padding:42px 4vw;color:#aaa}
.gg-footer-inner{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.gg-footer a{color:#fff;margin-right:16px}
.gg-footer a:hover{color:var(--red)}
.gg-search-wrap{margin:0 0 30px}
.gg-search{width:100%;background:#050505;border:1px solid rgba(255,255,255,.15);color:#fff;padding:17px 18px;font-size:16px}
.gg-search:focus{outline:none;border-color:var(--red)}
.gg-empty{display:none;color:var(--muted);padding:20px;background:#111217;border:1px solid rgba(255,255,255,.1)}
@media(max-width:1240px){
.gg-highlight{grid-template-columns:1fr 1fr}
.gg-all{grid-column:1/-1;margin:16px 0 22px}
.gg-cats{grid-template-columns:1fr 1fr}
.gg-cats-intro{grid-column:1/-1}
.gg-grid,.gg-list{grid-template-columns:1fr 1fr}
.gg-hero h1{font-size:72px}
}
@media(max-width:767px){
.gg-menu{display:none}
.gg-mobile-note{display:block}
.gg-nav{padding:14px 20px}
.gg-hero{min-height:720px;background-position:center}
.gg-hero-inner{margin-left:24px;width:calc(100% - 48px);padding-top:110px}
.gg-hero h1{font-size:48px;line-height:1}
.gg-lead{font-size:16px}
.gg-highlight,.gg-cats,.gg-stats,.gg-grid,.gg-list{grid-template-columns:1fr}
.gg-highlight{padding:0}
.gg-highlight article{border-right:none;border-bottom:1px solid var(--line)}
.gg-section{padding:44px 22px}
.gg-section h2,.gg-content h1{font-size:34px}
.gg-page-hero{padding:110px 28px 65px}
.gg-page-hero h1{font-size:42px}
.gg-content{padding:38px 18px}
.gg-content article{padding:24px}
.gg-stats div{border-right:none;border-bottom:1px solid rgba(227,6,19,.45);padding:20px 0}
.gg-stats div:last-child{border-bottom:none}
.gg-post-nav{flex-direction:column}
}
/* Real static NextGEN galleries */
.gg-gallery-real{margin:34px 0;border:1px solid rgba(227,6,19,.45);background:linear-gradient(135deg,rgba(227,6,19,.10),rgba(255,255,255,.035));padding:26px}
.gg-gallery-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}
.gg-gallery-head h3{font-size:30px;text-transform:uppercase;margin:8px 0 6px;color:#fff}
.gg-gallery-head p{margin:0;color:#b8bac2;font-size:14px}
.gg-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.gg-photo{position:relative;display:block;overflow:hidden;background:#08080a;border:1px solid rgba(255,255,255,.10);aspect-ratio:4/3}
.gg-photo img{width:100%;height:100%;object-fit:cover;transition:.25s ease;filter:saturate(.98) contrast(1.04)}
.gg-photo:hover img{transform:scale(1.06)}
.gg-photo span{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.88));color:#fff;font-size:12px;line-height:1.35;padding:24px 10px 10px;opacity:0;transition:.2s ease}
.gg-photo:hover span{opacity:1}
.gg-gallery-missing{border-color:rgba(255,255,255,.18)}
@media(max-width:1240px){.gg-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.gg-gallery-real{padding:18px}.gg-gallery-head{display:block}.gg-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* Placeholder improvement */
.gg-card img[src*="gridgirls-cat"], .gg-highlight img[src*="gridgirls-card"]{
  background:linear-gradient(135deg,#090909,#170305);
}
/* Manifest matched galleries */
.gg-gallery-manifest{border-color:rgba(227,6,19,.65)}
.gg-gallery-manifest .gg-gallery-label{background:#e30613}
/* Real preview images for post cards */
.gg-post-image-real{height:230px;background:#08080a;overflow:hidden;display:block}
.gg-post-image-real img{width:100%;height:100%;object-fit:cover;filter:saturate(.98) contrast(1.04);transition:.25s ease}
.gg-post-card:hover .gg-post-image-real img{transform:scale(1.06)}
/* Exact oldsite gallery mapping + post header fixes */
.gg-gallery-exact{border-color:rgba(227,6,19,.75)}
.gg-page-hero{
  padding:95px 5vw 54px !important;
  min-height:0 !important;
}
.gg-page-hero h1{
  max-width:1100px;
  font-size:clamp(38px,4.2vw,68px) !important;
  line-height:1.05 !important;
  letter-spacing:.01em !important;
}
.gg-page-hero p{
  max-width:900px;
  font-size:17px !important;
}
.gg-post-image-real{height:230px;background:#08080a;overflow:hidden;display:block}
.gg-post-image-real img{width:100%;height:100%;object-fit:cover;filter:saturate(.98) contrast(1.04);transition:.25s ease}
.gg-post-card:hover .gg-post-image-real img{transform:scale(1.06)}
@media(max-width:767px){
  .gg-page-hero{padding:80px 24px 42px !important}
  .gg-page-hero h1{font-size:34px !important}
}
/* 017 cleanup: gallery overview cards */
.gg-grid{
  align-items:stretch;
}
.gg-post-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.gg-post-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
}
.gg-post-card h3{
  min-height:58px;
  font-size:22px;
}
.gg-post-card p{
  min-height:72px;
}
.gg-post-card .gg-btn{
  margin-top:auto;
  align-self:flex-start;
}
.gg-meta{
  min-height:18px;
}
.gg-page-hero h1{
  font-size:clamp(42px,5vw,72px) !important;
}
.gg-search-wrap{
  max-width:760px;
}
.gg-search{
  border-color:rgba(227,6,19,.55);
}
@media(max-width:767px){
  .gg-post-card h3,
  .gg-post-card p{
    min-height:0;
  }
}
/* 018 exact oldsite preview card fix */
.gg-post-image-real{
  height:230px !important;
  background:#08080a;
  overflow:hidden;
  display:block;
}
.gg-post-image-real img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:saturate(.98) contrast(1.04);
  transition:.25s ease;
}
.gg-post-card:hover .gg-post-image-real img{
  transform:scale(1.06);
}
.gg-post-card h3{
  min-height:58px;
}
.gg-post-card p{
  min-height:72px;
}
.gg-post-card .gg-btn{
  margin-top:auto;
}
.gg-post-card-body{
  display:flex;
  flex-direction:column;
  flex:1;
}
.gg-post-card{
  display:flex;
  flex-direction:column;
}
.gg-page-hero{
  padding:95px 5vw 54px !important;
  min-height:0 !important;
}
.gg-page-hero h1{
  max-width:1100px;
  font-size:clamp(38px,4.2vw,68px) !important;
  line-height:1.05 !important;
}
@media(max-width:767px){
  .gg-post-card h3,.gg-post-card p{min-height:0}
}
/* 019 built-in real galleries */
.gg-gallery-built{
  border-color:rgba(227,6,19,.78);
  background:linear-gradient(135deg,rgba(227,6,19,.10),rgba(255,255,255,.035));
}
.gg-photo-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.gg-photo{
  aspect-ratio:4/3;
  border:1px solid rgba(255,255,255,.10);
  background:#070707;
  overflow:hidden;
  display:block;
  position:relative;
}
.gg-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:.22s ease;
}
.gg-photo:hover img{
  transform:scale(1.055);
}
.gg-photo:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.35));
  opacity:0;
  transition:.2s ease;
}
.gg-photo:hover:after{
  opacity:1;
}
.gg-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.94);
  display:none;
  align-items:center;
  justify-content:center;
  padding:34px;
}
.gg-lightbox.is-open{
  display:flex;
}
.gg-lightbox img{
  max-width:96vw;
  max-height:90vh;
  object-fit:contain;
  box-shadow:0 20px 80px rgba(0,0,0,.8);
}
.gg-lightbox button{
  position:absolute;
  top:20px;
  right:24px;
  background:#e30613;
  color:#fff;
  border:0;
  font-size:22px;
  font-weight:900;
  width:48px;
  height:48px;
  cursor:pointer;
}
.gg-lightbox .gg-lightbox-prev,
.gg-lightbox .gg-lightbox-next{
  top:50%;
  transform:translateY(-50%);
}
.gg-lightbox .gg-lightbox-prev{left:24px;right:auto}
.gg-lightbox .gg-lightbox-next{right:24px}
@media(max-width:1240px){
  .gg-photo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:900px){
  .gg-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
  .gg-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .gg-lightbox{padding:14px}
}
/* 021 gallery/content width: 95 percent */
.gg-content{
  max-width:none !important;
  width:95% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

.gg-content article{
  width:100% !important;
}

.gg-gallery-real,
.gg-gallery-built,
.gg-gallery-exact,
.gg-gallery-manifest{
  width:100% !important;
}

@media(max-width:767px){
  .gg-content{
    width:calc(100% - 24px) !important;
  }
}
/* 023 extra pages + 95 percent gallery width */
.gg-content{
  max-width:none !important;
  width:95% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.gg-content article{width:100% !important}
.gg-gallery-real,.gg-gallery-built,.gg-gallery-exact,.gg-gallery-manifest{width:100% !important}
.gg-menu{gap:15px;font-size:11px}
.gg-menu a{white-space:nowrap}
.gg-empty{display:none}
@media(max-width:767px){
  .gg-content{width:calc(100% - 24px) !important}
}
/* 024 remove system pages from listing grids */
.gg-grid:empty::before{
  content:"Noch keine passenden Galerien vorhanden.";
  color:#b8bac2;
  display:block;
  padding:28px;
  border:1px solid rgba(255,255,255,.12);
  background:#111217;
}
/* 025 card preview fallback fix */
.gg-post-image-real{
  position:relative;
  height:230px !important;
  background:#08080a;
  overflow:hidden;
  display:block;
}
.gg-post-image-real img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  color:transparent;
  font-size:0;
}
.gg-post-image-real:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,#101016,#070707);
  z-index:0;
}
.gg-post-image-real img{
  position:relative;
  z-index:1;
}
/* 026 menu cleanup: Galerien removed */
.gg-menu{
  gap:16px;
}
/* 027 high quality card images */
.gg-post-image-real img{
  image-rendering:auto;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.02) contrast(1.03);
}
.gg-post-image-real{
  background:#070707;
}
/* 028 improve homepage teaser image quality */
.gg-highlight .thumb{
  width:112px;
  height:84px;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.02) contrast(1.04);
  background:#111;
}
.gg-card img{
  object-fit:cover;
  object-position:center;
  filter:saturate(1.02) contrast(1.04);
}
.gg-card,
.gg-highlight article{
  backface-visibility:hidden;
  transform:translateZ(0);
}
@media(max-width:767px){
  .gg-highlight .thumb{width:92px;height:68px;}
}
/* 029 Header Slideshow */
.gg-hero-slider{
  position:relative;
  overflow:hidden;
  background:#030303 !important;
}

.gg-hero-slides{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.gg-hero-slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center right;
  opacity:0;
  transform:scale(1.035);
  transition:opacity 1.8s ease-in-out, transform 7.5s ease;
  will-change:opacity, transform;
}

.gg-hero-slide.is-active{
  opacity:1;
  transform:scale(1);
}

.gg-hero-slider:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(90deg,rgba(0,0,0,.96) 0%,rgba(0,0,0,.82) 28%,rgba(0,0,0,.42) 55%,rgba(0,0,0,.18) 100%),
    linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.28) 64%,rgba(0,0,0,.92) 100%);
  pointer-events:none;
}

.gg-hero-slider .gg-hero-inner{
  position:relative;
  z-index:2;
}

@media(max-width:900px){
  .gg-hero-slide{
    background-position:center center;
  }
  .gg-hero-slider:before{
    background:
      linear-gradient(90deg,rgba(0,0,0,.96),rgba(0,0,0,.72)),
      linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.92));
  }
}
/* 030 Header Slider Smooth/Crop Fix */
.gg-hero-slider{
  min-height: calc(100vh - 72px);
  background:#030303 !important;
  contain:paint;
}

.gg-hero-slide{
  background-size:cover !important;
  background-position:center center !important;
  opacity:0;
  transform:none !important;
  transition:opacity 2.8s ease-in-out !important;
  will-change:opacity;
  backface-visibility:hidden;
}

.gg-hero-slide.is-active{
  opacity:1;
  transform:none !important;
}

/* Desktop: Bild etwas weiter nach rechts, aber nicht mehr so stark wie vorher */
@media(min-width:1180px){
  .gg-hero-slide{
    background-position:58% center !important;
  }
}

/* Sehr breite Monitore: etwas zentrieren, damit rechts keine Gesichter hart abgeschnitten werden */
@media(min-width:1700px){
  .gg-hero-slide{
    background-position:54% center !important;
  }
}

/* Verlauf neu: Text links gut lesbar, Bild rechts sichtbarer */
.gg-hero-slider:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,.98) 0%,
      rgba(0,0,0,.90) 23%,
      rgba(0,0,0,.54) 44%,
      rgba(0,0,0,.30) 68%,
      rgba(0,0,0,.18) 100%
    ),
    linear-gradient(180deg,
      rgba(0,0,0,.10) 0%,
      rgba(0,0,0,.10) 45%,
      rgba(0,0,0,.82) 100%
    );
}

/* Textbereich etwas kompakter, damit mehr vom Bild sichtbar bleibt */
.gg-hero-inner{
  max-width:720px;
}

.gg-hero h1{
  font-size:clamp(54px,6.1vw,104px);
  line-height:.94;
}

/* Mobile/tablet: Gesichter mittiger halten */
@media(max-width:900px){
  .gg-hero-slider{
    min-height:760px;
  }
  .gg-hero-slide{
    background-position:62% center !important;
  }
  .gg-hero-slider:before{
    background:
      linear-gradient(90deg,rgba(0,0,0,.96),rgba(0,0,0,.70)),
      linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.90));
  }
}

@media(max-width:640px){
  .gg-hero-slider{
    min-height:700px;
  }
  .gg-hero-slide{
    background-position:66% center !important;
  }
}
/* 031 Headerbild 40px weiter nach unten */
.gg-hero-slide{
  background-position:center calc(50% + 40px) !important;
}

@media(min-width:1180px){
  .gg-hero-slide{
    background-position:58% calc(50% + 40px) !important;
  }
}

@media(min-width:1700px){
  .gg-hero-slide{
    background-position:54% calc(50% + 40px) !important;
  }
}

@media(max-width:900px){
  .gg-hero-slide{
    background-position:62% calc(50% + 30px) !important;
  }
}

@media(max-width:640px){
  .gg-hero-slide{
    background-position:66% calc(50% + 25px) !important;
  }
}
/* 032 remove public folder buttons */
.gg-gallery-head{
  align-items:flex-start;
}
.gg-gallery-head > div{
  max-width:100%;
}
/* 033 remove duplicate hero buttons */
.gg-hero .gg-lead{
  margin-bottom:0 !important;
}
.gg-hero-inner{
  padding-bottom:24px;
}
/* 034 timeline button + menu cleanup */
.gg-timeline-button{
  margin-top:26px;
}

.gg-timeline-button .gg-btn{
  min-width:260px;
  justify-content:center;
}

.gg-menu{
  gap:17px;
}

@media(max-width:767px){
  .gg-timeline-button .gg-btn{
    min-width:0;
    width:100%;
  }
}
/* 037 category cards with images */
.gg-list-card.has-image{
  padding:0 0 28px 0 !important;
  overflow:hidden;
}

.gg-list-card.has-image h3,
.gg-list-card.has-image p,
.gg-list-card.has-image .gg-btn{
  margin-left:28px;
  margin-right:28px;
}

.gg-cat-image{
  width:100%;
  height:185px;
  margin:0 0 24px 0;
  overflow:hidden;
  background:#08080a;
  border-bottom:1px solid rgba(255,255,255,.10);
}

.gg-cat-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.02) contrast(1.04);
  transition:.25s ease;
}

.gg-list-card:hover .gg-cat-image img{
  transform:scale(1.055);
}

@media(max-width:767px){
  .gg-cat-image{
    height:150px;
  }
}
/* 039 preview crop editor support */
.gg-cat-image img,
.gg-list-card.has-image .gg-cat-image img{
  object-fit:cover !important;
  object-position:center center;
}
/* 040 inline crop editor support */
.gg-list-card.has-image .gg-cat-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
/* 042 universal crop editor support */
.gg-post-image-real img,
.gg-list-card.has-image .gg-cat-image img,
.gg-card img,
.gg-highlight img{
  object-fit:cover !important;
}
/* 047 homepage cleanup: remove top strip, intro to right */
.gg-highlight{
  display:none !important;
}

.gg-cats-section{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 280px !important;
  gap:40px !important;
  align-items:start !important;
}

.gg-cats-section .gg-cats{
  order:1;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}

.gg-cats-section .gg-cats-intro{
  order:2;
  position:sticky;
  top:110px;
  max-width:280px;
}

.gg-cats-section .gg-cats-intro h2{
  font-size:clamp(34px,3.2vw,54px) !important;
}

.gg-cats-section .gg-cats-intro .gg-btn{
  width:100%;
  justify-content:center;
}

@media(max-width:1240px){
  .gg-cats-section{
    grid-template-columns:1fr !important;
  }
  .gg-cats-section .gg-cats{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .gg-cats-section .gg-cats-intro{
    order:0;
    position:static;
    max-width:100%;
  }
}

@media(max-width:767px){
  .gg-cats-section .gg-cats{
    grid-template-columns:1fr !important;
  }
}
/* 048 force category intro block to the right */
.gg-cats-section{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 300px !important;
  gap:44px !important;
  align-items:start !important;
  padding-left:4vw !important;
  padding-right:4vw !important;
}

.gg-cats-section .gg-cats{
  order:1 !important;
  grid-column:1 !important;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
}

.gg-cats-section .gg-cats-intro{
  order:2 !important;
  grid-column:2 !important;
  max-width:300px !important;
  position:sticky !important;
  top:110px !important;
  margin:0 !important;
}

.gg-cats-section .gg-cats-intro h2{
  font-size:clamp(34px,3vw,54px) !important;
  line-height:1.08 !important;
}

.gg-cats-section .gg-cats-intro p{
  font-size:16px !important;
}

.gg-cats-section .gg-cats-intro .gg-btn{
  width:100% !important;
  justify-content:center !important;
}

/* Large desktop: keep cards wide enough */
@media(min-width:1500px){
  .gg-cats-section{
    grid-template-columns:minmax(0, 1fr) 320px !important;
    gap:50px !important;
  }
  .gg-cats-section .gg-cats-intro{
    max-width:320px !important;
  }
}

/* Tablet: intro goes above because right column is too tight */
@media(max-width:1240px){
  .gg-cats-section{
    grid-template-columns:1fr !important;
    padding-left:5vw !important;
    padding-right:5vw !important;
  }
  .gg-cats-section .gg-cats-intro{
    order:1 !important;
    grid-column:1 !important;
    position:static !important;
    max-width:100% !important;
    margin-bottom:22px !important;
  }
  .gg-cats-section .gg-cats{
    order:2 !important;
    grid-column:1 !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:767px){
  .gg-cats-section .gg-cats{
    grid-template-columns:1fr !important;
  }
}
/* 049 final homepage categories layout */
.gg-highlight{
  display:none !important;
}

.gg-cats-section-final{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 320px !important;
  gap:48px !important;
  align-items:start !important;
  padding:70px 4vw !important;
  background:#050505 !important;
}

.gg-cats-section-final .gg-cats-left{
  grid-column:1 !important;
  min-width:0 !important;
}

.gg-cats-section-final .gg-cats-right{
  grid-column:2 !important;
  min-width:0 !important;
}

.gg-cats-section-final .gg-cats{
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:22px !important;
  width:100% !important;
}

.gg-cats-section-final .gg-cats-intro{
  position:sticky !important;
  top:110px !important;
  max-width:320px !important;
  margin:0 !important;
}

.gg-cats-section-final .gg-cats-intro h2{
  font-size:clamp(36px,3.1vw,56px) !important;
  line-height:1.08 !important;
}

.gg-cats-section-final .gg-cats-intro p{
  font-size:16px !important;
  line-height:1.65 !important;
}

.gg-cats-section-final .gg-cats-intro .gg-btn{
  width:100% !important;
  justify-content:center !important;
}

/* disable older conflicting cats-section rules */
.gg-cats-section:not(.gg-cats-section-final) .gg-cats-intro{
  position:static !important;
}

/* Tablet/Mobile */
@media(max-width:1320px){
  .gg-cats-section-final{
    grid-template-columns:1fr !important;
  }
  .gg-cats-section-final .gg-cats-right{
    grid-column:1 !important;
    order:1 !important;
  }
  .gg-cats-section-final .gg-cats-left{
    grid-column:1 !important;
    order:2 !important;
  }
  .gg-cats-section-final .gg-cats-intro{
    position:static !important;
    max-width:100% !important;
  }
  .gg-cats-section-final .gg-cats{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

@media(max-width:767px){
  .gg-cats-section-final{
    padding:44px 22px !important;
  }
  .gg-cats-section-final .gg-cats{
    grid-template-columns:1fr !important;
  }
}
/* 050 sharp gallery previews */
.gg-photo img,
.gg-post-image-real img,
.gg-cat-image img,
.gg-card img{
  image-rendering:auto !important;
  object-fit:cover !important;
  object-position:center center;
  filter:none !important;
  transform:translateZ(0);
  backface-visibility:hidden;
}

/* keep hover zoom gentle so photos do not look soft */
.gg-photo:hover img,
.gg-post-card:hover img,
.gg-list-card:hover img,
.gg-card:hover img{
  transform:scale(1.025) translateZ(0) !important;
}

/* gallery tiles: use a little more vertical size so originals can show more detail */
.gg-photo{
  background:#050505 !important;
}

.gg-photo-grid{
  gap:14px !important;
}

/* if browser supports it, improve decoding behavior */
.gg-gallery-built img,
.gg-gallery-real img{
  content-visibility:auto;
}
/* 052 GNTM Berlin preview image swap */
a[href*="formel-e-grid-girls-aus-berlin-2022"] .gg-post-image-real img{
  object-position:50% 50% !important;
}
/* 053 faster home header slider */
.gg-hero-slide{
  transition:opacity 1.8s ease-in-out !important;
}
/* 054 home slider: 3 seconds visible */
.gg-hero-slide{
  transition:opacity 1.2s ease-in-out !important;
}
/* 055 homepage video tile */
.gg-card-video{
  width:100%;
  height:100%;
  min-height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:#050505;
  filter:saturate(1.04) contrast(1.04);
}

.gg-card:hover .gg-card-video{
  transform:scale(1.025);
  transition:.25s ease;
}

/* Prevent browser controls from showing on mobile */
.gg-card-video::-webkit-media-controls{
  display:none !important;
}
/* 056 video tile: better width fit */
.gg-card-video{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}

/* make the first video card a little wider on desktop so the video has more horizontal room */
@media(min-width:1180px){
  .gg-cats .gg-card:first-child{
    grid-column:span 2;
  }
}

/* keep clean layout on smaller screens */
@media(max-width:1179px){
  .gg-cats .gg-card:first-child{
    grid-column:auto;
  }
}

/* reduce zoom on hover for video so it does not crop too much */
.gg-card:hover .gg-card-video{
  transform:scale(1.01) !important;
}
/* 057 video tile: exact center position */
.gg-card-video{
  object-position:50% 50% !important;
  object-fit:cover !important;
}

.gg-cats .gg-card:first-child .gg-card-video{
  object-position:center center !important;
}

/* 064 fotoshootings sync fix */
.gg-empty{display:none !important;}
/* 065 category sync all fix */
.gg-empty{display:none !important;}

/* 100: sauberes Unterseiten-Headerbild ohne Streifen */
body:not(.home) .gg-page-hero,
.gg-page-hero{
  height:450px !important;
  min-height:450px !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  background-color:#000 !important;
  background-image:
    linear-gradient(90deg,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.76) 24%,
      rgba(0,0,0,.50) 42%,
      rgba(0,0,0,.26) 66%,
      rgba(0,0,0,.34) 100%),
    url("../img/gridgirls-page-hero-bg-099.jpg") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}

@media(max-width:760px){
  body:not(.home) .gg-page-hero,
  .gg-page-hero{
    height:340px !important;
    min-height:340px !important;
  }
}

/* 101: Header-Trennlinie zwischen Topbar und Hero entfernen */
.gg-topbar,
header.gg-topbar{
  border-bottom:none !important;
  box-shadow:none !important;
}

body:not(.home) .gg-page-hero,
.gg-page-hero{
  border-top:none !important;
  margin-top:0 !important;
}

/* 102: untere Trennlinie am Unterseiten-Header entfernen */
body:not(.home) .gg-page-hero,
.gg-page-hero{
  border-bottom:none !important;
  box-shadow:none !important;
}

/* 107: Schatten nur auf Video, nicht auf Schrift */
.gg-card-video{
  filter:brightness(.68) saturate(.96) contrast(1.04) !important;
}

/* keine dunkle Fläche mehr über der kompletten Kachel */
.gg-card:has(.gg-card-video)::after,
.gg-team-video-card::after{
  display:none !important;
  content:none !important;
}

/* Text bleibt über dem Video normal hell und klickbar */
.gg-card span,
.gg-card strong,
.gg-card .gg-card-title,
.gg-card .gg-card-label{
  position:relative;
  z-index:3;
}

/* 108: Kontakt nur aus oberer Menüleiste ausblenden */
.gg-topbar .gg-menu a[href*="kontakt"]{
  display:none !important;
}

/* 109: obere Menüschrift etwas größer */
.gg-topbar .gg-menu a{
  font-size:14px !important;
  letter-spacing:.045em !important;
  line-height:1.2 !important;
}

@media(max-width:1100px){
  .gg-topbar .gg-menu a{
    font-size:13px !important;
  }
}

/* 112: weiße Linie unter Startseiten-Header entfernen */
.gg-hero,
.gg-hero-slider{
  border-bottom:none !important;
  box-shadow:none !important;
}

.gg-hero::after,
.gg-hero-slider::after{
  border-bottom:none !important;
  box-shadow:none !important;
}

/* 118: NUR Mobile Optimierung iPhone iPad - Desktop unverändert */
/* Alles in diesem Block greift ausschließlich bis maximal 1024px Breite. */

@media(max-width:1024px){
  html,body{
    max-width:100% !important;
    overflow-x:hidden !important;
    -webkit-text-size-adjust:100% !important;
  }

  img,video{
    max-width:100% !important;
  }

  .gg-topbar{
    position:relative !important;
  }

  .gg-nav{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    align-items:center !important;
    gap:12px !important;
    padding:14px 18px !important;
  }

  .gg-logo{
    min-width:0 !important;
    gap:12px !important;
  }

  .gg-logo-mark{
    width:48px !important;
    height:48px !important;
    font-size:22px !important;
    flex:0 0 48px !important;
  }

  .gg-logo span:not(.gg-logo-mark){
    font-size:18px !important;
    line-height:1.05 !important;
    letter-spacing:.07em !important;
  }

  .gg-logo small{
    font-size:9px !important;
    letter-spacing:.16em !important;
    white-space:nowrap !important;
  }

  /* Hamburger nur als drei Streifen */
  .gg-mobile-note{
    display:flex !important;
    width:44px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    margin:0 !important;
    border:none !important;
    background:transparent !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    overflow:hidden !important;
    cursor:pointer !important;
    justify-self:end !important;
  }

  .gg-mobile-note::before{
    content:"☰" !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:44px !important;
    height:42px !important;
    color:#fff !important;
    font-size:30px !important;
    line-height:1 !important;
    font-weight:900 !important;
  }

  .gg-nav.is-open .gg-mobile-note::before{
    content:"×" !important;
    color:#e30613 !important;
    font-size:34px !important;
  }

  .gg-menu{
    display:none !important;
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:100% !important;
    padding:10px 0 0 !important;
    margin:0 !important;
    gap:8px !important;
  }

  .gg-nav.is-open .gg-menu{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .gg-menu a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    min-height:42px !important;
    padding:10px 8px !important;
    border:1px solid rgba(255,255,255,.11) !important;
    background:rgba(255,255,255,.035) !important;
    font-size:12px !important;
    line-height:1.1 !important;
    text-align:center !important;
    white-space:normal !important;
  }

  .gg-hero{
    min-height:620px !important;
    padding:46px 18px 42px !important;
    align-items:flex-start !important;
    overflow:hidden !important;
  }

  .gg-hero-inner{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }

  .gg-kicker{
    max-width:90vw !important;
    font-size:11px !important;
    line-height:1.35 !important;
    letter-spacing:.16em !important;
  }

  .gg-hero h1{
    max-width:92vw !important;
    width:92vw !important;
    font-size:clamp(31px,10.2vw,46px) !important;
    line-height:1.02 !important;
    letter-spacing:.015em !important;
    word-break:normal !important;
    overflow-wrap:normal !important;
    hyphens:none !important;
  }

  .gg-hero h1 em{
    display:inline !important;
    font-style:normal !important;
  }

  .gg-lead,
  .gg-hero p{
    max-width:90vw !important;
    font-size:15px !important;
    line-height:1.55 !important;
  }

  .gg-hero .gg-btn,
  .gg-hero a.gg-btn{
    max-width:90vw !important;
    width:90vw !important;
    min-height:48px !important;
    justify-content:center !important;
    text-align:center !important;
    box-sizing:border-box !important;
  }

  .gg-page-hero{
    height:340px !important;
    min-height:340px !important;
    padding:0 18px !important;
    background-position:center center !important;
    box-sizing:border-box !important;
  }

  .gg-page-hero h1{
    max-width:92vw !important;
    font-size:clamp(28px,10vw,42px) !important;
    line-height:1.03 !important;
  }

  .gg-page-hero p{
    max-width:90vw !important;
    font-size:15px !important;
    line-height:1.45 !important;
  }

  .gg-section,
  main.gg-content,
  .gg-content{
    width:100% !important;
    max-width:100vw !important;
    padding-left:18px !important;
    padding-right:18px !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }

  .gg-section-head{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .gg-cats{
    grid-template-columns:1fr 1fr !important;
    gap:18px !important;
  }

  .gg-cats-intro{
    grid-column:1 / -1 !important;
  }

  .gg-cats-intro h2,
  .gg-section-head h2{
    font-size:clamp(30px,8vw,44px) !important;
    line-height:1.05 !important;
  }

  .gg-card{
    min-height:330px !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .gg-card h3{
    font-size:clamp(26px,6.8vw,34px) !important;
    line-height:1 !important;
    max-width:94% !important;
  }

  .gg-grid,
  .gg-post-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:20px !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .gg-post-card,
  .gg-list-card{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image{
    width:100% !important;
    max-width:100% !important;
    height:235px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  .gg-post-image-real img,
  .gg-post-image img,
  .gg-list-image img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    display:block !important;
    object-fit:cover !important;
  }

  .gg-search-wrap,
  .gg-search{
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }

  .gg-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .gg-team-video-layout{
    grid-template-columns:1fr !important;
  }

  .gg-team-video-card,
  .gg-team-video-card .gg-card-video,
  .gg-team-text-card{
    min-height:320px !important;
  }

  .gg-footer-inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
}

@media(max-width:640px){
  .gg-nav.is-open .gg-menu{
    grid-template-columns:1fr !important;
  }

  .gg-logo span:not(.gg-logo-mark){
    font-size:17px !important;
  }

  .gg-logo small{
    font-size:8.5px !important;
  }

  .gg-hero{
    min-height:610px !important;
    padding:40px 16px 38px !important;
  }

  .gg-hero h1{
    font-size:clamp(30px,10vw,40px) !important;
    max-width:90vw !important;
    width:90vw !important;
  }

  .gg-lead,
  .gg-hero p{
    font-size:14px !important;
    max-width:88vw !important;
  }

  .gg-page-hero{
    height:320px !important;
    min-height:320px !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .gg-section,
  main.gg-content,
  .gg-content{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .gg-cats,
  .gg-grid,
  .gg-post-grid{
    grid-template-columns:1fr !important;
    gap:20px !important;
  }

  .gg-card{
    min-height:390px !important;
  }

  .gg-card h3{
    font-size:clamp(27px,8vw,32px) !important;
  }

  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image{
    height:230px !important;
  }

  .gg-stats{
    grid-template-columns:1fr 1fr !important;
  }
}

@media(max-width:390px){
  .gg-hero h1{
    font-size:30px !important;
    line-height:1.04 !important;
  }

  .gg-card{
    min-height:360px !important;
  }

  .gg-card h3{
    font-size:26px !important;
  }

  .gg-stats{
    grid-template-columns:1fr !important;
  }
}

/* 119: echtes Drei-Striche-Menü nur mobil */
/* Desktop bleibt unverändert. Diese Regeln greifen nur bis 1024px. */
@media(max-width:1024px){
  .gg-mobile-note{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:48px !important;
    height:44px !important;
    min-width:48px !important;
    min-height:44px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    text-indent:-9999px !important;
    overflow:hidden !important;
    cursor:pointer !important;
    justify-self:end !important;
    position:relative !important;
    z-index:200 !important;
  }

  .gg-mobile-note::before,
  .gg-mobile-note::after{
    content:"" !important;
    position:absolute !important;
    left:8px !important;
    right:8px !important;
    height:3px !important;
    background:#fff !important;
    border-radius:3px !important;
    transition:transform .2s ease, top .2s ease, bottom .2s ease, opacity .2s ease !important;
  }

  .gg-mobile-note::before{
    top:12px !important;
    box-shadow:0 9px 0 #fff !important;
  }

  .gg-mobile-note::after{
    bottom:11px !important;
  }

  .gg-nav.is-open .gg-mobile-note::before{
    top:20px !important;
    transform:rotate(45deg) !important;
    box-shadow:none !important;
    background:#e30613 !important;
  }

  .gg-nav.is-open .gg-mobile-note::after{
    bottom:21px !important;
    transform:rotate(-45deg) !important;
    background:#e30613 !important;
  }

  .gg-menu{
    display:none !important;
  }

  .gg-nav.is-open .gg-menu{
    display:grid !important;
  }
}

/* 120: Mobile Menü nur Icon finaler Fix */
/* Desktop bleibt unverändert. Greift nur mobil/tablet bis 1024px. */
@media(max-width:1024px){
  .gg-topbar .gg-nav .gg-mobile-note,
  header.gg-topbar nav.gg-nav .gg-mobile-note{
    display:block !important;
    position:relative !important;
    width:44px !important;
    height:36px !important;
    min-width:44px !important;
    min-height:36px !important;
    max-width:44px !important;
    max-height:36px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:transparent !important;
    font-size:0 !important;
    line-height:0 !important;
    letter-spacing:0 !important;
    text-indent:-9999px !important;
    overflow:hidden !important;
    cursor:pointer !important;
    justify-self:end !important;
    align-self:center !important;
    z-index:500 !important;
  }

  .gg-topbar .gg-nav .gg-mobile-note::before,
  header.gg-topbar nav.gg-nav .gg-mobile-note::before{
    content:"" !important;
    position:absolute !important;
    left:6px !important;
    top:8px !important;
    width:32px !important;
    height:3px !important;
    background:#fff !important;
    border-radius:3px !important;
    box-shadow:0 9px 0 #fff, 0 18px 0 #fff !important;
    transform:none !important;
    transition:transform .2s ease, box-shadow .2s ease, top .2s ease, background .2s ease !important;
  }

  .gg-topbar .gg-nav .gg-mobile-note::after,
  header.gg-topbar nav.gg-nav .gg-mobile-note::after{
    content:none !important;
    display:none !important;
  }

  .gg-topbar .gg-nav.is-open .gg-mobile-note::before,
  header.gg-topbar nav.gg-nav.is-open .gg-mobile-note::before{
    top:16px !important;
    background:#e30613 !important;
    box-shadow:none !important;
    transform:rotate(45deg) !important;
  }

  .gg-topbar .gg-nav.is-open .gg-mobile-note::after,
  header.gg-topbar nav.gg-nav.is-open .gg-mobile-note::after{
    content:"" !important;
    display:block !important;
    position:absolute !important;
    left:6px !important;
    top:16px !important;
    width:32px !important;
    height:3px !important;
    background:#e30613 !important;
    border-radius:3px !important;
    transform:rotate(-45deg) !important;
  }
}

/* 121: Mobile Abstand zwischen Hero und Kategorien verringern */
/* Desktop bleibt unverändert. Greift nur mobil/tablet. */
@media(max-width:1024px){
  .gg-hero{
    min-height:520px !important;
    padding-bottom:28px !important;
  }

  .gg-hero .gg-btn,
  .gg-hero a.gg-btn{
    margin-top:18px !important;
    margin-bottom:0 !important;
  }

  .gg-hero + .gg-section,
  .gg-hero + section.gg-section{
    padding-top:34px !important;
  }
}

@media(max-width:640px){
  .gg-hero{
    min-height:500px !important;
    padding-top:34px !important;
    padding-bottom:22px !important;
  }

  .gg-hero .gg-btn,
  .gg-hero a.gg-btn{
    margin-top:18px !important;
    margin-bottom:0 !important;
  }

  .gg-hero + .gg-section,
  .gg-hero + section.gg-section{
    padding-top:26px !important;
  }

  .gg-cats-intro{
    padding-top:0 !important;
    margin-top:0 !important;
  }
}

@media(max-width:390px){
  .gg-hero{
    min-height:485px !important;
    padding-bottom:20px !important;
  }

  .gg-hero + .gg-section,
  .gg-hero + section.gg-section{
    padding-top:22px !important;
  }
}


/* Desktop bleibt unverändert. Greift nur mobil. */
@media(max-width:640px){
  /* Highlights / Beitragskarten auf echte Vollbreite ziehen */
  .gg-post-grid{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding-left:0 !important;
    padding-right:0 !important;
    gap:18px !important;
  }

  .gg-post-grid > *{
    width:100% !important;
    max-width:100% !important;
  }

  .gg-post-card{
    width:100vw !important;
    max-width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    border-left:none !important;
    border-right:none !important;
    box-sizing:border-box !important;
  }

  .gg-post-image-real,
  .gg-post-image{
    width:100vw !important;
    max-width:100vw !important;
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  .gg-post-image-real img,
  .gg-post-image img{
    width:100% !important;
    height:auto !important;
    max-width:100% !important;
    display:block !important;
    object-fit:cover !important;
  }

  /* Textbereich darunter wieder mit sauberem Innenabstand */
  .gg-post-card .gg-post-meta,
  .gg-post-card h3,
  .gg-post-card p,
  .gg-post-card .gg-btn,
  .gg-post-card .gg-button,
  .gg-post-card .gg-post-content{
    margin-left:16px !important;
    margin-right:16px !important;
  }

  .gg-post-card .gg-btn,
  .gg-post-card .gg-button{
    width:calc(100% - 32px) !important;
    box-sizing:border-box !important;
  }
}

@media(max-width:390px){
  .gg-post-card .gg-post-meta,
  .gg-post-card h3,
  .gg-post-card p,
  .gg-post-card .gg-btn,
  .gg-post-card .gg-button,
  .gg-post-card .gg-post-content{
    margin-left:14px !important;
    margin-right:14px !important;
  }

  .gg-post-card .gg-btn,
  .gg-post-card .gg-button{
    width:calc(100% - 28px) !important;
  }
}

/* 123: Mobile leeren Abschnitt unter Hero entfernen */
/* Desktop bleibt unverändert. Greift nur mobil. */
@media(max-width:640px){
  .gg-hero{
    min-height:0 !important;
    height:auto !important;
    padding-top:34px !important;
    padding-bottom:28px !important;
    display:block !important;
  }

  .gg-hero-inner{
    padding-bottom:0 !important;
    margin-bottom:0 !important;
  }

  .gg-hero .gg-btn,
  .gg-hero a.gg-btn{
    margin-top:22px !important;
    margin-bottom:0 !important;
  }

  .gg-hero + .gg-section,
  .gg-hero + section.gg-section{
    padding-top:28px !important;
    margin-top:0 !important;
  }
}

/* sehr kleine iPhones */
@media(max-width:390px){
  .gg-hero{
    padding-bottom:24px !important;
  }

  .gg-hero + .gg-section,
  .gg-hero + section.gg-section{
    padding-top:24px !important;
  }
}


/* Desktop bleibt unverändert. Greift nur mobil. */
@media(max-width:640px){
  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:1 / 1 !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  .gg-post-image-real img,
  .gg-post-image img,
  .gg-list-image img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    display:block !important;
    object-fit:cover !important;
    object-position:center center !important;
  }

  .gg-post-card,
  .gg-list-card{
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  /* Galerie-Detailbilder ebenfalls quadratisch als saubere mobile Kacheln */
  .gg-gallery img,
  .gg-gallery-built img{
    width:100% !important;
    aspect-ratio:1 / 1 !important;
    height:auto !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block !important;
  }
}

/* BEGIN Gridgirls editor display settings 069 */
.gg-post-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:28px !important;}
.gg-post-image-real,.gg-post-image,.gg-list-image{height:230px !important;overflow:hidden !important;}
.gg-post-image-real img,.gg-post-image img,.gg-list-image img{width:100% !important;height:100% !important;object-fit:cover !important;}
@media(max-width:1100px){.gg-post-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}.gg-post-image-real,.gg-post-image,.gg-list-image{height:210px !important;}}
@media(max-width:700px){.gg-post-grid{grid-template-columns:1fr !important;}.gg-post-image-real,.gg-post-image,.gg-list-image{height:240px !important;}}
/* END Gridgirls editor display settings 069 */


/* iPhone/Handy: Galerie-Bilder im Originalformat anzeigen, nicht beschneiden */
@media (max-width: 640px) {
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: 95% !important;
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail .gg-thumbs,
  .gg-gallery-detail .gg-thumbnails,
  .gg-gallery-detail .gg-gallery-grid,
  .gg-gallery-detail .gg-photo-grid,
  .gg-gallery-detail .gg-preview-grid,
  .gg-gallery-detail .gg-image-grid,
  .gg-gallery-info .gg-thumbs,
  .gg-gallery-info .gg-thumbnails,
  .gg-gallery-info .gg-gallery-grid,
  .gg-gallery-info .gg-photo-grid,
  .gg-gallery-info .gg-preview-grid,
  .gg-gallery-info .gg-image-grid,
  .gg-album-detail .gg-thumbs,
  .gg-album-detail .gg-thumbnails,
  .gg-album-detail .gg-gallery-grid,
  .gg-album-detail .gg-photo-grid,
  .gg-album-detail .gg-preview-grid,
  .gg-album-detail .gg-image-grid,
  .gg-folder-detail .gg-thumbs,
  .gg-folder-detail .gg-thumbnails,
  .gg-folder-detail .gg-gallery-grid,
  .gg-folder-detail .gg-photo-grid,
  .gg-folder-detail .gg-preview-grid,
  .gg-folder-detail .gg-image-grid,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: start !important;
  }

  .gg-gallery-detail a,
  .gg-gallery-info a,
  .gg-gallery-meta-box a,
  .gg-album-detail a,
  .gg-folder-detail a,
  .gg-single-gallery a,
  .gg-image-panel a,
  .gg-red-gallery a,
  .gg-gallery-preview a,
  .gg-preview-gallery a,
  .gg-detail-gallery a,
  .gg-gallery-detail figure,
  .gg-gallery-info figure,
  .gg-album-detail figure,
  .gg-folder-detail figure,
  .gg-single-gallery figure,
  .gg-image-panel figure,
  .gg-red-gallery figure,
  .gg-gallery-preview figure,
  .gg-preview-gallery figure,
  .gg-detail-gallery figure,
  .gg-gallery-detail .thumb,
  .gg-gallery-info .thumb,
  .gg-album-detail .thumb,
  .gg-folder-detail .thumb,
  .gg-single-gallery .thumb,
  .gg-image-panel .thumb,
  .gg-red-gallery .thumb,
  .gg-gallery-preview .thumb,
  .gg-preview-gallery .thumb,
  .gg-detail-gallery .thumb {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    background: transparent !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
    margin: 0 auto 22px auto !important;
  }

  .gg-gallery-detail table,
  .gg-gallery-info table,
  .gg-album-detail table,
  .gg-folder-detail table,
  .gg-single-gallery table,
  .gg-image-panel table,
  .gg-red-gallery table,
  .gg-gallery-preview table,
  .gg-preview-gallery table,
  .gg-detail-gallery table,
  .gg-gallery-detail tbody,
  .gg-gallery-info tbody,
  .gg-album-detail tbody,
  .gg-folder-detail tbody,
  .gg-single-gallery tbody,
  .gg-image-panel tbody,
  .gg-red-gallery tbody,
  .gg-gallery-preview tbody,
  .gg-preview-gallery tbody,
  .gg-detail-gallery tbody,
  .gg-gallery-detail tr,
  .gg-gallery-info tr,
  .gg-album-detail tr,
  .gg-folder-detail tr,
  .gg-single-gallery tr,
  .gg-image-panel tr,
  .gg-red-gallery tr,
  .gg-gallery-preview tr,
  .gg-preview-gallery tr,
  .gg-detail-gallery tr,
  .gg-gallery-detail td,
  .gg-gallery-info td,
  .gg-album-detail td,
  .gg-folder-detail td,
  .gg-single-gallery td,
  .gg-image-panel td,
  .gg-red-gallery td,
  .gg-gallery-preview td,
  .gg-preview-gallery td,
  .gg-detail-gallery td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
    overflow: visible !important;
  }

  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 430px) {
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: 96% !important;
    max-width: 96% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}


/* Alle Seiten mit Galerie/Karten: Desktop 4 pro Zeile, Vorschaubilder 16:9 */
@media (min-width: 1181px) {
  .gg-grid,
  .gg-post-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .gallery-grid,
  .wp-block-gallery,
  .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .gg-grid > *,
  .gg-post-grid > *,
  .gg-list-grid > *,
  .gg-archive-grid > *,
  .gg-category-grid > *,
  .gg-gallery-grid > *,
  .gg-photos-grid > *,
  .gg-photo-grid > *,
  .gg-image-grid > *,
  .gg-thumbs > *,
  .gg-thumbnails > *,
  .gallery-grid > *,
  .wp-block-gallery > *,
  .blocks-gallery-grid > * {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Vorschaubilder/Kartenbilder grundsätzlich 16:9 auf Galerie- und Übersichtsseiten */
.gg-post-image,
.gg-card-image,
.gg-list-image,
.gg-gallery-thumb,
.gg-thumb,
.gg-thumbnail,
.gg-gallery-grid a,
.gg-photos-grid a,
.gg-photo-grid a,
.gg-image-grid a,
.gg-thumbs a,
.gg-thumbnails a,
.gallery-grid a,
.wp-block-gallery figure,
.blocks-gallery-grid figure {
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  display: block !important;
  background: #050505 !important;
}

.gg-post-image img,
.gg-card-image img,
.gg-list-image img,
.gg-gallery-thumb img,
.gg-thumb img,
.gg-thumbnail img,
.gg-gallery-grid img,
.gg-photos-grid img,
.gg-photo-grid img,
.gg-image-grid img,
.gg-thumbs img,
.gg-thumbnails img,
.gallery-grid img,
.wp-block-gallery img,
.blocks-gallery-grid img,
.gg-post-card img,
.gg-card img,
.gg-list-card img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
}

/* Tablet: 2 pro Zeile */
@media (min-width: 641px) and (max-width: 1180px) {
  .gg-grid,
  .gg-post-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .gallery-grid,
  .wp-block-gallery,
  .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .gg-post-image,
  .gg-card-image,
  .gg-list-image,
  .gg-gallery-thumb,
  .gg-thumb,
  .gg-thumbnail,
  .gg-gallery-grid a,
  .gg-photos-grid a,
  .gg-photo-grid a,
  .gg-image-grid a,
  .gg-thumbs a,
  .gg-thumbnails a,
  .gallery-grid a,
  .wp-block-gallery figure,
  .blocks-gallery-grid figure {
    aspect-ratio: 16 / 9 !important;
  }
}

/* Handy/iPhone: 1 pro Zeile, aber ebenfalls 16:9-Vorschau */
@media (max-width: 640px) {
  .gg-grid,
  .gg-post-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .gallery-grid,
  .wp-block-gallery,
  .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 95% !important;
    max-width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gg-post-image,
  .gg-card-image,
  .gg-list-image,
  .gg-gallery-thumb,
  .gg-thumb,
  .gg-thumbnail,
  .gg-gallery-grid a,
  .gg-photos-grid a,
  .gg-photo-grid a,
  .gg-image-grid a,
  .gg-thumbs a,
  .gg-thumbnails a,
  .gallery-grid a,
  .wp-block-gallery figure,
  .blocks-gallery-grid figure {
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
  }

  .gg-post-image img,
  .gg-card-image img,
  .gg-list-image img,
  .gg-gallery-thumb img,
  .gg-thumb img,
  .gg-thumbnail img,
  .gg-gallery-grid img,
  .gg-photos-grid img,
  .gg-photo-grid img,
  .gg-image-grid img,
  .gg-thumbs img,
  .gg-thumbnails img,
  .gallery-grid img,
  .wp-block-gallery img,
  .blocks-gallery-grid img,
  .gg-post-card img,
  .gg-card img,
  .gg-list-card img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
  }
}


/* Handy/iPhone: alle Vorschau- und Kartenbilder auf 16:9 */
@media (max-width: 640px) {
  .gg-post-image,
  .gg-card-image,
  .gg-list-image,
  .gg-archive-image,
  .gg-category-image,
  .gg-featured-image,
  .gg-preview-image,
  .gg-thumb,
  .gg-thumbnail,
  .gg-gallery-thumb,
  .gg-folder-thumb,
  .gg-album-thumb,
  .gg-post-card picture,
  .gg-card picture,
  .gg-list-card picture,
  .gg-archive-card picture,
  .gg-category-card picture,
  .gg-post-card figure,
  .gg-card figure,
  .gg-list-card figure,
  .gg-archive-card figure,
  .gg-category-card figure,
  .gg-gallery-grid a,
  .gg-photos-grid a,
  .gg-photo-grid a,
  .gg-image-grid a,
  .gg-thumbs a,
  .gg-thumbnails a,
  .gallery-grid a,
  .wp-block-gallery figure,
  .blocks-gallery-grid figure {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #050505 !important;
    box-sizing: border-box !important;
  }

  .gg-post-image img,
  .gg-card-image img,
  .gg-list-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-featured-image img,
  .gg-preview-image img,
  .gg-thumb img,
  .gg-thumbnail img,
  .gg-gallery-thumb img,
  .gg-folder-thumb img,
  .gg-album-thumb img,
  .gg-post-card > img,
  .gg-card > img,
  .gg-list-card > img,
  .gg-archive-card > img,
  .gg-category-card > img,
  .gg-post-card picture img,
  .gg-card picture img,
  .gg-list-card picture img,
  .gg-archive-card picture img,
  .gg-category-card picture img,
  .gg-post-card figure img,
  .gg-card figure img,
  .gg-list-card figure img,
  .gg-archive-card figure img,
  .gg-category-card figure img,
  .gg-gallery-grid img,
  .gg-photos-grid img,
  .gg-photo-grid img,
  .gg-image-grid img,
  .gg-thumbs img,
  .gg-thumbnails img,
  .gallery-grid img,
  .wp-block-gallery img,
  .blocks-gallery-grid img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center center;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .gg-post-card img:first-child,
  .gg-card img:first-child,
  .gg-list-card img:first-child,
  .gg-archive-card img:first-child,
  .gg-category-card img:first-child {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .gg-post-card,
  .gg-card,
  .gg-list-card,
  .gg-archive-card,
  .gg-category-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 430px) {
  .gg-post-image,
  .gg-card-image,
  .gg-list-image,
  .gg-archive-image,
  .gg-category-image,
  .gg-featured-image,
  .gg-preview-image,
  .gg-thumb,
  .gg-thumbnail,
  .gg-gallery-thumb,
  .gg-folder-thumb,
  .gg-album-thumb {
    aspect-ratio: 16 / 9 !important;
  }

  .gg-post-image img,
  .gg-card-image img,
  .gg-list-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-featured-image img,
  .gg-preview-image img,
  .gg-thumb img,
  .gg-thumbnail img,
  .gg-gallery-thumb img,
  .gg-folder-thumb img,
  .gg-album-thumb img {
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
  }
}


/* Mobile/iPhone: 16:9-Vorschaubilder mittig ausrichten */
@media (max-width: 640px) {
  .gg-post-image,
  .gg-card-image,
  .gg-list-image,
  .gg-archive-image,
  .gg-category-image,
  .gg-featured-image,
  .gg-preview-image,
  .gg-thumb,
  .gg-thumbnail,
  .gg-gallery-thumb,
  .gg-folder-thumb,
  .gg-album-thumb,
  .gg-post-card picture,
  .gg-card picture,
  .gg-list-card picture,
  .gg-archive-card picture,
  .gg-category-card picture,
  .gg-post-card figure,
  .gg-card figure,
  .gg-list-card figure,
  .gg-archive-card figure,
  .gg-category-card figure {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gg-post-image img,
  .gg-card-image img,
  .gg-list-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-featured-image img,
  .gg-preview-image img,
  .gg-thumb img,
  .gg-thumbnail img,
  .gg-gallery-thumb img,
  .gg-folder-thumb img,
  .gg-album-thumb img,
  .gg-post-card > img,
  .gg-card > img,
  .gg-list-card > img,
  .gg-archive-card > img,
  .gg-category-card > img,
  .gg-post-card picture img,
  .gg-card picture img,
  .gg-list-card picture img,
  .gg-archive-card picture img,
  .gg-category-card picture img,
  .gg-post-card figure img,
  .gg-card figure img,
  .gg-list-card figure img,
  .gg-archive-card figure img,
  .gg-category-card figure img,
  .gg-gallery-grid img,
  .gg-photos-grid img,
  .gg-photo-grid img,
  .gg-image-grid img,
  .gg-thumbs img,
  .gg-thumbnails img,
  .gallery-grid img,
  .wp-block-gallery img,
  .blocks-gallery-grid img {
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Karten selbst mittig im mobilen Container */
  .gg-post-card,
  .gg-card,
  .gg-list-card,
  .gg-archive-card,
  .gg-category-card {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* Globaler Mobile-Fix: alle Bildergalerien fast volle Breite, dunkler Rand max. ca. 5% */
@media (max-width: 640px) {
  body,
  .site,
  .page,
  .gg-content,
  .gg-main,
  .gg-page-content,
  .gg-section,
  main,
  article {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery,
  .gg-gallery-section,
  .gg-gallery-wrap,
  .gg-gallery-box,
  .gg-gallery,
  .gg-photo-gallery,
  .gg-image-gallery,
  .gg-lightbox-gallery,
  .gallery,
  .gallery-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .wp-block-gallery,
  .blocks-gallery-grid {
    width: 95vw !important;
    max-width: 95vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .gg-gallery-detail .gg-thumbs,
  .gg-gallery-detail .gg-thumbnails,
  .gg-gallery-detail .gg-gallery-grid,
  .gg-gallery-detail .gg-photo-grid,
  .gg-gallery-detail .gg-preview-grid,
  .gg-gallery-detail .gg-image-grid,
  .gg-gallery-info .gg-thumbs,
  .gg-gallery-info .gg-thumbnails,
  .gg-gallery-info .gg-gallery-grid,
  .gg-gallery-info .gg-photo-grid,
  .gg-gallery-info .gg-preview-grid,
  .gg-gallery-info .gg-image-grid,
  .gg-album-detail .gg-thumbs,
  .gg-album-detail .gg-thumbnails,
  .gg-album-detail .gg-gallery-grid,
  .gg-album-detail .gg-photo-grid,
  .gg-album-detail .gg-preview-grid,
  .gg-album-detail .gg-image-grid,
  .gg-folder-detail .gg-thumbs,
  .gg-folder-detail .gg-thumbnails,
  .gg-folder-detail .gg-gallery-grid,
  .gg-folder-detail .gg-photo-grid,
  .gg-folder-detail .gg-preview-grid,
  .gg-folder-detail .gg-image-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .gallery-grid,
  .wp-block-gallery,
  .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: start !important;
  }

  .gg-gallery-detail a,
  .gg-gallery-info a,
  .gg-gallery-meta-box a,
  .gg-album-detail a,
  .gg-folder-detail a,
  .gg-single-gallery a,
  .gg-image-panel a,
  .gg-red-gallery a,
  .gg-gallery-preview a,
  .gg-preview-gallery a,
  .gg-detail-gallery a,
  .gg-gallery-section a,
  .gg-gallery-wrap a,
  .gg-gallery-box a,
  .gg-gallery a,
  .gg-photo-gallery a,
  .gg-image-gallery a,
  .gg-gallery-grid a,
  .gg-photos-grid a,
  .gg-photo-grid a,
  .gg-image-grid a,
  .gg-thumbs a,
  .gg-thumbnails a,
  .gallery-grid a {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    flex: 0 0 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img,
  .gg-gallery-section img,
  .gg-gallery-wrap img,
  .gg-gallery-box img,
  .gg-gallery img,
  .gg-photo-gallery img,
  .gg-image-gallery img,
  .gg-gallery-grid img,
  .gg-photos-grid img,
  .gg-photo-grid img,
  .gg-image-grid img,
  .gg-thumbs img,
  .gg-thumbnails img,
  .gallery-grid img,
  .wp-block-gallery img,
  .blocks-gallery-grid img,
  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail table,
  .gg-gallery-info table,
  .gg-album-detail table,
  .gg-folder-detail table,
  .gg-single-gallery table,
  .gg-image-panel table,
  .gg-red-gallery table,
  .gg-gallery-preview table,
  .gg-preview-gallery table,
  .gg-detail-gallery table,
  .gg-gallery-detail tbody,
  .gg-gallery-info tbody,
  .gg-album-detail tbody,
  .gg-folder-detail tbody,
  .gg-single-gallery tbody,
  .gg-image-panel tbody,
  .gg-red-gallery tbody,
  .gg-gallery-preview tbody,
  .gg-preview-gallery tbody,
  .gg-detail-gallery tbody,
  .gg-gallery-detail tr,
  .gg-gallery-info tr,
  .gg-album-detail tr,
  .gg-folder-detail tr,
  .gg-single-gallery tr,
  .gg-image-panel tr,
  .gg-red-gallery tr,
  .gg-gallery-preview tr,
  .gg-preview-gallery tr,
  .gg-detail-gallery tr,
  .gg-gallery-detail td,
  .gg-gallery-info td,
  .gg-album-detail td,
  .gg-folder-detail td,
  .gg-single-gallery td,
  .gg-image-panel td,
  .gg-red-gallery td,
  .gg-gallery-preview td,
  .gg-preview-gallery td,
  .gg-detail-gallery td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
}

@media (max-width: 430px) {
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery,
  .gg-gallery-section,
  .gg-gallery-wrap,
  .gg-gallery-box,
  .gg-gallery,
  .gg-photo-gallery,
  .gg-image-gallery,
  .gg-lightbox-gallery,
  .gallery,
  .gallery-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-photo-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails {
    width: 95vw !important;
    max-width: 95vw !important;
  }

  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}


/* Mobile Galerie-Detailbox: breiter, zentriert, Bilder laufen nicht mehr rechts raus */
@media (max-width: 640px) {
  :root {
    --gg-mobile-gallery-box-width: 95vw;
    --gg-mobile-gallery-box-padding: 14px;
  }

  /* Elternbereiche dürfen die Galeriebox nicht schmal drücken */
  .gg-content,
  .gg-main,
  .gg-page-content,
  .gg-section,
  main,
  article {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  /* Die rote Bildergalerie-Box auf fast volle Mobilbreite ziehen */
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: var(--gg-mobile-gallery-box-width) !important;
    max-width: var(--gg-mobile-gallery-box-width) !important;
    min-width: 0 !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    padding-left: var(--gg-mobile-gallery-box-padding) !important;
    padding-right: var(--gg-mobile-gallery-box-padding) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Alles in der Box bleibt innerhalb der roten Linie */
  .gg-gallery-detail *,
  .gg-gallery-info *,
  .gg-gallery-meta-box *,
  .gg-album-detail *,
  .gg-folder-detail *,
  .gg-single-gallery *,
  .gg-image-panel *,
  .gg-red-gallery *,
  .gg-gallery-preview *,
  .gg-preview-gallery *,
  .gg-detail-gallery * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Galerie-Listen innerhalb der roten Box: 1 Spalte, volle innere Breite */
  .gg-gallery-detail .gg-thumbs,
  .gg-gallery-detail .gg-thumbnails,
  .gg-gallery-detail .gg-gallery-grid,
  .gg-gallery-detail .gg-photo-grid,
  .gg-gallery-detail .gg-preview-grid,
  .gg-gallery-detail .gg-image-grid,
  .gg-gallery-info .gg-thumbs,
  .gg-gallery-info .gg-thumbnails,
  .gg-gallery-info .gg-gallery-grid,
  .gg-gallery-info .gg-photo-grid,
  .gg-gallery-info .gg-preview-grid,
  .gg-gallery-info .gg-image-grid,
  .gg-album-detail .gg-thumbs,
  .gg-album-detail .gg-thumbnails,
  .gg-album-detail .gg-gallery-grid,
  .gg-album-detail .gg-photo-grid,
  .gg-album-detail .gg-preview-grid,
  .gg-album-detail .gg-image-grid,
  .gg-folder-detail .gg-thumbs,
  .gg-folder-detail .gg-thumbnails,
  .gg-folder-detail .gg-gallery-grid,
  .gg-folder-detail .gg-photo-grid,
  .gg-folder-detail .gg-preview-grid,
  .gg-folder-detail .gg-image-grid {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
  }

  /* Links/Wrapper dürfen nicht breiter als die Galeriebox sein */
  .gg-gallery-detail a,
  .gg-gallery-info a,
  .gg-gallery-meta-box a,
  .gg-album-detail a,
  .gg-folder-detail a,
  .gg-single-gallery a,
  .gg-image-panel a,
  .gg-red-gallery a,
  .gg-gallery-preview a,
  .gg-preview-gallery a,
  .gg-detail-gallery a,
  .gg-gallery-detail figure,
  .gg-gallery-info figure,
  .gg-album-detail figure,
  .gg-folder-detail figure,
  .gg-single-gallery figure,
  .gg-image-panel figure,
  .gg-red-gallery figure,
  .gg-gallery-preview figure,
  .gg-preview-gallery figure,
  .gg-detail-gallery figure {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Bilder: volle innere Breite, Originalformat, zentriert */
  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img,
  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Falls alte Tabellen benutzt werden */
  .gg-gallery-detail table,
  .gg-gallery-info table,
  .gg-album-detail table,
  .gg-folder-detail table,
  .gg-single-gallery table,
  .gg-image-panel table,
  .gg-red-gallery table,
  .gg-gallery-preview table,
  .gg-preview-gallery table,
  .gg-detail-gallery table,
  .gg-gallery-detail tbody,
  .gg-gallery-info tbody,
  .gg-album-detail tbody,
  .gg-folder-detail tbody,
  .gg-single-gallery tbody,
  .gg-image-panel tbody,
  .gg-red-gallery tbody,
  .gg-gallery-preview tbody,
  .gg-preview-gallery tbody,
  .gg-detail-gallery tbody,
  .gg-gallery-detail tr,
  .gg-gallery-info tr,
  .gg-album-detail tr,
  .gg-folder-detail tr,
  .gg-single-gallery tr,
  .gg-image-panel tr,
  .gg-red-gallery tr,
  .gg-gallery-preview tr,
  .gg-preview-gallery tr,
  .gg-detail-gallery tr,
  .gg-gallery-detail td,
  .gg-gallery-info td,
  .gg-album-detail td,
  .gg-folder-detail td,
  .gg-single-gallery td,
  .gg-image-panel td,
  .gg-red-gallery td,
  .gg-gallery-preview td,
  .gg-preview-gallery td,
  .gg-detail-gallery td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 430px) {
  :root {
    --gg-mobile-gallery-box-width: 95vw;
    --gg-mobile-gallery-box-padding: 10px;
  }
}




/* Feinschliff: roter Rahmen fast volle Breite, Bilder mittig, kein Overflow */
@media (max-width: 640px) {
  :root {
    --gg-mobile-gallery-box-width: min(98vw, calc(100vw - 8px));
    --gg-mobile-gallery-box-padding: 8px;
  }

  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: var(--gg-mobile-gallery-box-width) !important;
    max-width: var(--gg-mobile-gallery-box-width) !important;
    margin-left: 50% !important;
    margin-right: 0 !important;
    transform: translateX(-50%) !important;
    padding-left: var(--gg-mobile-gallery-box-padding) !important;
    padding-right: var(--gg-mobile-gallery-box-padding) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail a,
  .gg-gallery-info a,
  .gg-gallery-meta-box a,
  .gg-album-detail a,
  .gg-folder-detail a,
  .gg-single-gallery a,
  .gg-image-panel a,
  .gg-red-gallery a,
  .gg-gallery-preview a,
  .gg-preview-gallery a,
  .gg-detail-gallery a,
  .gg-gallery-detail figure,
  .gg-gallery-info figure,
  .gg-album-detail figure,
  .gg-folder-detail figure,
  .gg-single-gallery figure,
  .gg-image-panel figure,
  .gg-red-gallery figure,
  .gg-gallery-preview figure,
  .gg-preview-gallery figure,
  .gg-detail-gallery figure {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img,
  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 430px) {
  :root {
    --gg-mobile-gallery-box-width: min(98vw, calc(100vw - 8px));
    --gg-mobile-gallery-box-padding: 7px;
  }
}





/* Feinschliff: rote Galeriebox breiter, Bilder perfekt mittig und sauber im Rahmen */
@media (max-width: 640px) {
  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100vw - 18px) !important;
    max-width: calc(100vw - 18px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .gg-photo-grid,
  .gg-gallery-real .gg-photo-grid,
  .gg-gallery-built .gg-photo-grid,
  .gg-gallery-exact .gg-photo-grid,
  .gg-gallery-manifest .gg-photo-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .gg-photo,
  .gg-gallery-real .gg-photo,
  .gg-gallery-built .gg-photo,
  .gg-gallery-exact .gg-photo,
  .gg-gallery-manifest .gg-photo {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .gg-photo img,
  .gg-gallery-real .gg-photo img,
  .gg-gallery-built .gg-photo img,
  .gg-gallery-exact .gg-photo img,
  .gg-gallery-manifest .gg-photo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 430px) {
  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100vw - 14px) !important;
    max-width: calc(100vw - 14px) !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}



/* Korrektur: rechte rote Rahmenlinie sichtbar lassen, trotzdem breit und zentriert */
@media (max-width: 640px) {
  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .gg-photo-grid,
  .gg-gallery-real .gg-photo-grid,
  .gg-gallery-built .gg-photo-grid,
  .gg-gallery-exact .gg-photo-grid,
  .gg-gallery-manifest .gg-photo-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .gg-photo,
  .gg-gallery-real .gg-photo,
  .gg-gallery-built .gg-photo,
  .gg-gallery-exact .gg-photo,
  .gg-gallery-manifest .gg-photo {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .gg-photo img,
  .gg-gallery-real .gg-photo img,
  .gg-gallery-built .gg-photo img,
  .gg-gallery-exact .gg-photo img,
  .gg-gallery-manifest .gg-photo img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 430px) {
  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

/* 173: MOBILE CLEAN FINAL FROM 456 */
/* Saubere mobile Version: Karten 16:9, Galerien breit, Bilder zentriert, kein rechter Overflow */

/* Desktop: Galerie-/Kartenübersichten 4 pro Zeile und 16:9 Vorschau */
@media (min-width: 1181px) {
  .gg-post-grid,
  .gg-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;
  }

  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image,
  .gg-card-image,
  .gg-archive-image,
  .gg-category-image {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .gg-post-image-real img,
  .gg-post-image img,
  .gg-list-image img,
  .gg-card-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-post-card > img,
  .gg-card > img,
  .gg-list-card > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}

/* Tablet: 2 pro Zeile */
@media (min-width: 641px) and (max-width: 1180px) {
  .gg-post-grid,
  .gg-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }

  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image,
  .gg-card-image,
  .gg-archive-image,
  .gg-category-image {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .gg-post-image-real img,
  .gg-post-image img,
  .gg-list-image img,
  .gg-card-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-post-card > img,
  .gg-card > img,
  .gg-list-card > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
}

/* iPhone/Handy: saubere mobile Darstellung */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .gg-content,
  .gg-main,
  .gg-page-content,
  .gg-section,
  main,
  article {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Karten/Übersichten mobil: 1 pro Zeile, nicht überbreit */
  .gg-post-grid,
  .gg-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .gg-post-card,
  .gg-card,
  .gg-list-card,
  .gg-archive-card,
  .gg-category-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile Vorschaubilder immer 16:9 und zentriert */
  .gg-post-image-real,
  .gg-post-image,
  .gg-list-image,
  .gg-card-image,
  .gg-archive-image,
  .gg-category-image,
  .gg-featured-image,
  .gg-preview-image {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #050505 !important;
    display: block !important;
  }

  .gg-post-image-real img,
  .gg-post-image img,
  .gg-list-image img,
  .gg-card-image img,
  .gg-archive-image img,
  .gg-category-image img,
  .gg-featured-image img,
  .gg-preview-image img,
  .gg-post-card > img,
  .gg-card > img,
  .gg-list-card > img,
  .gg-archive-card > img,
  .gg-category-card > img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Galerie-Detailboxen mobil: breit, aber rechter roter Rahmen bleibt sichtbar */
  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
  }

  .gg-gallery-head {
    display: block !important;
  }

  /* Galerie-Bilder mobil: 1 Spalte */
  .gg-photo-grid,
  .gg-gallery-grid,
  .gg-photos-grid,
  .gg-image-grid,
  .gg-thumbs,
  .gg-thumbnails,
  .gallery-grid,
  .wp-block-gallery,
  .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-items: center !important;
    box-sizing: border-box !important;
  }

  .gg-photo,
  .gg-gallery-real .gg-photo,
  .gg-gallery-built .gg-photo,
  .gg-gallery-exact .gg-photo,
  .gg-gallery-manifest .gg-photo,
  .gg-gallery-grid > *,
  .gg-photos-grid > *,
  .gg-image-grid > *,
  .gg-thumbs > *,
  .gg-thumbnails > *,
  .gallery-grid > *,
  .wp-block-gallery > *,
  .blocks-gallery-grid > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-self: center !important;
    float: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Galerie-Detailbilder: Originalformat, volle innere Breite, zentriert */
  .gg-photo img,
  .gg-gallery-real .gg-photo img,
  .gg-gallery-built .gg-photo img,
  .gg-gallery-exact .gg-photo img,
  .gg-gallery-manifest .gg-photo img,
  .gg-gallery-detail img,
  .gg-gallery-info img,
  .gg-gallery-meta-box img,
  .gg-album-detail img,
  .gg-folder-detail img,
  .gg-single-gallery img,
  .gg-image-panel img,
  .gg-red-gallery img,
  .gg-gallery-preview img,
  .gg-preview-gallery img,
  .gg-detail-gallery img,
  .gg-gallery-grid img,
  .gg-photos-grid img,
  .gg-image-grid img,
  .gg-thumbs img,
  .gg-thumbnails img,
  .gallery-grid img,
  .wp-block-gallery img,
  .blocks-gallery-grid img,
  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
}

/* kleine iPhones */
@media (max-width: 430px) {
  .gg-post-grid,
  .gg-grid,
  .gg-list-grid,
  .gg-archive-grid,
  .gg-category-grid {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }

  .gg-gallery-real,
  .gg-gallery-built,
  .gg-gallery-exact,
  .gg-gallery-manifest,
  .gg-gallery-detail,
  .gg-gallery-info,
  .gg-gallery-meta-box,
  .gg-album-detail,
  .gg-folder-detail,
  .gg-single-gallery,
  .gg-image-panel,
  .gg-red-gallery,
  .gg-gallery-preview,
  .gg-preview-gallery,
  .gg-detail-gallery {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}


/* 174: mobile galerie hochkantbilder volle hoehe */
/* Detail-Galerien mobil: Hochkantbilder vollständig anzeigen, nicht in Kachelhöhe beschneiden */
@media (max-width: 640px) {
  .gg-gallery-real .gg-photo,
  .gg-gallery-built .gg-photo,
  .gg-gallery-exact .gg-photo,
  .gg-gallery-manifest .gg-photo,
  .gg-gallery-detail .gg-photo,
  .gg-gallery-info .gg-photo,
  .gg-gallery-meta-box .gg-photo,
  .gg-album-detail .gg-photo,
  .gg-folder-detail .gg-photo,
  .gg-single-gallery .gg-photo,
  .gg-image-panel .gg-photo,
  .gg-red-gallery .gg-photo,
  .gg-gallery-preview .gg-photo,
  .gg-preview-gallery .gg-photo,
  .gg-detail-gallery .gg-photo {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .gg-gallery-real .gg-photo img,
  .gg-gallery-built .gg-photo img,
  .gg-gallery-exact .gg-photo img,
  .gg-gallery-manifest .gg-photo img,
  .gg-gallery-detail .gg-photo img,
  .gg-gallery-info .gg-photo img,
  .gg-gallery-meta-box .gg-photo img,
  .gg-album-detail .gg-photo img,
  .gg-folder-detail .gg-photo img,
  .gg-single-gallery .gg-photo img,
  .gg-image-panel .gg-photo img,
  .gg-red-gallery .gg-photo img,
  .gg-gallery-preview .gg-photo img,
  .gg-preview-gallery .gg-photo img,
  .gg-detail-gallery .gg-photo img,
  body img[src*="/wp-content/gallery-web/"],
  body img[src*="wp-content/gallery-web/"],
  body img[src*="/wp-content/gallery/"],
  body img[src*="wp-content/gallery/"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Hover-Zoom mobil deaktivieren, damit Hochkantbilder nicht angeschnitten wirken */
  .gg-gallery-real .gg-photo:hover img,
  .gg-gallery-built .gg-photo:hover img,
  .gg-gallery-exact .gg-photo:hover img,
  .gg-gallery-manifest .gg-photo:hover img {
    transform: none !important;
  }
}


/* 175: mobile lightbox swipe ohne rote pfeile */
.gg-swipe-hint{
  display:none;
}

@media (max-width: 640px) {
  .gg-lightbox .gg-lightbox-prev,
  .gg-lightbox .gg-lightbox-next {
    display: none !important;
  }

  .gg-lightbox {
    touch-action: pan-y pinch-zoom !important;
  }

  .gg-lightbox img {
    touch-action: pan-y pinch-zoom !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }

  .gg-swipe-hint {
    display: block !important;
    position: fixed !important;
    left: 50% !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
    z-index: 10001 !important;
    background: rgba(0,0,0,.68) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 999px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    pointer-events: none !important;
  }

  .gg-lightbox-close {
    top: 16px !important;
    right: 16px !important;
  }
}

/* GRIDGIRLS FINAL CLEAN HEADER PATCH 323 START
   Finaler sauberer Stand:
   - Headerbild sichtbar
   - linker schwarzer Schatten
   - Hero-Höhe 450px
   - Bereich unter Headerbild reduziert
   - alte Test-/Hero-Blöcke entfernt
*/
html body .gg-topbar,
html body header.gg-topbar {
  background:#000 !important;
  background-image:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

html body .gg-nav,
html body nav.gg-nav {
  padding:14px 4vw !important;
  min-height:40px !important;
  align-items:center !important;
}

html body .gg-menu,
html body nav .gg-menu {
  font-size:14px !important;
  line-height:1.1 !important;
  font-weight:900 !important;
  letter-spacing:.045em !important;
  gap:18px !important;
}

html body .gg-menu a,
html body nav .gg-menu a {
  padding:4px 0 !important;
}

body:not(.home) .gg-page-hero,
.gg-page-hero {
  width:100% !important;
  max-width:100% !important;
  height:450px !important;
  min-height:450px !important;
  margin:0 !important;
  padding:115px 6vw 55px !important;
  box-sizing:border-box !important;
  border:0 !important;
  box-shadow:none !important;
  background-color:#000 !important;
  background-image:
    linear-gradient(90deg,
      rgba(0,0,0,.88) 0%,
      rgba(0,0,0,.72) 15%,
      rgba(0,0,0,.44) 32%,
      rgba(0,0,0,.16) 50%,
      rgba(0,0,0,0) 64%),
    url("../img/gridgirls-page-hero-bg-099.jpg") !important;
  background-size:100% 100% !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  overflow:hidden !important;
}

body:not(.home) .gg-page-hero::before,
body:not(.home) .gg-page-hero::after,
.gg-page-hero::before,
.gg-page-hero::after {
  display:none !important;
  content:none !important;
  height:0 !important;
  background:none !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Bereich unter dem Headerbild: final reduziert */
body:not(.home) .gg-page-hero + .gg-section,
.gg-page-hero + .gg-section,
body:not(.home) .gg-page-hero + section,
.gg-page-hero + section,
body:not(.home) .gg-page-hero + main,
.gg-page-hero + main,
body:not(.home) .gg-page-hero + .gg-content,
.gg-page-hero + .gg-content,
body:not(.home) .gg-page-hero + .gg-main,
.gg-page-hero + .gg-main {
  padding-top:30px !important;
}

@media (max-width:1024px){
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    height:430px !important;
    min-height:430px !important;
    padding-top:105px !important;
    padding-bottom:48px !important;
  }
}

@media (max-width:760px){
  html body .gg-menu,
  html body nav .gg-menu {
    font-size:13px !important;
    gap:14px !important;
  }

  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    height:340px !important;
    min-height:340px !important;
    padding-top:88px !important;
    padding-bottom:34px !important;
  }

  body:not(.home) .gg-page-hero + .gg-section,
  .gg-page-hero + .gg-section,
  body:not(.home) .gg-page-hero + section,
  .gg-page-hero + section,
  body:not(.home) .gg-page-hero + main,
  .gg-page-hero + main,
  body:not(.home) .gg-page-hero + .gg-content,
  .gg-page-hero + .gg-content,
  body:not(.home) .gg-page-hero + .gg-main,
  .gg-page-hero + .gg-main {
    padding-top:12px !important;
  }
}
/* GRIDGIRLS FINAL CLEAN HEADER PATCH 323 END */

/* GRIDGIRLS MOBILE VIDEO 2COL PATCH 327 START
   iPhone/Mobil: Video-/Kategorie-Karten auf der Startseite 2 pro Zeile. */
@media (max-width: 760px) {
  body.home .gg-cats,
  body.home .gg-video-grid,
  body.home .gg-post-grid,
  body.home .gg-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body.home .gg-cats-intro,
  body.home .gg-section-head {
    grid-column: 1 / -1 !important;
  }

  body.home .gg-card,
  body.home .gg-post-card,
  body.home .gg-video-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 250px !important;
    box-sizing: border-box !important;
  }

  body.home .gg-card video,
  body.home .gg-card .gg-card-video,
  body.home .gg-post-card video,
  body.home .gg-video-card video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body.home .gg-card h3,
  body.home .gg-post-card h3,
  body.home .gg-video-card h3 {
    font-size: clamp(19px, 5.4vw, 26px) !important;
    line-height: 1.02 !important;
  }
}

@media (max-width: 390px) {
  body.home .gg-cats,
  body.home .gg-video-grid,
  body.home .gg-post-grid,
  body.home .gg-grid {
    gap: 12px !important;
  }

  body.home .gg-card,
  body.home .gg-post-card,
  body.home .gg-video-card {
    min-height: 220px !important;
  }

  body.home .gg-card h3,
  body.home .gg-post-card h3,
  body.home .gg-video-card h3 {
    font-size: clamp(17px, 5vw, 22px) !important;
  }
}
/* GRIDGIRLS MOBILE VIDEO 2COL PATCH 327 END */

/* GRIDGIRLS MOBILE HERO IMAGE PATCH 328 START
   Mobil/iPhone: Headerbild nicht mehr verzerren.
   Desktop bleibt unverändert. */
@media (max-width: 760px) {
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    height: 340px !important;
    min-height: 340px !important;
    padding-top: 88px !important;
    padding-bottom: 34px !important;

    /* Wichtig: nicht 100% 100%, sonst wird das 1920x450 Bild auf iPhone gestaucht. */
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  body:not(.home) .gg-page-hero h1,
  .gg-page-hero h1 {
    font-size: 34px !important;
    line-height: 1.02 !important;
    max-width: 92vw !important;
  }

  body:not(.home) .gg-page-hero p,
  .gg-page-hero p {
    font-size: 15px !important;
    line-height: 1.45 !important;
    max-width: 92vw !important;
  }
}

@media (max-width: 390px) {
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    height: 330px !important;
    min-height: 330px !important;
    background-size: auto 100% !important;
    background-position: center center !important;
  }
}
/* GRIDGIRLS MOBILE HERO IMAGE PATCH 328 END */

/* GRIDGIRLS IPAD HAMBURGER PATCH 329 START
   iPad / Tablet im Querformat: Hamburger-Menü statt zweizeiliger Navigation.
   Desktop bleibt normal, iPhone bleibt Hamburger. */

/* iPad Safari meldet oft eine große Breite, aber pointer: coarse. */
@media (max-width: 1400px) and (pointer: coarse), (max-width: 1180px) {
  html body .gg-nav,
  html body nav.gg-nav {
    display: grid !important;
    grid-template-columns: auto 52px !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 14px 4vw !important;
  }

  html body .gg-logo {
    min-width: 0 !important;
  }

  html body .gg-mobile-note {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 46px !important;
    min-width: 52px !important;
    min-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    justify-self: end !important;
    position: relative !important;
    z-index: 200 !important;
  }

  html body .gg-mobile-note::before,
  html body .gg-mobile-note::after {
    content: "" !important;
    position: absolute !important;
    left: 8px !important;
    right: 8px !important;
    height: 3px !important;
    background: #fff !important;
    border-radius: 3px !important;
    transition: transform .2s ease, top .2s ease, bottom .2s ease, opacity .2s ease !important;
  }

  html body .gg-mobile-note::before {
    top: 12px !important;
    box-shadow: 0 10px 0 #fff !important;
  }

  html body .gg-mobile-note::after {
    bottom: 11px !important;
  }

  html body .gg-nav.is-open .gg-mobile-note::before {
    top: 21px !important;
    transform: rotate(45deg) !important;
    box-shadow: none !important;
    background: #e30613 !important;
  }

  html body .gg-nav.is-open .gg-mobile-note::after {
    bottom: 22px !important;
    transform: rotate(-45deg) !important;
    background: #e30613 !important;
  }

  html body .gg-menu,
  html body nav .gg-menu {
    display: none !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 0 0 !important;
    margin: 0 !important;
    gap: 10px !important;
  }

  html body .gg-nav.is-open .gg-menu,
  html body nav.gg-nav.is-open .gg-menu {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  html body .gg-menu a,
  html body nav .gg-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    background: rgba(255,255,255,.035) !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

/* iPhone: 2 Spalten im geöffneten Menü. */
@media (max-width: 760px) {
  html body .gg-nav.is-open .gg-menu,
  html body nav.gg-nav.is-open .gg-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .gg-menu a,
  html body nav .gg-menu a {
    font-size: 12px !important;
    min-height: 40px !important;
  }
}
/* GRIDGIRLS IPAD HAMBURGER PATCH 329 END */

/* GRIDGIRLS IPAD HERO PROPORTION PATCH 330 START
   iPad / Tablet: Headerbild nicht verzerren.
   Desktop bleibt unverändert. */
@media (min-width: 761px) and (max-width: 1400px) and (pointer: coarse),
       (min-width: 761px) and (max-width: 1180px) {
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    height: 450px !important;
    min-height: 450px !important;
    padding-top: 115px !important;
    padding-bottom: 55px !important;

    /* Wichtig: nicht 100% 100%, sonst wird das 1920x450 Bild auf iPad verzerrt. */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}

/* iPad quer etwas breiter zeigen: mehr vom ganzen Bild, aber ohne Verzerrung. */
@media (min-width: 1000px) and (max-width: 1400px) and (pointer: coarse) {
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    background-size: cover !important;
    background-position: center center !important;
  }
}

/* iPhone bleibt proportional wie Patch 328. */
@media (max-width: 760px) {
  body:not(.home) .gg-page-hero,
  .gg-page-hero {
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }
}
/* GRIDGIRLS IPAD HERO PROPORTION PATCH 330 END */

/* GRIDGIRLS MOBILE GALLERY NOCLICK PATCH 331 START
   Mobil/iPhone: Galerie-Bilder nicht anklickbar, damit kein großes Bild geöffnet wird.
   Desktop bleibt unverändert. */
@media (max-width: 760px) {
  .gg-gallery-real .gg-photo,
  .gg-gallery-built .gg-photo,
  .gg-gallery-exact .gg-photo,
  .gg-gallery-manifest .gg-photo,
  .gg-photo-grid a.gg-photo,
  .gg-gallery-detail a[href$=".jpg"],
  .gg-gallery-detail a[href$=".jpeg"],
  .gg-gallery-detail a[href$=".png"],
  .gg-gallery-detail a[href$=".webp"],
  .gg-red-gallery a[href$=".jpg"],
  .gg-red-gallery a[href$=".jpeg"],
  .gg-red-gallery a[href$=".png"],
  .gg-red-gallery a[href$=".webp"],
  .gg-preview-gallery a[href$=".jpg"],
  .gg-preview-gallery a[href$=".jpeg"],
  .gg-preview-gallery a[href$=".png"],
  .gg-preview-gallery a[href$=".webp"],
  .gg-detail-gallery a[href$=".jpg"],
  .gg-detail-gallery a[href$=".jpeg"],
  .gg-detail-gallery a[href$=".png"],
  .gg-detail-gallery a[href$=".webp"] {
    pointer-events: none !important;
    cursor: default !important;
  }

  .gg-gallery-real .gg-photo img,
  .gg-gallery-built .gg-photo img,
  .gg-gallery-exact .gg-photo img,
  .gg-gallery-manifest .gg-photo img,
  .gg-photo-grid a.gg-photo img {
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }
}
/* GRIDGIRLS MOBILE GALLERY NOCLICK PATCH 331 END */
