/* PDP Junior gallery/news page — carousel edition */
#gallery.gallery-news-section{
  min-height:calc(100vh - 78px);
  padding:122px 0 86px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:
    radial-gradient(circle at 10% 6%,rgba(0,224,239,.16),transparent 26%),
    radial-gradient(circle at 92% 16%,rgba(0,199,135,.12),transparent 26%),
    linear-gradient(180deg,#f9feff 0%,#f2fcfd 48%,#fff 100%);
}
#gallery.gallery-news-section::before,
#gallery.gallery-news-section::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:999px;
  pointer-events:none;
}
#gallery.gallery-news-section::before{
  width:260px;
  height:260px;
  right:-110px;
  top:300px;
  background:rgba(0,224,239,.08);
}
#gallery.gallery-news-section::after{
  width:220px;
  height:220px;
  left:-100px;
  bottom:70px;
  background:rgba(255,194,71,.10);
}
.gallery-news-shell{width:min(1240px,100%);margin:0 auto}
.gallery-news-head{margin-bottom:24px}
.gallery-news-head .stitle{font-size:clamp(2rem,4vw,3.15rem)}
.gallery-news-head .ssub{max-width:740px;font-size:1rem;line-height:1.75}

.gallery-news-carousel{position:relative}
.gallery-news-viewport{
  position:relative;
  overflow:hidden;
  padding:16px 62px 18px;
  --edge-bg:#f4fcfd;
}
.gallery-news-grid{
  display:flex !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:max-content !important;
  max-width:none !important;
  margin:0 !important;
  padding:8px 0 14px !important;
  gap:24px !important;
  overflow:visible !important;
  transform:translate3d(0,0,0);
  transition:transform .62s cubic-bezier(.22,1,.36,1);
  will-change:transform;
}
.gallery-news-grid::before,
.gallery-news-grid::after{content:none !important}
.gallery-news-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:28px;
  border:1px solid rgba(0,41,48,.09);
  background:#fff;
  box-shadow:0 16px 44px rgba(0,41,48,.09);
  transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
  cursor:pointer;
}
.gallery-news-card:hover,
.gallery-news-card:focus-visible{
  transform:translateY(-7px);
  border-color:rgba(0,200,215,.42);
  box-shadow:0 26px 64px rgba(0,151,165,.16);
  outline:none;
}
.gallery-news-card.is-featured{
  transform:translateY(-4px);
  border-color:rgba(0,200,215,.24);
  box-shadow:0 24px 60px rgba(0,41,48,.14),0 0 0 5px rgba(0,224,239,.06);
}
.gallery-news-media{
  position:relative;
  height:218px;
  overflow:hidden;
  background:var(--news-media-bg,linear-gradient(135deg,#e3fcff,#dffaf1));
}
.gallery-news-media::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:45%;
  background:linear-gradient(180deg,transparent,rgba(0,41,48,.24));
  pointer-events:none;
}
.gallery-news-media img,
.gallery-news-media video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .45s ease;
}
.gallery-news-media img.is-contain,
.gallery-news-media video.is-contain{
  object-fit:contain;
  padding:24px;
  filter:drop-shadow(0 16px 22px rgba(0,41,48,.14));
}
.gallery-news-card:hover .gallery-news-media img,
.gallery-news-card:hover .gallery-news-media video{transform:scale(1.045)}
.gallery-news-category{
  position:absolute;
  z-index:2;
  top:16px;
  left:16px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 32px);
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#064d57;
  box-shadow:0 8px 22px rgba(0,41,48,.14);
  font-size:.74rem;
  line-height:1;
  font-weight:900;
  letter-spacing:.02em;
}
.gallery-news-date{
  position:absolute;
  z-index:2;
  right:16px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(0,41,48,.82);
  color:#fff;
  font-size:.72rem;
  font-weight:850;
  backdrop-filter:blur(8px);
}
.gallery-news-body{display:flex;flex-direction:column;flex:1;padding:22px 22px 20px}
.gallery-news-title{font-family:var(--fh);font-size:1.22rem;line-height:1.28;color:#082e36;margin:0 0 10px;letter-spacing:-.025em}
.gallery-news-description{color:#557078;font-size:.88rem;font-weight:650;line-height:1.72;margin:0 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.gallery-news-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid rgba(0,41,48,.07)}
.gallery-news-meta{display:flex;align-items:center;gap:7px;color:#6b858c;font-size:.76rem;font-weight:800}
.gallery-news-more{
  appearance:none;
  border:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 13px;
  border-radius:999px;
  background:#e6fbfd;
  color:#007b87;
  font-family:var(--fb);
  font-size:.76rem;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease;
}
.gallery-news-more:hover,.gallery-news-more:focus-visible{background:#cef7fa;transform:translateX(2px);outline:none}
.gallery-news-empty{width:100%;text-align:center;padding:60px 20px;color:#557078;font-weight:800}

.gallery-news-pagination-scroll{
  display:flex;
  justify-content:center;
  margin-top:10px;
}
.gallery-news-dots{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.gallery-news-dots button{
  appearance:none;
  border:0;
  padding:0;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#c7e4e8;
  cursor:pointer;
  transition:width .22s ease,background .22s ease,transform .22s ease;
}
.gallery-news-dots button.active{width:28px;background:linear-gradient(90deg,#00c8d7,#00c787);transform:scale(1.02)}
.gallery-news-dots button:focus-visible{outline:2px solid #00b9c8;outline-offset:3px}

.gallery-news-carousel.is-static .showcase-arrow{display:none}
.gallery-news-viewport .showcase-arrow{top:50%}
.gallery-news-viewport .showcase-fade{display:none !important}

.gallery-news-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:5000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(0,28,34,.62);
  backdrop-filter:blur(8px);
}
.gallery-news-modal-backdrop.open{display:flex}
.gallery-news-modal{
  width:min(980px,100%);
  max-height:min(800px,92vh);
  overflow:auto;
  border-radius:30px;
  background:#fff;
  color:#082e36;
  box-shadow:0 32px 90px rgba(0,0,0,.3);
  position:relative;
}
.gallery-news-modal-body{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(290px,.92fr);min-height:100%}
.gallery-news-modal-stage-wrap{padding:24px 20px 20px;border-right:1px solid rgba(0,41,48,.08)}
.gallery-news-modal-media-stage{
  position:relative;
  min-height:410px;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(135deg,#e3fcff,#dffaf1);
}
.gallery-news-modal-media-stage img,
.gallery-news-modal-media-stage video,
.gallery-news-modal-media-stage iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
  object-fit:cover;
}
.gallery-news-modal-media-stage img.is-contain,
.gallery-news-modal-media-stage video.is-contain{object-fit:contain;padding:28px}
.gallery-news-modal-media-stage iframe{min-height:410px;background:#000}
.gallery-news-modal-media-nav{
  position:absolute;
  inset:50% 14px auto 14px;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
  pointer-events:none;
}
.gallery-news-modal-media-nav button{
  pointer-events:auto;
  appearance:none;
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:rgba(0,41,48,.78);
  color:#fff;
  font-size:1.5rem;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
}
.gallery-news-modal-media-nav button:disabled{opacity:.35;cursor:not-allowed}
.gallery-news-modal-thumbs{
  display:flex;
  gap:10px;
  margin-top:14px;
  overflow:auto;
  padding-bottom:2px;
}
.gallery-news-modal-thumbs::-webkit-scrollbar{height:6px}
.gallery-news-modal-thumbs::-webkit-scrollbar-thumb{background:rgba(0,41,48,.15);border-radius:999px}
.gallery-news-modal-thumb{
  flex:0 0 90px;
  width:90px;
  height:72px;
  border-radius:16px;
  overflow:hidden;
  border:2px solid transparent;
  background:#eff7f8;
  cursor:pointer;
  position:relative;
}
.gallery-news-modal-thumb.active{border-color:#00c8d7;box-shadow:0 0 0 4px rgba(0,200,215,.10)}
.gallery-news-modal-thumb img,
.gallery-news-modal-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.gallery-news-modal-thumb span{
  position:absolute;
  right:8px;
  bottom:8px;
  width:24px;
  height:24px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(0,41,48,.76);
  color:#fff;
  font-size:.86rem;
}
.gallery-news-modal-content{padding:28px 26px 28px 22px;display:flex;flex-direction:column}
.gallery-news-modal-content h2{font-family:var(--fh);font-size:1.85rem;line-height:1.14;margin:12px 0 14px}
.gallery-news-modal-content p{font-size:.96rem;font-weight:650;line-height:1.8;color:#557078;margin:0 0 18px}
.gallery-news-modal-close{
  position:absolute;
  z-index:4;
  right:16px;
  top:16px;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:rgba(0,41,48,.84);
  color:#fff;
  font-size:1.2rem;
  font-weight:900;
  cursor:pointer;
}
.gallery-news-modal-kicker{display:flex;flex-wrap:wrap;gap:8px;color:#007b87;font-size:.78rem;font-weight:900}
.gallery-news-modal-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:16px}
.gallery-news-modal-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  background:#eef7f8;
  color:#46676f;
  font-size:.83rem;
  font-weight:850;
  border:1px solid rgba(0,41,48,.08);
}

body.kt-theme-dark #gallery.gallery-news-section{
  background:
    radial-gradient(circle at 10% 6%,rgba(0,224,239,.12),transparent 27%),
    radial-gradient(circle at 92% 16%,rgba(0,199,135,.09),transparent 27%),
    linear-gradient(180deg,#071f25 0%,#09272e 52%,#071f25 100%);
}
body.kt-theme-dark .gallery-news-head .stitle{color:#f0fdff}
body.kt-theme-dark .gallery-news-head .ssub,
body.kt-theme-dark .gallery-news-description,
body.kt-theme-dark .gallery-news-meta,
body.kt-theme-dark .gallery-news-modal-content p{color:#aecbd0}
body.kt-theme-dark .gallery-news-card,
body.kt-theme-dark .gallery-news-modal{background:#0d3038;color:#eafcfd;border-color:rgba(255,255,255,.09);box-shadow:0 18px 46px rgba(0,0,0,.22)}
body.kt-theme-dark .gallery-news-card.is-featured{box-shadow:0 24px 56px rgba(0,0,0,.24),0 0 0 4px rgba(124,243,255,.08)}
body.kt-theme-dark .gallery-news-title,
body.kt-theme-dark .gallery-news-modal-content h2{color:#effdff}
body.kt-theme-dark .gallery-news-footer,
body.kt-theme-dark .gallery-news-modal-stage-wrap{border-color:rgba(255,255,255,.08)}
body.kt-theme-dark .gallery-news-more{background:#123e47;color:#80f5ff}
body.kt-theme-dark .gallery-news-more:hover{background:#174a55}
body.kt-theme-dark .gallery-news-category{background:rgba(7,31,37,.9);color:#dffcff;border:1px solid rgba(255,255,255,.08)}
body.kt-theme-dark .gallery-news-date{background:rgba(7,31,37,.9)}
body.kt-theme-dark .gallery-news-dots button{background:#31565e}
body.kt-theme-dark .gallery-news-dots button.active{background:linear-gradient(90deg,#00d2e0,#0bcf88)}
body.kt-theme-dark .gallery-news-modal-close,
body.kt-theme-dark .gallery-news-modal-media-nav button{background:rgba(255,255,255,.12)}
body.kt-theme-dark .gallery-news-modal-chip{background:#123941;color:#d9f5f8;border-color:rgba(255,255,255,.08)}
body.kt-theme-dark .gallery-news-modal-thumb{background:#153942}
body.kt-theme-dark .gallery-news-modal-thumb.active{box-shadow:0 0 0 4px rgba(124,243,255,.12)}
body.kt-theme-dark .gallery-news-viewport{--edge-bg:#08262d}

@media(max-width:1100px){
  .gallery-news-viewport{padding-inline:54px}
}
@media(max-width:920px){
  #gallery.gallery-news-section{padding-top:106px}
  .gallery-news-viewport{padding-inline:40px}
  .gallery-news-modal-body{grid-template-columns:1fr}
  .gallery-news-modal-stage-wrap{border-right:0;border-bottom:1px solid rgba(0,41,48,.08)}
  .gallery-news-modal-content{padding:24px 22px 24px}
}
@media(max-width:760px){
  #gallery.gallery-news-section{padding:96px 4.5% 64px}
  .gallery-news-head{margin-bottom:18px}
  .gallery-news-head .ssub{font-size:.92rem}
  .gallery-news-viewport{padding:12px 28px 14px}
  .gallery-news-grid{gap:16px !important}
  .gallery-news-card{border-radius:24px}
  .gallery-news-media{height:202px}
  .gallery-news-body{padding:18px 18px 17px}
  .gallery-news-title{font-size:1.08rem}
  .gallery-news-description{font-size:.84rem;line-height:1.62;-webkit-line-clamp:4}
  .gallery-news-viewport .showcase-arrow{width:42px;height:42px;border-radius:14px}
  .gallery-news-viewport .showcase-arrow span{font-size:1.6rem}
  .gallery-news-viewport .showcase-arrow-prev{left:0}
  .gallery-news-viewport .showcase-arrow-next{right:0}
  .gallery-news-pagination-scroll{margin-top:2px}
  .gallery-news-modal-backdrop{padding:10px}
  .gallery-news-modal{border-radius:24px}
  .gallery-news-modal-stage-wrap{padding:16px 14px 14px}
  .gallery-news-modal-media-stage,
  .gallery-news-modal-media-stage iframe{min-height:250px}
  .gallery-news-modal-content{padding:20px 16px 18px}
  .gallery-news-modal-content h2{font-size:1.46rem}
}
@media(max-width:520px){
  .gallery-news-shell{width:100%}
  .gallery-news-viewport{padding:10px 20px 12px}
  .gallery-news-grid{gap:14px !important}
  .gallery-news-card{border-radius:22px}
  .gallery-news-media{height:190px}
  .gallery-news-category{top:12px;left:12px;font-size:.69rem;padding:7px 10px}
  .gallery-news-date{right:12px;bottom:12px;font-size:.68rem;padding:6px 10px}
  .gallery-news-body{padding:16px 15px 16px}
  .gallery-news-title{font-size:1rem}
  .gallery-news-more{padding:8px 12px;font-size:.72rem}
  .gallery-news-meta{font-size:.72rem}
  .gallery-news-dots{gap:7px}
  .gallery-news-dots button.active{width:24px}
  .gallery-news-viewport .showcase-arrow{width:38px;height:38px;border-radius:13px}
  .gallery-news-viewport .showcase-arrow span{font-size:1.45rem}
  .gallery-news-modal-thumbs{gap:8px}
  .gallery-news-modal-thumb{flex-basis:76px;width:76px;height:62px;border-radius:14px}
}


/* v25 gallery visual/layout fixes */
.gallery-news-head .stitle span{
  background:linear-gradient(135deg,#00d4e2 0%,#0aa6b4 45%,#11c789 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
body.kt-theme-dark .gallery-news-head .stitle span{
  background:linear-gradient(135deg,#4ae8f2 0%,#16c7d7 42%,#23da9e 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.gallery-news-card{
  min-height:520px;
}
.gallery-news-media{
  height:auto;
  aspect-ratio: 16 / 9;
}
.gallery-news-media img,
.gallery-news-media video{object-position:center center}
.gallery-news-grid{align-items:stretch !important}
.gallery-news-card .gallery-news-body{min-height:0}
.gallery-news-card .gallery-news-description{min-height:92px}
.gallery-news-card .gallery-news-title{
  min-height:3.05em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.gallery-news-viewport{padding-inline:36px}
.gallery-news-viewport .showcase-arrow-prev{left:2px}
.gallery-news-viewport .showcase-arrow-next{right:2px}
.gallery-news-pagination-scroll{margin-top:4px}

.gallery-news-modal{
  width:min(1120px,100%);
}
.gallery-news-modal-body{
  grid-template-columns:minmax(0,0.96fr) minmax(320px,0.74fr);
  align-items:start;
}
.gallery-news-modal-stage-wrap{
  padding:22px 18px 18px;
}
.gallery-news-modal-media-stage{
  min-height:auto;
  aspect-ratio: 4 / 3;
  max-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gallery-news-modal-media-stage img,
.gallery-news-modal-media-stage video,
.gallery-news-modal-media-stage iframe{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}
.gallery-news-modal-media-stage iframe{background:#0b1720}
.gallery-news-modal-content{
  padding:26px 24px 26px 20px;
  min-height:100%;
}
.gallery-news-modal-content p{
  font-size:.95rem;
  line-height:1.78;
  max-width:34ch;
}
.gallery-news-modal-thumbs{margin-top:12px}
.gallery-news-modal-thumb{flex:0 0 86px;width:86px;height:64px}
.gallery-news-modal-close{
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.gallery-news-modal-stage-click{
  position:absolute;
  right:14px;
  bottom:14px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:0;
  border-radius:999px;
  background:rgba(0,41,48,.76);
  color:#fff;
  font-family:var(--fb);
  font-size:.78rem;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
.gallery-news-lightbox{
  position:fixed;
  inset:0;
  z-index:6100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:rgba(0,17,22,.88);
  backdrop-filter:blur(8px);
}
.gallery-news-lightbox.open{display:flex}
.gallery-news-lightbox-inner{
  position:relative;
  width:min(1180px,100%);
  max-height:92vh;
  border-radius:26px;
  overflow:hidden;
  background:#071f25;
  box-shadow:0 28px 90px rgba(0,0,0,.36);
}
.gallery-news-lightbox-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:78vh;
  max-height:92vh;
  background:#071f25;
}
.gallery-news-lightbox-stage img,
.gallery-news-lightbox-stage video,
.gallery-news-lightbox-stage iframe{
  display:block;
  width:100%;
  height:100%;
  max-height:92vh;
  object-fit:contain;
  background:#071f25;
  border:0;
}
.gallery-news-lightbox-close{
  position:absolute;
  top:16px;
  right:16px;
  z-index:5;
  width:46px;
  height:46px;
  border:0;
  border-radius:15px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:1.25rem;
  font-weight:900;
  cursor:pointer;
}
.gallery-news-lightbox-nav{
  position:absolute;
  inset:50% 16px auto 16px;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
  pointer-events:none;
}
.gallery-news-lightbox-nav button{
  pointer-events:auto;
  width:48px;
  height:48px;
  border:0;
  border-radius:16px;
  background:rgba(255,255,255,.13);
  color:#fff;
  font-size:1.6rem;
  cursor:pointer;
}
.gallery-news-lightbox-nav button:disabled{opacity:.35;cursor:not-allowed}
.gallery-news-lightbox-caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  padding:12px 16px;
  border-radius:18px;
  background:rgba(3,24,30,.72);
  color:#f3fdff;
  font-weight:800;
  backdrop-filter:blur(8px);
}
.gallery-news-lightbox-caption span:last-child{opacity:.84;font-size:.82rem}
body.kt-theme-dark .gallery-news-modal-content p{max-width:34ch}
body.kt-theme-dark .gallery-news-lightbox-inner,
body.kt-theme-dark .gallery-news-lightbox-stage{background:#051a20}
body.kt-theme-dark .gallery-news-modal-stage-click{background:rgba(255,255,255,.12)}

@media(max-width:1100px){
  .gallery-news-card{min-height:500px}
  .gallery-news-modal{width:min(1020px,100%)}
  .gallery-news-modal-body{grid-template-columns:minmax(0,1fr) minmax(290px,.78fr)}
}
@media(max-width:920px){
  .gallery-news-card{min-height:0}
  .gallery-news-modal-media-stage{max-height:none; aspect-ratio:16/10}
  .gallery-news-modal-content p{max-width:none}
}
@media(max-width:760px){
  .gallery-news-head .stitle{font-size:clamp(1.9rem,9vw,2.55rem)}
  .gallery-news-viewport{padding-inline:14px}
  .gallery-news-grid{gap:12px !important}
  .gallery-news-card{min-height:auto}
  .gallery-news-card .gallery-news-title{min-height:auto; -webkit-line-clamp:unset; display:block}
  .gallery-news-card .gallery-news-description{min-height:auto}
  .gallery-news-media{aspect-ratio:16/10}
  .gallery-news-viewport .showcase-arrow{top:44%; width:40px; height:40px}
  .gallery-news-viewport .showcase-arrow-prev{left:6px}
  .gallery-news-viewport .showcase-arrow-next{right:6px}
  .gallery-news-modal-body{grid-template-columns:1fr}
  .gallery-news-modal-stage-wrap{padding:14px 14px 12px}
  .gallery-news-modal-media-stage{aspect-ratio:16/10; border-radius:20px}
  .gallery-news-modal-content{padding:16px 16px 18px}
  .gallery-news-modal-content h2{font-size:1.34rem}
  .gallery-news-modal-stage-click{right:10px; bottom:10px; padding:8px 12px; font-size:.72rem}
  .gallery-news-lightbox{padding:10px}
  .gallery-news-lightbox-inner{border-radius:18px}
  .gallery-news-lightbox-stage{min-height:64vh}
  .gallery-news-lightbox-nav button{width:42px; height:42px; border-radius:14px}
  .gallery-news-lightbox-caption{left:10px; right:10px; bottom:10px; padding:10px 12px; font-size:.82rem}
}
@media(max-width:520px){
  .gallery-news-head .stitle{line-height:1.05}
  .gallery-news-viewport{padding:8px 8px 12px}
  .gallery-news-grid{gap:10px !important}
  .gallery-news-card{border-radius:20px}
  .gallery-news-media{aspect-ratio:16/10}
  .gallery-news-body{padding:14px 14px 15px}
  .gallery-news-title{font-size:1rem}
  .gallery-news-description{font-size:.82rem; line-height:1.58}
  .gallery-news-footer{padding-top:14px}
  .gallery-news-viewport .showcase-arrow{width:38px;height:38px; top:42%}
  .gallery-news-viewport .showcase-arrow-prev{left:4px}
  .gallery-news-viewport .showcase-arrow-next{right:4px}
  .gallery-news-modal-thumb{flex-basis:72px;width:72px;height:56px}
}


/* v27 modal layout refinement: less empty space + cleaner mobile detail view */
.gallery-news-modal{
  width:min(1080px,100%);
}
.gallery-news-modal-body{
  grid-template-columns:minmax(0,1.02fr) minmax(320px,.88fr)!important;
  gap:0!important;
  align-items:stretch!important;
}
.gallery-news-modal-stage-wrap{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:24px 18px 24px!important;
}
.gallery-news-modal-media-stage{
  width:100%;
  aspect-ratio:16/10!important;
  max-height:none!important;
  min-height:auto!important;
}
.gallery-news-modal-content{
  padding:26px 24px 24px 22px!important;
  justify-content:flex-start!important;
}
.gallery-news-modal-content h2{
  margin:10px 0 12px!important;
}
.gallery-news-modal-content p{
  max-width:none!important;
  margin-bottom:16px!important;
}
.gallery-news-modal-gallery-block{
  margin-top:4px;
  padding:14px;
  border-radius:20px;
  background:linear-gradient(180deg,rgba(0,224,239,.05),rgba(0,199,135,.04));
  border:1px solid rgba(0,41,48,.08);
}
.gallery-news-modal-gallery-label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  color:#0a7884;
  font-size:.8rem;
  font-weight:900;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.gallery-news-modal-gallery-label::before{
  content:"🖼";
  font-size:.95rem;
}
.gallery-news-modal-thumbs-inline{
  margin-top:0!important;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  overflow:visible;
}
.gallery-news-modal-thumbs-inline .gallery-news-modal-thumb{
  flex:0 0 92px;
  width:92px;
  height:72px;
}
.gallery-news-modal-meta{
  margin-top:18px!important;
  padding-top:0!important;
}
body.kt-theme-dark .gallery-news-modal-gallery-block{
  background:linear-gradient(180deg,rgba(124,243,255,.06),rgba(11,207,136,.05));
  border-color:rgba(255,255,255,.09);
}
body.kt-theme-dark .gallery-news-modal-gallery-label{
  color:#8ff7ff;
}

@media(max-width:920px){
  .gallery-news-modal{
    width:min(760px,100%)!important;
  }
  .gallery-news-modal-body{
    grid-template-columns:1fr!important;
  }
  .gallery-news-modal-stage-wrap{
    padding:16px 16px 10px!important;
    border-right:0!important;
    border-bottom:0!important;
  }
  .gallery-news-modal-content{
    padding:12px 16px 18px!important;
  }
  .gallery-news-modal-gallery-block{
    margin-top:8px;
  }
}

@media(max-width:760px){
  .gallery-news-modal-backdrop{
    align-items:flex-end!important;
    padding:0!important;
    background:rgba(0,19,24,.72)!important;
  }
  .gallery-news-modal{
    width:100%!important;
    max-width:none!important;
    max-height:92vh!important;
    border-radius:28px 28px 0 0!important;
    box-shadow:0 -18px 42px rgba(0,0,0,.26)!important;
    overflow:auto!important;
  }
  .gallery-news-modal::before{
    content:"";
    display:block;
    width:64px;
    height:5px;
    border-radius:999px;
    background:rgba(0,41,48,.14);
    margin:12px auto 0;
  }
  body.kt-theme-dark .gallery-news-modal::before{background:rgba(255,255,255,.16)}
  .gallery-news-modal-close{
    top:18px!important;
    right:14px!important;
    width:42px!important;
    height:42px!important;
    border-radius:14px!important;
  }
  .gallery-news-modal-body{
    display:block!important;
  }
  .gallery-news-modal-stage-wrap{
    padding:14px 14px 10px!important;
  }
  .gallery-news-modal-media-stage{
    aspect-ratio:16/9!important;
    border-radius:22px!important;
    box-shadow:0 18px 44px rgba(0,41,48,.12);
  }
  .gallery-news-modal-stage-click{
    right:10px!important;
    bottom:10px!important;
    padding:8px 12px!important;
    font-size:.72rem!important;
  }
  .gallery-news-modal-content{
    margin:0 12px 14px!important;
    padding:16px 14px 18px!important;
    border-radius:22px!important;
    background:linear-gradient(180deg,rgba(0,224,239,.04),rgba(0,199,135,.03));
    border:1px solid rgba(0,41,48,.08);
    box-shadow:0 12px 34px rgba(0,41,48,.07);
  }
  body.kt-theme-dark .gallery-news-modal-content{
    background:linear-gradient(180deg,rgba(124,243,255,.06),rgba(11,207,136,.04));
    border-color:rgba(255,255,255,.08);
    box-shadow:none;
  }
  .gallery-news-modal-kicker{
    font-size:.76rem!important;
    margin-bottom:4px;
  }
  .gallery-news-modal-content h2{
    font-size:1.34rem!important;
    line-height:1.16!important;
    margin:8px 0 10px!important;
  }
  .gallery-news-modal-content p{
    font-size:.92rem!important;
    line-height:1.72!important;
    margin-bottom:12px!important;
  }
  .gallery-news-modal-gallery-block{
    padding:12px!important;
    border-radius:18px!important;
  }
  .gallery-news-modal-thumbs-inline{
    flex-wrap:nowrap;
    overflow:auto;
    padding-bottom:2px;
  }
  .gallery-news-modal-thumbs-inline .gallery-news-modal-thumb{
    flex:0 0 84px!important;
    width:84px!important;
    height:66px!important;
    border-radius:14px!important;
  }
  .gallery-news-modal-meta{
    margin-top:14px!important;
    gap:8px!important;
  }
  .gallery-news-modal-chip{
    font-size:.78rem!important;
    padding:9px 12px!important;
  }
}

@media(max-width:420px){
  .gallery-news-modal-media-stage{
    aspect-ratio:16/10!important;
  }
  .gallery-news-modal-content{
    margin:0 10px 12px!important;
    padding:14px 12px 16px!important;
  }
  .gallery-news-modal-content h2{font-size:1.24rem!important}
  .gallery-news-modal-content p{font-size:.88rem!important}
  .gallery-news-modal-thumbs-inline .gallery-news-modal-thumb{
    flex-basis:78px!important;
    width:78px!important;
    height:62px!important;
  }
}
