.cge-custom-gallery{
  --cge-gap: 4px;
  --cge-radius: 6px;
  --cge-mobile-main-height: 220px;
  --cge-mobile-secondary-height: 110px;
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  height:min(540px, 62vw);
  max-height:540px;
  grid-template-rows: repeat(2, minmax(180px, 1fr));
  gap: var(--cge-gap);
  overflow: hidden;
  border-radius: var(--cge-radius);
}
.cge-custom-gallery__item{
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  background: #f3f3f3;
  border:0;
  padding:0;
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
}
.cge-custom-gallery__item--main{ grid-column: 1 / 2; grid-row: 1 / 3; }
.cge-custom-gallery__item--two{ grid-column: 2 / 3; grid-row: 1 / 2; }
.cge-custom-gallery__item--three{ grid-column: 2 / 3; grid-row: 2 / 3; }
.cge-custom-gallery__image{ display:block; width:100%; height:100%; object-fit:cover; }
.cge-custom-gallery__more{
  position:absolute; right:12px; bottom:12px; z-index:3; border:0; border-radius:99px;
  background:var(--e-global-color-kadence1); color:#ffffff; padding:8px 16px; font-family:'Gotham', Sans-serif; font-size:14px; font-weight:500; line-height:1.2;
  cursor:pointer; box-shadow:none; display:inline-flex; align-items:center; gap:8px;
}
.cge-custom-gallery__more-icon{ display:inline-flex; align-items:center; justify-content:center; width:16px; height:16px; flex:0 0 16px; }
.cge-custom-gallery__more-icon svg{ display:block; width:16px; height:16px; fill:currentColor; }
.cge-custom-gallery__more-text{ display:inline-block; }
.cge-custom-gallery__overlay{
  position:fixed; inset:0; z-index:999999; background:rgba(0,0,0,.92); display:none;
  align-items:center; justify-content:center;
}
.cge-custom-gallery__overlay.is-open{ display:flex; }
.cge-custom-gallery__overlay-inner{
  position:relative; width:min(1200px, calc(100vw - 32px)); height:min(90vh, 900px);
  display:flex; align-items:center; justify-content:center;
}
.cge-custom-gallery__slider{
  position:relative; width:100%; height:100%; overflow:hidden; touch-action:pan-y pinch-zoom; cursor:grab;
}
.cge-custom-gallery__slider.is-dragging{ cursor:grabbing; }
.cge-custom-gallery__slider-track{
  display:flex; height:100%; transition:transform .35s ease; will-change:transform;
}
.cge-custom-gallery__slider.is-dragging .cge-custom-gallery__slider-track{ transition:none; }
.cge-custom-gallery__slide{
  flex:0 0 100%; display:flex; align-items:center; justify-content:center; min-width:0; height:100%;
}
.cge-custom-gallery__slide-image{
  max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain;
  pointer-events:none; user-select:none; -webkit-user-drag:none;
}
.cge-custom-gallery__close,
.cge-custom-gallery__prev,
.cge-custom-gallery__next,
.cge-custom-gallery__counter{ position:absolute; z-index:2; }
.cge-custom-gallery__close,
.cge-custom-gallery__prev,
.cge-custom-gallery__next{ border:0!important; outline:0!important; background:transparent!important; color:#fff; cursor:pointer; border-radius:0; box-shadow:none!important; appearance:none; -webkit-appearance:none; -webkit-tap-highlight-color:transparent; }
.cge-custom-gallery__more:hover,
.cge-custom-gallery__more:focus,
.cge-custom-gallery__more:focus-visible{ background:var(--e-global-color-kadence2); color:#ffffff; }
.cge-custom-gallery__close:hover,
.cge-custom-gallery__close:focus,
.cge-custom-gallery__close:focus-visible,
.cge-custom-gallery__close:active,
.cge-custom-gallery__prev:hover,
.cge-custom-gallery__prev:focus,
.cge-custom-gallery__prev:focus-visible,
.cge-custom-gallery__prev:active,
.cge-custom-gallery__next:hover,
.cge-custom-gallery__next:focus,
.cge-custom-gallery__next:focus-visible,
.cge-custom-gallery__next:active{ background:transparent!important; color:#ffffff; box-shadow:none!important; border:0!important; outline:0!important; }
.cge-custom-gallery__close{ top:12px; right:12px; width:56px; height:56px; font-size:38px; line-height:1; }
.cge-custom-gallery__prev,
.cge-custom-gallery__next{ top:50%; transform:translateY(-50%); width:64px; height:64px; font-size:52px; line-height:1; }
.cge-custom-gallery__prev{ left:12px; }
.cge-custom-gallery__next{ right:12px; }
.cge-custom-gallery__counter{ left:50%; transform:translateX(-50%); bottom:12px; color:#fff; background:rgba(0,0,0,.35); border-radius:8px; padding:8px 10px; font-size:13px; text-align:center; min-width:72px; }
@media (max-width:767px){
  .cge-custom-gallery{ height:auto; max-height:none; grid-template-columns:1fr 1fr; grid-template-rows:var(--cge-mobile-main-height) var(--cge-mobile-secondary-height); }
  .cge-custom-gallery__item--main{ grid-column:1 / 3; grid-row:1 / 2; }
  .cge-custom-gallery__item--two{ grid-column:1 / 2; grid-row:2 / 3; }
  .cge-custom-gallery__item--three{ grid-column:2 / 3; grid-row:2 / 3; }
}
