/* Fotoğraf & Video Galerisi modern, kompakt public görünüm */

body:not(.wp-admin) .sp-gallery-public-page,
body:not(.wp-admin) .sp-gallery-historic-detail,
body:not(.wp-admin) .spmg-widget,
body:not(.wp-admin) .spmg-gallery{
  --spmg-red:var(--sp-primary,#d71920);
  --spmg-blue:var(--sp-secondary,#123a63);
  --spmg-line:var(--sp-border,#e3e8ef);
  --spmg-surface:var(--sp-surface,#fff);
  --spmg-text:var(--sp-text,#172033);
  --spmg-muted:var(--sp-muted,#667085);
}

/* Galeri ana sayfası */
body:not(.wp-admin) .sp-gallery-public-page .spmg-page-kicker{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin:0 0 3px!important;
  color:var(--spmg-red)!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-page-kicker::before{
  content:"";
  width:17px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--spmg-red),var(--spmg-blue));
}
body:not(.wp-admin) .sp-gallery-public-page .sp-module-owned-head{
  min-height:46px!important;
}
body:not(.wp-admin) .sp-gallery-public-page .sp-module-owned-head h1{
  font-size:clamp(22px,3vw,30px)!important;
  line-height:1.08!important;
}
body:not(.wp-admin) .sp-gallery-public-page .sp-news-like-add{
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  font-size:10px!important;
  font-weight:850!important;
}

body:not(.wp-admin) .sp-gallery-public-page .spmg-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 10px!important;
  border:1px solid var(--spmg-line)!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--spmg-blue) 3%,#fff))!important;
  box-shadow:0 1px 2px rgba(15,23,42,.025)!important;
  overflow:hidden!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  overflow-x:auto!important;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar::-webkit-scrollbar{display:none}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar a{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  min-height:30px!important;
  padding:5px 10px!important;
  border:1px solid var(--spmg-line)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--spmg-text)!important;
  text-decoration:none!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar a:hover{
  transform:translateY(-1px)!important;
  border-color:color-mix(in srgb,var(--spmg-red) 40%,var(--spmg-line))!important;
  color:var(--spmg-red)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar a.is-active{
  border-color:#172033!important;
  background:#172033!important;
  color:#fff!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar .dashicons{
  width:14px!important;height:14px!important;font-size:14px!important;line-height:14px!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-toolbar-note{
  flex:0 0 auto!important;
  color:var(--spmg-muted)!important;
  font-size:9px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
body:not(.wp-admin) .sp-gallery-public-page .sp-page-slider-actions button{
  width:29px!important;height:29px!important;border-radius:8px!important;font-size:19px!important;
}

/* Ana galeri kartları */
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive,
body:not(.wp-admin) .sp-helper-public>.spmg-archive{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  height:100%!important;
  overflow:hidden!important;
  border:1px solid var(--spmg-line)!important;
  border-radius:13px!important;
  background:var(--spmg-surface)!important;
  color:var(--spmg-text)!important;
  text-decoration:none!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card:hover,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card:hover{
  transform:translateY(-2px)!important;
  border-color:color-mix(in srgb,var(--spmg-red) 28%,var(--spmg-line))!important;
  box-shadow:0 9px 24px rgba(15,23,42,.08)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card>.spmg-card-media,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card>.spmg-card-media{
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:4/3!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#eef2f6,#e4e9f0)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card>.spmg-card-media::after,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card>.spmg-card-media::after{
  content:"";
  position:absolute;
  z-index:2;
  inset:auto 0 0;
  height:42%;
  background:linear-gradient(180deg,transparent,rgba(7,13,25,.36));
  pointer-events:none;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-media>img,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-media>img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  transition:transform .28s ease!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card:hover .spmg-card-media>img,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card:hover .spmg-card-media>img{
  transform:scale(1.035)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-type,
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-count,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-type,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-count{
  position:absolute!important;
  z-index:4!important;
  display:inline-flex!important;
  align-items:center!important;
  min-height:21px!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  font-size:8px!important;
  font-weight:900!important;
  line-height:1!important;
  backdrop-filter:blur(7px)!important;
}
body:not(.wp-admin) .spmg-card-type{left:7px!important;top:7px!important;background:rgba(255,255,255,.92)!important;color:#172033!important}
body:not(.wp-admin) .spmg-type-video .spmg-card-type{background:rgba(215,25,32,.93)!important;color:#fff!important}
body:not(.wp-admin) .spmg-type-mixed .spmg-card-type{background:rgba(18,58,99,.93)!important;color:#fff!important}
body:not(.wp-admin) .spmg-card-count{right:7px!important;bottom:7px!important;background:rgba(7,13,25,.74)!important;color:#fff!important}
body:not(.wp-admin) .spmg-card-play{
  position:absolute!important;
  z-index:4!important;
  left:50%!important;
  top:50%!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  border:1px solid rgba(255,255,255,.64)!important;
  border-radius:50%!important;
  background:rgba(7,13,25,.64)!important;
  color:#fff!important;
  font-size:15px!important;
  transform:translate(-50%,-50%)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.2)!important;
  backdrop-filter:blur(5px)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-copy,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-copy{
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
  gap:5px!important;
  min-width:0!important;
  padding:8px 9px 9px!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-copy>b,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-copy>b{
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  padding:0!important;
  color:var(--spmg-text)!important;
  font-size:10.5px!important;
  font-weight:850!important;
  line-height:1.3!important;
}
body:not(.wp-admin) .sp-gallery-public-page .spmg-card-meta,
body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-meta{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:7px!important;
  margin-top:auto!important;
  padding:0!important;
  color:var(--spmg-muted)!important;
  font-size:8px!important;
  font-weight:700!important;
}
body:not(.wp-admin) .spmg-card-meta>span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}

/* Kategori kartları aynı görsel dilde */
body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-card{
  transition:transform .18s ease,border-color .18s ease,background .18s ease!important;
}
body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-card:hover{
  transform:translateY(-1px)!important;
  border-color:color-mix(in srgb,var(--spmg-red) 24%,var(--spmg-line))!important;
  background:color-mix(in srgb,var(--spmg-red) 2.5%,#fff)!important;
}
body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-icon{
  background:linear-gradient(135deg,#fff1f3,#f3f7fb)!important;
  color:var(--spmg-red)!important;
}

/* Tekil galeri: kompakt başlık + modern mozaik */
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero{
  padding:14px 0 10px!important;
  border-bottom:0!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-hero-badges{
  gap:5px!important;
  margin-bottom:6px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-hero-badges span{
  padding:5px 8px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-detail-title{
  max-width:1080px!important;
  margin:0 0 5px!important;
  font-size:clamp(26px,4vw,40px)!important;
  line-height:1.08!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-lead{
  max-width:960px!important;
  margin:0!important;
  color:var(--spmg-muted)!important;
  font-size:13px!important;
  line-height:1.55!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts{
  display:flex!important;
  gap:7px!important;
  margin-top:10px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts>span{
  min-width:104px!important;
  padding:7px 9px!important;
  border:1px solid var(--spmg-line)!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,#fff,color-mix(in srgb,var(--spmg-blue) 2.5%,#fff))!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts small{font-size:8px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts strong{font-size:11px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section{
  margin-top:12px!important;
  padding:13px!important;
  border-radius:13px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section-heading{
  margin-bottom:8px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section-heading h2,
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section>h2{
  margin-bottom:9px!important;
  font-size:16px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section-heading h2{margin-bottom:0!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section-heading>span,
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section-heading>a{font-size:9px!important}

body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:auto!important;
  gap:8px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media,
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:first-child,
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(2),
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(3){
  position:relative!important;
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:4/3!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:11px!important;
  background:#e9eef4!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .sp-gallery-historic-open{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  aspect-ratio:auto!important;
  background:#e9eef4!important;
  overflow:hidden!important;
  cursor:zoom-in!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .sp-gallery-historic-open>img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  transition:transform .28s ease!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:hover img{transform:scale(1.035)!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-caption{display:none!important}
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-video-placeholder{height:100%!important;min-height:100%!important}
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-overlay{
  position:absolute!important;
  z-index:5!important;
  inset:7px 7px auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px!important;
  pointer-events:none!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-number,
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-kind{
  display:inline-flex!important;
  align-items:center!important;
  min-height:21px!important;
  padding:4px 6px!important;
  border-radius:999px!important;
  background:rgba(7,13,25,.67)!important;
  color:#fff!important;
  font-size:7.5px!important;
  font-weight:900!important;
  line-height:1!important;
  backdrop-filter:blur(5px)!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-kind{margin-left:auto!important;background:rgba(255,255,255,.92)!important;color:#172033!important}
body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-title{
  position:absolute!important;
  z-index:4!important;
  left:0!important;right:0!important;bottom:0!important;
  display:block!important;
  padding:22px 9px 8px!important;
  background:linear-gradient(180deg,transparent,rgba(7,13,25,.73))!important;
  color:#fff!important;
  font-size:8.5px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-align:left!important;
  pointer-events:none!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-detail-grid{gap:12px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-prose{font-size:13px!important;line-height:1.7!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-info-card{
  margin-top:12px!important;
  padding:13px!important;
  border-radius:13px!important;
}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-info-card h2{font-size:16px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-info-card dl>div{padding:7px 0!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-info-card dt{font-size:9px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-info-card dd{font-size:10px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-detail-share .sp-historic-btn{min-width:140px!important;min-height:34px!important;font-size:10px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-grid{gap:8px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-card{border-radius:11px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-card img{aspect-ratio:4/3!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-card>span{padding:8px!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-card strong{font-size:10px!important;line-height:1.3!important}
body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-nearby-card small{font-size:8px!important}

/* Lightbox: daha çağdaş fakat sade */
html body .spmg-lightbox[hidden]{display:none!important}
html body .spmg-lightbox{position:fixed!important;inset:0!important;z-index:999999!important}
html body .spmg-lb-backdrop{position:absolute!important;inset:0!important;background:rgba(3,8,18,.94)!important;backdrop-filter:blur(8px)!important}
html body .spmg-lb-box{
  position:absolute!important;
  inset:2vh max(12px,2vw)!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 44px!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  color:#fff!important;
}
html body .spmg-lb-stage{position:relative!important;display:grid!important;place-items:center!important;overflow:hidden!important;border-radius:14px!important}
html body .spmg-lb-stage img,
html body .spmg-lb-stage video,
html body .spmg-lb-stage iframe{max-width:100%!important;max-height:80vh!important;border-radius:10px!important;box-shadow:0 18px 60px rgba(0,0,0,.32)!important;transition:transform .2s ease!important}
html body .spmg-lb-stage iframe{width:min(1100px,88vw)!important;height:min(620px,70vh)!important;border:0!important}
html body .spmg-lb-prev,
html body .spmg-lb-next,
html body .spmg-lb-close{
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.16)!important;
  background:rgba(255,255,255,.07)!important;
  color:#fff!important;
  cursor:pointer!important;
  backdrop-filter:blur(7px)!important;
}
html body .spmg-lb-prev,html body .spmg-lb-next{align-self:center!important;width:38px!important;height:54px!important;border-radius:11px!important;font-size:26px!important}
html body .spmg-lb-close{position:absolute!important;z-index:5!important;right:0!important;top:0!important;width:38px!important;height:38px!important;border-radius:50%!important;font-size:24px!important}
html body .spmg-lb-info{
  grid-column:1/-1!important;
  width:min(980px,100%)!important;
  margin:8px auto 0!important;
  padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:12px!important;
  background:rgba(17,24,39,.78)!important;
  text-align:center!important;
  backdrop-filter:blur(10px)!important;
}
html body .spmg-lb-info strong{font-size:11px!important}
html body .spmg-lb-info small,html body .spmg-lb-info em{margin-top:2px!important;color:#cbd5e1!important;font-size:8.5px!important}
html body .spmg-lb-count{display:block!important;margin-top:3px!important;font-size:8.5px!important;font-weight:850!important}
html body .spmg-lb-info button,html body .spmg-lb-info a{
  min-height:28px!important;
  margin:6px 2px 0!important;
  padding:5px 8px!important;
  border:1px solid rgba(255,255,255,.17)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:8.5px!important;
  font-weight:750!important;
}

/* Widget kısa kodu da aynı kart diline yaklaşır. */
body:not(.wp-admin) .spmg-widget-grid{gap:8px!important}
body:not(.wp-admin) .spmg-widget-grid>a{
  position:relative!important;
  border:1px solid var(--spmg-line)!important;
  border-radius:11px!important;
  background:var(--spmg-surface)!important;
  box-shadow:none!important;
  transition:transform .18s ease,border-color .18s ease!important;
}
body:not(.wp-admin) .spmg-widget-grid>a:hover{transform:translateY(-1px)!important;border-color:color-mix(in srgb,var(--spmg-red) 25%,var(--spmg-line))!important}
body:not(.wp-admin) .spmg-widget-grid>a>span{position:relative!important;overflow:hidden!important}
body:not(.wp-admin) .spmg-widget-grid>a>span img{transition:transform .25s ease!important}
body:not(.wp-admin) .spmg-widget-grid>a:hover>span img{transform:scale(1.03)!important}
body:not(.wp-admin) .spmg-widget-grid>a>b{padding:7px 8px!important;font-size:9.5px!important;line-height:1.3!important}

@media(max-width:1024px){
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-archive,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media{grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:first-child{grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(2),
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(3){grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
}

@media(max-width:767px){
  body:not(.wp-admin) .sp-gallery-public-page .sp-module-owned-head{align-items:center!important;flex-direction:row!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-module-owned-head h1{font-size:20px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-page-kicker{font-size:7.5px!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-news-like-add{min-height:32px!important;padding:6px 9px!important;font-size:9px!important;white-space:nowrap!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-toolbar{padding:7px 8px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-toolbar-note{display:none!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar{width:100%!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-filterbar a{min-height:29px!important;padding:5px 9px!important;font-size:9px!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-card{min-height:52px!important;padding:7px 8px!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-page-category-icon{width:34px!important;height:34px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-archive,
  body:not(.wp-admin) .sp-gallery-public-page .sp-page-all-grid,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card{border-radius:10px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-archive-card>.spmg-card-media,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-archive-card>.spmg-card-media{aspect-ratio:1/1!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-card-copy,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-copy{padding:7px 8px 8px!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-card-copy>b,
  body:not(.wp-admin) .sp-helper-public>.spmg-archive .spmg-card-copy>b{font-size:9.5px!important}
  body:not(.wp-admin) .spmg-card-type,body:not(.wp-admin) .spmg-card-count{min-height:19px!important;padding:4px 5px!important;font-size:7px!important}
  body:not(.wp-admin) .spmg-card-play{width:35px!important;height:35px!important;font-size:12px!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero{padding-top:9px!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-detail-title{font-size:25px!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-modern-hero .sp-historic-quick-facts>span{min-width:0!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:6px!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media{grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:first-child{grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(2),
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-gallery-historic-grid .spmg-media:nth-child(3){grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:0!important;aspect-ratio:4/3!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .spmg-media-title{font-size:7.5px!important}
  html body .spmg-lb-box{inset:8px 0!important;grid-template-columns:32px minmax(0,1fr) 32px!important}
  html body .spmg-lb-prev,html body .spmg-lb-next{width:30px!important;height:48px!important;border-radius:9px!important}
  html body .spmg-lb-close{right:8px!important;top:2px!important;width:34px!important;height:34px!important}
  html body .spmg-lb-info{width:calc(100% - 16px)!important;margin-top:5px!important;padding:7px 8px!important;border-radius:10px!important}
  html body .spmg-lb-info button,html body .spmg-lb-info a{padding:5px 7px!important;font-size:8px!important}
}

@media(max-width:420px){
  body:not(.wp-admin) .sp-gallery-public-page .sp-module-owned-head{gap:6px!important}
  body:not(.wp-admin) .sp-gallery-public-page .sp-news-like-add .dashicons{display:none!important}
  body:not(.wp-admin) .sp-gallery-public-page .spmg-card-meta span:first-child{display:none!important}
  body:not(.wp-admin) .sp-gallery-historic-detail .sp-historic-section{padding:11px!important}
}

/* Galeri tam ekran görüntüleyici ve görünür kontrol barı */
html.spmg-lightbox-open{overflow:hidden!important}
html body .spmg-lightbox{height:100dvh!important;min-height:100vh!important;overflow:hidden!important}
html body .spmg-lb-backdrop{background:radial-gradient(circle at 50% 30%,rgba(35,48,72,.62),rgba(3,8,18,.97) 62%)!important;backdrop-filter:blur(14px)!important}
html body .spmg-lb-box{
  inset:0!important;
  width:100%!important;
  height:100dvh!important;
  min-height:100vh!important;
  padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto auto!important;
  gap:8px!important;
  color:#fff!important;
}
html body .spmg-lb-stage{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  height:100%!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)!important;
}
html body .spmg-lb-stage img,
html body .spmg-lb-stage video,
html body .spmg-lb-stage iframe{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:12px!important;
  box-shadow:0 22px 70px rgba(0,0,0,.38)!important;
}
html body .spmg-lb-stage iframe{width:min(1200px,94vw)!important;height:min(70dvh,760px)!important}
html body .spmg-lb-close{
  position:absolute!important;
  z-index:12!important;
  top:max(14px,env(safe-area-inset-top))!important;
  right:max(14px,env(safe-area-inset-right))!important;
  width:42px!important;
  height:42px!important;
  border-radius:50%!important;
  border:1px solid rgba(255,255,255,.2)!important;
  background:rgba(9,15,27,.68)!important;
  box-shadow:0 8px 28px rgba(0,0,0,.24)!important;
  font-size:26px!important;
}
html body .spmg-lb-controls{
  grid-column:1!important;
  grid-row:2!important;
  justify-self:center!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:6px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:999px!important;
  background:rgba(10,17,30,.78)!important;
  box-shadow:0 12px 36px rgba(0,0,0,.28)!important;
  backdrop-filter:blur(14px)!important;
}
html body .spmg-lb-controls .spmg-lb-prev,
html body .spmg-lb-controls .spmg-lb-next,
html body .spmg-lb-controls .spmg-lb-pause{
  position:static!important;
  width:auto!important;
  height:38px!important;
  min-width:88px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 14px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
  font-size:20px!important;
  font-weight:800!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:background .18s ease,transform .18s ease,border-color .18s ease!important;
}
html body .spmg-lb-controls .spmg-lb-pause{min-width:110px!important;background:rgba(255,255,255,.12)!important}
html body .spmg-lb-controls button:hover{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.25)!important;transform:translateY(-1px)!important}
html body .spmg-lb-control-label{font-size:10px!important;font-weight:850!important;letter-spacing:.02em!important}
html body .spmg-lb-pause-icon{font-size:10px!important}
html body .spmg-lb-info{
  grid-column:1!important;
  grid-row:3!important;
  width:min(980px,calc(100% - 12px))!important;
  max-height:88px!important;
  overflow:auto!important;
  margin:0 auto!important;
  padding:7px 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:13px!important;
  background:rgba(10,17,30,.66)!important;
  text-align:left!important;
  backdrop-filter:blur(12px)!important;
}
html body .spmg-lb-copy{min-width:0!important;flex:1 1 auto!important}
html body .spmg-lb-info strong{font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .spmg-lb-info small,html body .spmg-lb-info em{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .spmg-lb-count{font-size:8px!important;color:#dbe4f0!important}
html body .spmg-lb-tools{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:4px!important}
html body .spmg-lb-info button,html body .spmg-lb-info a{margin:0!important;min-height:30px!important;white-space:nowrap!important}

@media(max-width:767px){
  html body .spmg-lb-box{padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))!important;gap:6px!important;grid-template-rows:minmax(0,1fr) auto auto!important}
  html body .spmg-lb-stage{border-radius:12px!important}
  html body .spmg-lb-stage img,html body .spmg-lb-stage video{max-height:100%!important;border-radius:8px!important}
  html body .spmg-lb-stage iframe{width:100%!important;height:min(62dvh,560px)!important}
  html body .spmg-lb-close{top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;width:38px!important;height:38px!important;background:rgba(8,13,24,.78)!important}
  html body .spmg-lb-controls{width:auto!important;max-width:calc(100vw - 14px)!important;padding:5px!important;gap:5px!important}
  html body .spmg-lb-controls .spmg-lb-prev,html body .spmg-lb-controls .spmg-lb-next,html body .spmg-lb-controls .spmg-lb-pause{height:36px!important;min-width:0!important;padding:0 11px!important;font-size:18px!important}
  html body .spmg-lb-controls .spmg-lb-pause{min-width:92px!important}
  html body .spmg-lb-control-label{font-size:9px!important}
  html body .spmg-lb-info{width:100%!important;max-height:76px!important;padding:6px 7px!important;gap:7px!important;border-radius:10px!important}
  html body .spmg-lb-info small,html body .spmg-lb-info em{display:none!important}
  html body .spmg-lb-tools{gap:3px!important}
  html body .spmg-lb-info button,html body .spmg-lb-info a{min-height:27px!important;padding:4px 6px!important;font-size:7.5px!important}
}

@media(max-width:420px){
  html body .spmg-lb-controls .spmg-lb-prev,html body .spmg-lb-controls .spmg-lb-next{padding:0 10px!important}
  html body .spmg-lb-controls .spmg-lb-pause{min-width:84px!important;padding:0 10px!important}
  html body .spmg-lb-info{max-height:66px!important}
  html body .spmg-lb-info strong{font-size:10px!important}
  html body .spmg-lb-info .spmg-lb-tools .spmg-lb-zoom{display:none!important}
}

/* Mobil lightbox viewport/taşma düzeltmesi.
   Lightbox body altında çalışır; görüntü, kontroller ve bilgi alanı tek görsel viewport içine oturur. */
html.spmg-lightbox-open,
html.spmg-lightbox-open body{overflow:hidden!important;overscroll-behavior:none!important}
html body>.spmg-lightbox{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  z-index:2147483000!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
html body>.spmg-lightbox .spmg-lb-backdrop{position:absolute!important;inset:0!important}
html body>.spmg-lightbox .spmg-lb-box{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
html body>.spmg-lightbox .spmg-lb-stage{
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
html body>.spmg-lightbox .spmg-lb-stage>img,
html body>.spmg-lightbox .spmg-lb-stage>video{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
}
@media(max-width:767px){
  html body>.spmg-lightbox .spmg-lb-box{
    padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;
    grid-template-rows:minmax(0,1fr) 48px 62px!important;
    gap:5px!important;
  }
  html body>.spmg-lightbox .spmg-lb-stage{
    width:100%!important;
    height:100%!important;
    border-radius:11px!important;
  }
  html body>.spmg-lightbox .spmg-lb-controls{
    align-self:center!important;
    max-height:46px!important;
    margin:0!important;
  }
  html body>.spmg-lightbox .spmg-lb-info{
    align-self:stretch!important;
    height:62px!important;
    max-height:62px!important;
    overflow:hidden!important;
    margin:0!important;
  }
}
@media(max-width:420px){
  html body>.spmg-lightbox .spmg-lb-box{grid-template-rows:minmax(0,1fr) 44px 58px!important}
  html body>.spmg-lightbox .spmg-lb-controls{max-height:42px!important}
  html body>.spmg-lightbox .spmg-lb-info{height:58px!important;max-height:58px!important}
}

/* Galeri modal katmanı / sayfa kilidi düzeltmesi.
   Galeri açıkken tema header, Hesabım/mobil alt menü ve yardımcı sabit katmanlar modalın altında kalmaz;
   doğrudan gizlenir. Sayfa kilidi yalnız lightbox yaşam süresince uygulanır. */
html.spmg-lightbox-open,
body.spmg-lightbox-open{
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
html.spmg-lightbox-open body > :not(.spmg-lightbox){
  pointer-events:none!important;
}
html.spmg-lightbox-open body > .spmg-lightbox{
  pointer-events:auto!important;
  z-index:2147483647!important;
}
html.spmg-lightbox-open body .sp-mobile-bottom-nav,
html.spmg-lightbox-open body .spm-bottom-nav,
html.spmg-lightbox-open body .sp-mobile-appbar,
html.spmg-lightbox-open body #sp-app-quick-layer,
html.spmg-lightbox-open body #sp-app-center-layer{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:767px){
  html.spmg-lightbox-open body .sp-header,
  html.spmg-lightbox-open body .sp-header-actions{
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
}
\n/* 360 video görünürlük ve medya kontrolleri */\nhtml body .sp360-viewer{position:relative!important}\nhtml body .sp360-source-video{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}\nhtml body .sp360-native-fallback{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:1!important;pointer-events:auto!important;background:#000!important;z-index:2!important}\nhtml body .sp360-controls{left:10px!important;right:10px!important;bottom:10px!important;display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;z-index:6!important}\nhtml body .sp360-controls button{min-height:34px!important}\nhtml body .sp360-seek{flex:1 1 180px!important;min-width:110px!important;accent-color:#fff!important}\nhtml body .sp360-time{font-size:10px!important;font-weight:800!important;color:#fff!important;white-space:nowrap!important;text-shadow:0 1px 4px rgba(0,0,0,.8)!important}\nhtml body .sp360-error{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;z-index:7!important;width:min(88%,520px)!important;padding:14px 16px!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:12px!important;background:rgba(7,12,22,.88)!important;color:#fff!important;text-align:center!important;font-size:12px!important;font-weight:750!important;line-height:1.5!important}\nhtml body .sp-gallery-dedicated-single{width:100%!important;min-height:60vh!important}\n@media(max-width:600px){html body .sp360-controls{gap:4px!important}html body .sp360-controls button{padding:6px 8px!important;font-size:9px!important}.sp360-time{width:100%!important;text-align:right!important}}\n