.ytgGallery{
  --ytg-blue:#1677ff;
  --ytg-blue2:#0b57d0;
  --ytg-green:#16a34a;
  --ytg-ink:#0b1220;
  --ytg-muted:#647083;
  --ytg-line:rgba(15,23,42,.12);
  --ytg-wrap:1280px;
  padding:70px 0;
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ytg-ink);
  background:
    radial-gradient(circle at 30% 20%, rgba(22,119,255,.10), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(11,87,208,.08), transparent 58%),
    linear-gradient(180deg, #f7f9ff 0%, #f4f6ff 35%, #f7f9ff 100%);
}
.ytgGallery,.ytgGallery *{box-sizing:border-box}
.ytgGallery__wrap{
  width:min(var(--ytg-wrap),calc(100% - 36px));
  margin:0 auto;
}
.ytgGallery__head{
  max-width:760px;
  margin:0 auto 34px;
  text-align:center;
}
.ytgGallery__kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 13px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:999px;
  background:rgba(255,255,255,.68);
  box-shadow:0 18px 60px rgba(2,12,27,.06);
  font-size:12.5px;
  font-weight:500;
}
.ytgGallery__kicker span{
  width:10px;
  height:10px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--ytg-blue),var(--ytg-green));
}
.ytgGallery__head h1{
  margin:14px 0 9px;
  color:rgba(11,18,32,.92);
  font-size:42px;
  line-height:1.1;
  font-weight:700;
  letter-spacing:0;
}
.ytgGallery__head p{
  margin:0 auto;
  max-width:66ch;
  color:rgba(11,18,32,.72);
  font-size:15px;
  line-height:1.7;
}
.ytgGallery__grid{
  display:grid;
  grid-template-columns:repeat(var(--ytg-cols),minmax(0,1fr));
  gap:18px;
}
.ytgGallery__item{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:4/3;
  padding:0;
  border:1px solid rgba(15,23,42,.10);
  border-radius:8px;
  overflow:hidden;
  background:#eef2f7;
  box-shadow:0 18px 55px rgba(2,12,27,.10);
  cursor:pointer;
}
.ytgGallery__item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .28s ease;
}
.ytgGallery__item:hover img{transform:scale(1.04)}
.ytgGallery__overlay{
  position:absolute;
  inset:auto 0 0;
  padding:34px 16px 14px;
  text-align:left;
  color:#fff;
  background:linear-gradient(180deg,transparent,rgba(2,6,23,.76));
}
.ytgGallery__overlay strong{
  display:block;
  font-size:16px;
  font-weight:650;
  line-height:1.2;
}
.ytgGallery__overlay em{
  display:block;
  margin-top:4px;
  font-size:13px;
  font-style:normal;
  line-height:1.35;
  opacity:.86;
}
.ytgGallery__empty{
  padding:28px;
  border:1px dashed rgba(15,23,42,.20);
  border-radius:8px;
  background:rgba(255,255,255,.65);
  text-align:center;
  color:var(--ytg-muted);
}
.ytgLightbox{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:28px 78px;
  background:rgba(2,6,23,.86);
}
.ytgLightbox.is-open{display:flex}
.ytgLightbox__figure{
  margin:0;
  width:min(1080px,100%);
  max-height:86vh;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.ytgLightbox__figure img{
  max-width:100%;
  max-height:76vh;
  border-radius:8px;
  box-shadow:0 28px 90px rgba(0,0,0,.45);
  object-fit:contain;
}
.ytgLightbox__figure figcaption{
  display:none;
  width:100%;
  max-width:900px;
  margin-top:14px;
  text-align:center;
  color:#fff;
}
.ytgLightbox__figure figcaption.is-visible{display:block}
.ytgLightbox__figure strong{
  display:block;
  font-size:18px;
  font-weight:650;
}
.ytgLightbox__figure span{
  display:block;
  margin-top:5px;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.5;
}
.ytgLightbox__close,
.ytgLightbox__nav{
  position:absolute;
  border:0;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(90deg,var(--ytg-blue),var(--ytg-blue2));
  cursor:pointer;
}
.ytgLightbox__close{
  top:22px;
  right:22px;
  width:42px;
  height:42px;
  font-size:28px;
  line-height:1;
}
.ytgLightbox__nav{
  top:50%;
  width:50px;
  height:50px;
  transform:translateY(-50%);
  font-size:22px;
  box-shadow:0 18px 45px rgba(0,0,0,.24);
}
.ytgLightbox__prev{left:22px}
.ytgLightbox__next{right:22px}
body.ytg-lightbox-open{overflow:hidden}

@media (max-width:900px){
  .ytgGallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .ytgGallery{padding:52px 0}
  .ytgGallery__head h1{font-size:31px}
  .ytgGallery__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .ytgGallery__item{
    box-shadow:none;
  }
  .ytgLightbox{
    padding:24px 16px;
  }
  .ytgLightbox__nav{
    top:auto;
    bottom:22px;
    transform:none;
  }
  .ytgLightbox__prev{left:calc(50% - 60px)}
  .ytgLightbox__next{right:calc(50% - 60px)}
}
