/* RizeDijital Galeri v0.38 — public + member scoped styles */
.gallery-page,.gallery-detail-page,.rdg-member-page{--rdg:#0d4a28;--rdg2:#167344;--rdg3:#22a861;--ink:#13231a;--muted:#64756b;--line:#dfe8e2;--soft:#f4f8f5;--white:#fff;background:#f6f8f6;color:var(--ink);font-family:Nunito,sans-serif}.gallery-page *,.gallery-detail-page *,.rdg-member-page *{box-sizing:border-box}.gallery-shell{width:min(1360px,calc(100% - 40px));margin:0 auto}.gallery-main{padding:28px 0 72px}.gallery-hero{position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(125deg,#082d1a 0%,#0d4a28 52%,#17804b 100%);color:#fff;box-shadow:0 24px 60px rgba(13,74,40,.17)}.gallery-hero:before{content:"";position:absolute;inset:-100px -80px auto auto;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 66%)}.gallery-hero-grid{position:relative;display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.7fr);gap:30px;padding:42px}.gallery-kicker,.rdg-eyebrow{display:inline-flex;align-items:center;gap:9px;font:800 12px/1 Poppins,sans-serif;letter-spacing:.09em;text-transform:uppercase}.gallery-hero h1{margin:16px 0 13px;font:800 clamp(34px,4vw,58px)/1.05 Poppins,sans-serif;letter-spacing:-.04em}.gallery-hero h1 span{color:#8ee0ae}.gallery-hero-copy>p{max-width:720px;margin:0;color:rgba(255,255,255,.78);font-size:17px;line-height:1.72}.gallery-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.gallery-btn,.gallery-btn-primary,.gallery-btn-light,.rdg-primary-btn,.rdg-secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 18px;border:0;border-radius:13px;font-weight:900;text-decoration:none;cursor:pointer}.gallery-btn-primary,.rdg-primary-btn{background:#fff;color:var(--rdg);box-shadow:0 10px 28px rgba(0,0,0,.13)}.gallery-btn-light,.rdg-secondary-btn{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}.gallery-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.gallery-hero-chips span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.09);font-size:12px;font-weight:800}.gallery-hero-panel{align-self:stretch;padding:20px;border:1px solid rgba(255,255,255,.14);border-radius:22px;background:rgba(3,27,15,.28);backdrop-filter:blur(12px)}.gallery-location-card{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.14)}.gallery-location-card>i{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff;color:var(--rdg);font-size:20px}.gallery-location-card span,.gallery-stat-grid span{display:block;color:rgba(255,255,255,.65);font-size:12px}.gallery-location-card strong{display:block;margin-top:2px;font-size:18px}.gallery-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}.gallery-stat-grid div{padding:14px;border-radius:15px;background:rgba(255,255,255,.09)}.gallery-stat-grid strong{display:block;margin-top:3px;font:800 24px/1 Poppins,sans-serif}.gallery-category-strip{display:flex;gap:10px;margin:24px 0 16px;padding:4px 0 8px;overflow-x:auto;scrollbar-width:none}.gallery-category-strip::-webkit-scrollbar{display:none}.gallery-category-strip a{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:11px 15px;border:1px solid var(--line);border-radius:13px;background:#fff;color:#30463a;text-decoration:none;font-weight:800;box-shadow:0 5px 16px rgba(20,50,30,.04)}.gallery-category-strip a.active{background:var(--rdg);border-color:var(--rdg);color:#fff}.gallery-filterbar{display:grid;grid-template-columns:minmax(230px,1.6fr) repeat(3,minmax(140px,.55fr)) auto;gap:10px;margin-bottom:28px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(20,50,30,.055)}.gallery-filterbar input,.gallery-filterbar select,.rdg-field input,.rdg-field select,.rdg-field textarea{width:100%;min-height:45px;border:1px solid #d7e2da;border-radius:12px;background:#fff;padding:0 13px;color:#1c3325;font:700 14px Nunito,sans-serif;outline:none}.gallery-filterbar input:focus,.gallery-filterbar select:focus,.rdg-field input:focus,.rdg-field select:focus,.rdg-field textarea:focus{border-color:#42a873;box-shadow:0 0 0 3px rgba(34,168,97,.12)}.gallery-filterbar button{border:0;border-radius:12px;background:var(--rdg);color:#fff;padding:0 18px;font-weight:900}.gallery-section{margin-top:28px}.gallery-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.gallery-section-head>div{display:flex;align-items:center;gap:12px}.gallery-section-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#e8f6ed;color:var(--rdg2);font-size:18px}.gallery-section-head h2{margin:0;font:800 23px Poppins,sans-serif}.gallery-section-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.gallery-member-section{padding:24px;border:1px solid #cde6d5;border-radius:24px;background:linear-gradient(180deg,#f5fbf7,#fff)}.gallery-masonry{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.gallery-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(18,58,33,.06);transition:transform .2s ease,box-shadow .2s ease}.gallery-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(18,58,33,.12)}.gallery-card-media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#dfe8e2}.gallery-card.is-portrait .gallery-card-media,.gallery-card.is-tall .gallery-card-media{aspect-ratio:4/5}.gallery-card.is-square .gallery-card-media{aspect-ratio:1}.gallery-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.gallery-card:hover img{transform:scale(1.045)}.gallery-card-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 48%,rgba(3,22,12,.65))}.gallery-card-topline{position:absolute;z-index:2;inset:11px 11px auto;display:flex;align-items:center;justify-content:space-between;gap:8px}.gallery-source-badge,.gallery-featured-badge{position:absolute;z-index:2;top:11px;display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(7,35,20,.76);color:#fff;font-size:10px;font-weight:900;backdrop-filter:blur(8px)}.gallery-source-badge{left:11px}.gallery-featured-badge{right:11px}.gallery-source-badge.is-member{background:#f4b128;color:#382200}.gallery-source-badge.is-rd{background:#fff;color:var(--rdg)}.gallery-open-icon{position:absolute;z-index:2;right:12px;bottom:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--rdg);box-shadow:0 7px 18px rgba(0,0,0,.2)}.gallery-card-body{padding:15px}.gallery-card-category{display:flex;align-items:center;gap:7px;color:var(--rdg2);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.gallery-card h3{margin:8px 0 5px;font:800 17px/1.35 Poppins,sans-serif}.gallery-card h3 a{color:var(--ink);text-decoration:none}.gallery-card-body>p{margin:0;color:var(--muted);font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gallery-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid #edf2ee}.gallery-owner-avatar{display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border-radius:50%;background:#dff1e5;color:var(--rdg);font-weight:900}.gallery-owner-avatar img{width:100%;height:100%;object-fit:cover}.gallery-card-footer>div{display:flex;align-items:center;gap:8px;min-width:0}.gallery-card-footer strong{display:block;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.gallery-card-footer small,.gallery-view-count{color:var(--muted);font-size:11px}.gallery-unsplash-credit{margin-top:9px;font-size:10px;color:#69776f}.gallery-unsplash-credit a{color:#3b6650}.gallery-empty,.rdg-empty{padding:54px 22px;text-align:center;border:1px dashed #bad5c3;border-radius:22px;background:#fff}.gallery-empty>i,.rdg-empty>i{font-size:38px;color:#8bb79a}.gallery-pagination{display:flex;justify-content:center;gap:6px;margin-top:30px}.gallery-pagination a{display:grid;place-items:center;min-width:39px;height:39px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;font-weight:900}.gallery-pagination a.active{background:var(--rdg);color:#fff}.gallery-lightbox{position:fixed;z-index:9999;inset:0;display:none;padding:24px;background:rgba(3,14,8,.93);color:#fff}.gallery-lightbox.is-open{display:grid;place-items:center}.gallery-lightbox-inner{width:min(1180px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-rows:minmax(0,1fr) auto;position:relative}.gallery-lightbox-stage{min-height:0;display:grid;place-items:center}.gallery-lightbox-stage img{max-width:100%;max-height:76vh;border-radius:16px;object-fit:contain}.gallery-lightbox-info{padding:14px 0;display:flex;justify-content:space-between;gap:15px}.gallery-lightbox-close{position:absolute;right:0;top:0;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:18px}.gallery-detail-main{padding:26px 0 72px}.gallery-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:var(--muted);font-size:13px}.gallery-breadcrumb a{color:var(--rdg2);text-decoration:none}.gallery-detail-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.65fr);gap:22px;align-items:start}.gallery-detail-visual{position:relative;overflow:hidden;border-radius:24px;background:#102017;box-shadow:0 18px 45px rgba(14,43,25,.16)}.gallery-detail-visual img{display:block;width:100%;max-height:78vh;object-fit:contain}.gallery-detail-visual-actions{position:absolute;right:14px;bottom:14px;display:flex;gap:8px}.gallery-detail-visual-actions button{width:43px;height:43px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--rdg);font-size:16px}.gallery-detail-sidebar{position:sticky;top:92px;display:grid;gap:14px;padding:22px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 9px 26px rgba(18,58,33,.06)}.gallery-detail-sidebar>section,.gallery-detail-upload{padding:20px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 9px 26px rgba(18,58,33,.06)}.gallery-detail-badges{display:flex;flex-wrap:wrap;gap:7px}.gallery-detail-badges span{padding:6px 9px;border-radius:999px;background:#edf7f0;color:var(--rdg);font-size:11px;font-weight:900}.gallery-detail-sidebar h1{margin:15px 0 8px;font:800 25px/1.25 Poppins,sans-serif}.gallery-detail-topic{color:var(--rdg2);font-weight:900}.gallery-detail-description{color:var(--muted);line-height:1.7}.gallery-detail-owner{display:flex;align-items:center;gap:11px;padding-top:14px;border-top:1px solid var(--line)}.gallery-detail-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.gallery-detail-stats div{padding:12px;border-radius:13px;background:var(--soft)}.gallery-detail-stats span{display:block;color:var(--muted);font-size:11px}.gallery-detail-credit{font-size:12px;line-height:1.6;color:var(--muted)}.gallery-detail-credit a{color:var(--rdg2);font-weight:800}.gallery-related{margin-top:30px}.gallery-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.gallery-related-grid a{overflow:hidden;border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;border:1px solid var(--line)}.gallery-related-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-related-grid strong{display:block;padding:12px}
/* Member */
.rdg-member-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:26px 28px;border-radius:23px;background:linear-gradient(125deg,#0b3b22,#177b49);color:#fff}.rdg-member-hero.compact{padding:22px 26px}.rdg-member-hero h1{margin:8px 0 5px;font:800 31px Poppins,sans-serif}.rdg-member-hero p{max-width:700px;margin:0;color:rgba(255,255,255,.74)}.rdg-alert{display:flex;gap:11px;margin:13px 0;padding:14px 16px;border-radius:13px;font-weight:700}.rdg-alert div{display:grid;gap:3px}.rdg-alert.success{background:#e9f8ee;color:#176035}.rdg-alert.error{background:#fff0f0;color:#9d2d2d}.rdg-member-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.rdg-member-summary div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:4px 10px;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff}.rdg-member-summary i{grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#eaf6ee;color:var(--rdg2)}.rdg-member-summary span{font-size:12px;color:var(--muted)}.rdg-member-summary strong{font:800 21px Poppins,sans-serif}.rdg-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rdg-member-card{display:grid;grid-template-columns:180px minmax(0,1fr);min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff}.rdg-member-media{position:relative;min-height:180px;background:#dfe8e2}.rdg-member-media img{width:100%;height:100%;object-fit:cover}.rdg-status{position:absolute;left:10px;top:10px;padding:6px 9px;border-radius:999px;background:#fff;font-size:10px;font-weight:900}.rdg-status.yayinda{color:#17703e}.rdg-status.beklemede{color:#966000}.rdg-status.reddedildi{color:#a52e2e}.rdg-status.pasif{color:#68706c}.rdg-member-copy{padding:16px;min-width:0}.rdg-member-copy>small{color:var(--muted)}.rdg-member-copy h2{margin:7px 0 3px;font:800 17px Poppins,sans-serif}.rdg-member-copy p{margin:0;color:var(--rdg2);font-weight:800}.rdg-reject-note{margin-top:10px;padding:9px;border-radius:9px;background:#fff0f0;color:#8b2828;font-size:12px}.rdg-member-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:14px}.rdg-member-actions a,.rdg-member-actions button{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:9px;background:#edf5ef;color:#234d34;padding:8px 10px;text-decoration:none;font:800 11px Nunito,sans-serif;cursor:pointer}.rdg-form-card{margin-bottom:15px;padding:22px;border:1px solid var(--line);border-radius:19px;background:#fff}.rdg-form-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.rdg-form-head>span{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#e7f5ec;color:var(--rdg2)}.rdg-form-head h2{margin:0;font:800 19px Poppins,sans-serif}.rdg-form-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.rdg-dropzone{display:grid;place-items:center;min-height:210px;padding:24px;border:2px dashed #a6cdb3;border-radius:17px;background:#f6fbf7;text-align:center;cursor:pointer}.rdg-dropzone>i{font-size:35px;color:var(--rdg2)}.rdg-dropzone strong{margin-top:11px}.rdg-dropzone span{color:var(--muted);font-size:12px}.rdg-dropzone input{position:absolute;opacity:0;pointer-events:none}.rdg-upload-preview{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:12px}.rdg-upload-preview figure{position:relative;margin:0;overflow:hidden;border-radius:12px;background:#ddd}.rdg-upload-preview img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.rdg-upload-preview figcaption{position:absolute;inset:auto 0 0;padding:5px;background:rgba(0,0,0,.6);color:#fff;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rdg-current-photo{display:flex;align-items:center;gap:16px}.rdg-current-photo img{width:125px;height:95px;border-radius:13px;object-fit:cover}.rdg-current-photo span{display:block;color:var(--muted);font-size:12px}.rdg-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rdg-field label{display:block;margin-bottom:6px;font-size:12px;font-weight:900}.rdg-field label b{color:#c72e2e}.rdg-field.full{grid-column:1/-1}.rdg-field textarea{padding-top:12px;resize:vertical}.rdg-upload-policy{display:flex;gap:13px;margin:15px 0;padding:17px;border-radius:16px;background:#fff8e5;color:#6d5318}.rdg-upload-policy>i{font-size:22px}.rdg-upload-policy span{display:block;margin-top:3px;font-size:12px;line-height:1.55}.rdg-submitbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 21px;border-radius:17px;background:#102e1e;color:#fff}.rdg-submitbar span{display:block;color:rgba(255,255,255,.66);font-size:12px}.rdg-submitbar button{min-height:44px;border:0;border-radius:12px;background:#fff;color:var(--rdg);padding:0 18px;font-weight:900}.rdg-member-empty a{display:inline-flex;margin-top:10px;padding:10px 14px;border-radius:10px;background:var(--rdg);color:#fff;text-decoration:none;font-weight:900}
@media(max-width:1180px){.gallery-masonry{grid-template-columns:repeat(3,1fr)}.gallery-filterbar{grid-template-columns:repeat(2,1fr)}.gallery-filterbar .gallery-search{grid-column:1/-1}.rdg-member-grid{grid-template-columns:1fr}}
@media(max-width:900px){.gallery-hero-grid,.gallery-detail-layout{grid-template-columns:1fr}.gallery-detail-sidebar{position:static}.gallery-related-grid{grid-template-columns:repeat(2,1fr)}.gallery-masonry{grid-template-columns:repeat(2,1fr)}.rdg-member-summary{grid-template-columns:repeat(2,1fr)}.rdg-upload-preview{grid-template-columns:repeat(4,1fr)}}
@media(max-width:640px){.gallery-shell{width:min(100% - 24px,1360px)}.gallery-main{padding-top:14px}.gallery-hero{border-radius:20px}.gallery-hero-grid{padding:24px 20px}.gallery-hero h1{font-size:34px}.gallery-hero-panel{padding:15px}.gallery-filterbar{grid-template-columns:1fr}.gallery-filterbar .gallery-search{grid-column:auto}.gallery-member-section{padding:14px}.gallery-masonry{gap:10px}.gallery-card{border-radius:14px}.gallery-card-body{padding:11px}.gallery-card h3{font-size:14px}.gallery-card-footer strong{max-width:75px}.gallery-section-head{align-items:flex-start}.gallery-section-head h2{font-size:19px}.gallery-detail-layout{gap:13px}.gallery-detail-sidebar h1{font-size:22px}.gallery-related-grid{gap:9px}.rdg-member-hero{align-items:flex-start;flex-direction:column;padding:21px}.rdg-member-summary{grid-template-columns:1fr 1fr}.rdg-member-card{grid-template-columns:120px 1fr}.rdg-member-media{min-height:165px}.rdg-member-copy{padding:12px}.rdg-form-grid{grid-template-columns:1fr}.rdg-field.full{grid-column:auto}.rdg-upload-preview{grid-template-columns:repeat(3,1fr)}.rdg-submitbar{align-items:flex-start;flex-direction:column}.rdg-submitbar button{width:100%}}

html.gallery-lock{overflow:hidden}

/* ========================================================================== 
   v0.38.1 — Public Galeri Genişlik ve Fotoğraf Detay Tasarım Hotfix
   ========================================================================== */

/* Liste sayfası: İlanlar ve İşletmeler ile aynı 1360px ana container çizgisi. */
.gallery-page .gallery-main {
  min-width: 0;
  overflow-x: clip;
  padding-top: 24px;
}

.gallery-page .gallery-hero {
  width: min(1360px, calc(100% - 40px));
  min-height: 286px;
  margin: 0 auto;
  border-radius: 26px;
}

.gallery-page .gallery-hero-grid {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 34px 38px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 410px);
  gap: 26px;
  align-items: center;
}

.gallery-page .gallery-hero-copy,
.gallery-page .gallery-hero-panel,
.gallery-page .gallery-shell,
.gallery-page .gallery-shell > *,
.gallery-detail-page .gallery-shell,
.gallery-detail-page .gallery-shell > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.gallery-page .gallery-hero h1 {
  max-width: 760px;
  margin: 13px 0 10px;
  font-size: clamp(34px, 3.4vw, 49px);
  line-height: 1.08;
}

.gallery-page .gallery-hero-copy > p {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.68;
}

.gallery-page .gallery-hero-actions {
  margin-top: 22px;
}

.gallery-page .gallery-hero-chips {
  margin-top: 17px;
}

.gallery-page .gallery-hero-chips span {
  padding: 6px 9px;
  font-size: 11px;
}

.gallery-page .gallery-hero-panel {
  align-self: center;
  padding: 18px;
  border-radius: 20px;
}

.gallery-page .gallery-location-card > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--rdg);
  font-size: 19px;
}

.gallery-page .gallery-location-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.45;
}

.gallery-page .gallery-stat-grid {
  gap: 9px;
  margin-top: 15px;
}

.gallery-page .gallery-stat-grid div {
  padding: 12px;
  border-radius: 13px;
}

.gallery-page .gallery-stat-grid strong {
  font-size: 21px;
}

/* Kart bilgi satırı body içinde normal akışta kalır. */
.gallery-page .gallery-card-topline {
  position: static;
  inset: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.gallery-page .gallery-card-topline > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-page .gallery-card-category {
  flex: 1 1 auto;
}

.gallery-page .gallery-card h2 {
  margin: 0 0 5px;
  font: 800 17px/1.35 Poppins, sans-serif;
}

.gallery-page .gallery-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

/* Modern iki kolonlu lightbox. */
.gallery-page .gallery-lightbox {
  padding: 28px;
  overflow: auto;
  background: rgba(3,14,8,.95);
  backdrop-filter: blur(10px);
}

.gallery-page .gallery-lightbox-inner {
  width: min(1220px, 100%);
  height: min(780px, calc(100dvh - 56px));
  max-height: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: #0a1710;
  box-shadow: 0 35px 100px rgba(0,0,0,.46);
}

.gallery-page .gallery-lightbox-stage {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(43,103,68,.28), transparent 48%),
    #09130d;
}

.gallery-page .gallery-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 20px 55px rgba(0,0,0,.32);
}

.gallery-page .gallery-lightbox-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 34px 28px 28px;
  overflow-y: auto;
  background: #fff;
  color: var(--ink);
}

.gallery-page .gallery-lightbox-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gallery-page .gallery-lightbox-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--rdg);
  font-size: 11px;
}

.gallery-page .gallery-lightbox-badges b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-page .gallery-lightbox-copy {
  min-width: 0;
}

.gallery-page .gallery-lightbox-copy > small {
  display: block;
  margin-bottom: 8px;
  color: var(--rdg2);
  font: 900 10px/1.2 Poppins, sans-serif;
  letter-spacing: .1em;
}

.gallery-page .gallery-lightbox-copy h2 {
  margin: 0;
  font: 800 27px/1.25 Poppins, sans-serif;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.gallery-page .gallery-lightbox-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.gallery-page .gallery-lightbox-owner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-page .gallery-lightbox-owner > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e9f6ed;
  color: var(--rdg2);
}

.gallery-page .gallery-lightbox-owner small,
.gallery-page .gallery-lightbox-owner strong {
  display: block;
}

.gallery-page .gallery-lightbox-owner small {
  color: var(--muted);
  font-size: 11px;
}

.gallery-page .gallery-lightbox-owner strong {
  margin-top: 2px;
  font-size: 14px;
}

.gallery-page .gallery-lightbox-detail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  margin-top: auto;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--rdg);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.gallery-page .gallery-lightbox-close {
  position: fixed;
  z-index: 10001;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  cursor: pointer;
}

/* Fotoğraf detay: başlık, görsel ve açıklama birbirinden ayrılmıştır. */
.gallery-detail-page .gallery-detail-main {
  padding: 24px 0 76px;
  overflow-x: clip;
}

.gallery-detail-page .gallery-shell {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 20px;
}

.gallery-detail-page .gallery-breadcrumb {
  min-width: 0;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: nowrap;
}

.gallery-detail-page .gallery-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-detail-heading {
  margin-bottom: 18px;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(33,165,94,.1), transparent 34%),
    #fff;
  box-shadow: 0 12px 32px rgba(18,58,33,.06);
}

.gallery-detail-heading .gallery-detail-badges {
  margin-bottom: 13px;
}

.gallery-detail-heading h1 {
  max-width: 1000px;
  margin: 0;
  font: 800 clamp(29px, 3vw, 43px)/1.17 Poppins, sans-serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.gallery-detail-heading-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.gallery-detail-heading-meta strong {
  color: var(--rdg2);
  font-size: 15px;
}

.gallery-detail-heading-meta span {
  color: var(--muted);
  font-size: 13px;
}

.gallery-detail-source {
  background: #fff5d9 !important;
  color: #75530a !important;
}

.gallery-detail-page .gallery-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 370px);
  gap: 20px;
  align-items: start;
}

.gallery-detail-page .gallery-detail-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e4dc;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(14,43,25,.1);
}

.gallery-detail-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: clamp(430px, 58vw, 720px);
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(56,115,78,.22), transparent 45%),
    linear-gradient(145deg, #08150e, #10271a);
}

.gallery-detail-page .gallery-detail-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 676px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 24px 62px rgba(0,0,0,.32);
}

.gallery-detail-page .gallery-detail-visual-actions {
  top: 16px;
  right: 16px;
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.gallery-detail-page .gallery-detail-visual-actions button {
  width: auto;
  min-width: 0;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: var(--rdg);
  font: 900 12px Nunito, sans-serif;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  cursor: pointer;
}

.gallery-detail-visual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  background: #fff;
}

.gallery-detail-visual-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gallery-detail-visual-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #e8f5ec;
  color: var(--rdg2);
}

.gallery-detail-visual-footer small,
.gallery-detail-visual-footer strong {
  display: block;
}

.gallery-detail-visual-footer small {
  color: var(--muted);
  font-size: 10px;
}

.gallery-detail-visual-footer strong {
  margin-top: 1px;
  font-size: 13px;
}

.gallery-detail-visual-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 11px;
}

.gallery-detail-page .gallery-detail-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-detail-page .gallery-detail-sidebar > section,
.gallery-detail-page .gallery-detail-upload {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,58,33,.055);
}

.gallery-detail-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--rdg2);
  font: 900 10px/1.2 Poppins, sans-serif;
  letter-spacing: .08em;
}

.gallery-detail-info-card h2 {
  margin: 10px 0 8px;
  font: 800 21px/1.25 Poppins, sans-serif;
}

.gallery-detail-page .gallery-detail-description {
  color: #43554a;
  font-size: 15px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.gallery-detail-owner-card {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
}

.gallery-detail-owner-avatar {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #dff2e5, #edf8f0);
  color: var(--rdg);
  font: 900 16px Poppins, sans-serif;
}

.gallery-detail-owner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-detail-owner-copy {
  min-width: 0;
}

.gallery-detail-owner-copy small,
.gallery-detail-owner-copy strong,
.gallery-detail-owner-copy span {
  display: block;
}

.gallery-detail-owner-copy small {
  color: var(--muted);
  font-size: 10px;
}

.gallery-detail-owner-copy strong {
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.gallery-detail-owner-copy span {
  margin-top: 2px;
  color: var(--rdg2);
  font-size: 11px;
  font-weight: 800;
}

.gallery-detail-owner-check {
  color: var(--rdg3);
  font-size: 17px;
}

.gallery-detail-page .gallery-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  padding: 12px !important;
}

.gallery-detail-facts > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  gap: 1px 9px;
  align-items: center;
  padding: 10px;
  border-radius: 13px;
  background: var(--soft);
}

.gallery-detail-facts > div > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff;
  color: var(--rdg2);
}

.gallery-detail-facts small,
.gallery-detail-facts strong {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-detail-facts small {
  color: var(--muted);
  font-size: 9px;
}

.gallery-detail-facts strong {
  font-size: 11px;
}

.gallery-detail-page .gallery-detail-credit {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.gallery-detail-credit > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #101010;
  color: #fff;
  font-size: 17px;
}

.gallery-detail-credit strong,
.gallery-detail-credit p {
  display: block;
  margin: 0;
}

.gallery-detail-credit p {
  margin-top: 3px;
}

.gallery-detail-page .gallery-detail-upload {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.gallery-detail-page .gallery-detail-upload:hover {
  transform: translateY(-2px);
  border-color: #9fcdb0;
  box-shadow: 0 15px 34px rgba(18,58,33,.1);
}

.gallery-detail-upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--rdg);
  color: #fff;
}

.gallery-detail-upload strong,
.gallery-detail-upload small {
  display: block;
}

.gallery-detail-upload strong {
  font-size: 13px;
}

.gallery-detail-upload small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.gallery-detail-upload > i:last-child {
  color: var(--rdg2);
}

.gallery-detail-page .gallery-related {
  margin-top: 30px;
  padding-top: 2px;
}

.gallery-related > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.gallery-related > header small {
  color: var(--rdg2);
  font: 900 10px/1.2 Poppins, sans-serif;
  letter-spacing: .09em;
}

.gallery-related > header h2 {
  margin: 4px 0 0;
  font: 800 24px/1.2 Poppins, sans-serif;
}

.gallery-related > header > a {
  color: var(--rdg2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.gallery-detail-page .gallery-related-grid a {
  min-width: 0;
  overflow: hidden;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(18,58,33,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-detail-page .gallery-related-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(18,58,33,.11);
}

.gallery-related-media {
  position: relative;
  overflow: hidden;
}

.gallery-detail-page .gallery-related-grid .gallery-related-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-detail-page .gallery-related-grid a:hover img {
  transform: scale(1.04);
}

.gallery-related-media > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--rdg);
}

.gallery-related-copy {
  min-width: 0;
  padding: 12px 13px 14px;
}

.gallery-related-copy small,
.gallery-related-copy strong,
.gallery-related-copy em {
  display: block;
}

.gallery-related-copy small {
  color: var(--rdg2);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-detail-page .gallery-related-grid .gallery-related-copy strong {
  padding: 0;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.gallery-related-copy em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

@media (max-width: 1080px) {
  .gallery-page .gallery-hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(300px,350px);
    padding: 30px;
  }

  .gallery-detail-page .gallery-detail-layout {
    grid-template-columns: minmax(0,1fr) 330px;
  }

  .gallery-detail-page .gallery-detail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gallery-page .gallery-hero-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page .gallery-hero-panel {
    width: 100%;
  }

  .gallery-page .gallery-lightbox-inner {
    height: auto;
    max-height: calc(100dvh - 48px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 1fr) auto;
    overflow-y: auto;
  }

  .gallery-page .gallery-lightbox-stage {
    min-height: 360px;
  }

  .gallery-page .gallery-lightbox-info {
    overflow: visible;
    padding: 22px;
  }

  .gallery-detail-page .gallery-detail-layout {
    grid-template-columns: 1fr;
  }

  .gallery-detail-page .gallery-detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .gallery-detail-page .gallery-detail-info-card,
  .gallery-detail-page .gallery-detail-upload,
  .gallery-detail-page .gallery-detail-credit {
    grid-column: 1 / -1;
  }

  .gallery-detail-page .gallery-detail-facts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .gallery-page .gallery-hero {
    width: calc(100% - 24px);
    min-height: 0;
    border-radius: 20px;
  }

  .gallery-page .gallery-hero-grid {
    padding: 23px 20px;
    gap: 20px;
  }

  .gallery-page .gallery-hero h1 {
    font-size: 32px;
  }

  .gallery-page .gallery-hero-copy > p {
    font-size: 13px;
  }

  .gallery-page .gallery-hero-chips {
    display: none;
  }

  .gallery-page .gallery-hero-panel {
    padding: 14px;
  }

  .gallery-page .gallery-lightbox {
    padding: 12px;
  }

  .gallery-page .gallery-lightbox-inner {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .gallery-page .gallery-lightbox-stage {
    min-height: 300px;
    padding: 14px;
  }

  .gallery-page .gallery-lightbox-info {
    gap: 14px;
    padding: 18px;
  }

  .gallery-page .gallery-lightbox-copy h2 {
    font-size: 21px;
  }

  .gallery-page .gallery-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .gallery-detail-page .gallery-shell {
    padding-inline: 12px;
  }

  .gallery-detail-heading {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .gallery-detail-heading h1 {
    font-size: 27px;
  }

  .gallery-detail-page .gallery-detail-layout {
    gap: 13px;
  }

  .gallery-detail-stage {
    min-height: 330px;
    padding: 13px;
  }

  .gallery-detail-page .gallery-detail-stage img {
    max-height: 520px;
  }

  .gallery-detail-page .gallery-detail-visual-actions {
    top: 10px;
    right: 10px;
  }

  .gallery-detail-page .gallery-detail-visual-actions button {
    height: 40px;
    padding: 0 11px;
    font-size: 11px;
  }

  .gallery-detail-visual-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 14px;
  }

  .gallery-detail-visual-stats {
    justify-content: flex-start;
  }

  .gallery-detail-page .gallery-detail-sidebar {
    grid-template-columns: 1fr;
  }

  .gallery-detail-page .gallery-detail-info-card,
  .gallery-detail-page .gallery-detail-upload,
  .gallery-detail-page .gallery-detail-credit {
    grid-column: auto;
  }

  .gallery-detail-page .gallery-detail-facts {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .gallery-detail-page .gallery-related-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 9px;
  }

  .gallery-related > header {
    align-items: flex-start;
  }

  .gallery-related > header h2 {
    font-size: 20px;
  }

  .gallery-related > header > a {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .gallery-detail-page .gallery-detail-visual-actions button span {
    display: none;
  }

  .gallery-detail-page .gallery-detail-visual-actions button {
    width: 40px;
    padding: 0;
  }

  .gallery-detail-page .gallery-detail-facts {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== 
   v0.38.2 — Container Hizası, İç Header İzolasyonu ve Sticky Düzeltmeleri
   ========================================================================== */

/*
 * İşletmeler ve Videolar sayfaları gibi ana dış kutu 1360px'dir; 20px iç
 * boşluk bu kutunun içindedir. Önceki sürümde hero 1360px'nin tamamını
 * kullanarak ortak header içerik çizgisinden daha geniş görünüyordu.
 */
.gallery-page .gallery-main {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 24px 20px 72px;
  overflow-x: clip;
}

.gallery-page .gallery-hero,
.gallery-page .gallery-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Global style.css içindeki header sticky kuralı galeri bölüm başlıklarına
 * uygulanmaz. Ana site header ve menü davranışı değişmeden kalır. */
.gallery-page .gallery-section-head,
.gallery-detail-page .gallery-detail-heading,
.gallery-detail-page .gallery-related > header {
  position: static;
  top: auto;
  z-index: auto;
  height: auto;
  min-height: 0;
  border-bottom: 0;
  box-shadow: none;
}

.gallery-page .gallery-section-head,
.gallery-detail-page .gallery-related > header {
  background: transparent;
}

/* Seçki ve topluluk başlıklarında ikon/metin/action hizasını sabitle. */
.gallery-page .gallery-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
}

.gallery-page .gallery-section-head > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gallery-page .gallery-section-head > div > div {
  min-width: 0;
}

.gallery-page .gallery-section-head small,
.gallery-page .gallery-section-head h2,
.gallery-page .gallery-section-head p {
  display: block;
  max-width: 100%;
}

.gallery-page .gallery-section-head small {
  margin: 0 0 3px;
  color: var(--rdg2);
  font: 900 10px/1.2 Poppins, sans-serif;
  letter-spacing: .08em;
}

.gallery-page .gallery-section-head h2 {
  overflow-wrap: anywhere;
}

.gallery-page .gallery-section-head p {
  overflow-wrap: anywhere;
}

.gallery-page .gallery-curated-section {
  min-width: 0;
}

/* Fotoğraf detayında sağ bilgi alanı masaüstünde artık sabit kalmaz. */
.gallery-detail-page .gallery-detail-sidebar {
  position: static;
  top: auto;
}

/* Detay sayfası da ortak header iç çizgisiyle birebir hizalanır. */
.gallery-detail-page .gallery-detail-main {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 24px 20px 76px;
}

.gallery-detail-page .gallery-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

/* Global header resetinden sonra detay başlığının kendi kart görünümünü koru. */
.gallery-detail-page .gallery-detail-heading {
  background:
    radial-gradient(circle at 92% 0, rgba(33,165,94,.1), transparent 34%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(18,58,33,.06);
}

@media (max-width: 900px) {
  .gallery-page .gallery-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-page .gallery-section-head > a {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .gallery-page .gallery-main,
  .gallery-detail-page .gallery-detail-main {
    padding-inline: 12px;
  }

  .gallery-page .gallery-hero,
  .gallery-page .gallery-shell,
  .gallery-detail-page .gallery-shell {
    width: 100%;
  }

  .gallery-page .gallery-section-head > div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .gallery-page .gallery-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}


/* ========================================================================== 
   v0.38.3 — Filtre Formu ve Ana Proje Buton Uyumu
   ========================================================================== */

.gallery-page .gallery-filterbar {
  display: block;
  min-width: 0;
  margin: 18px 0 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(45,184,112,.08), transparent 34%),
    #fff;
  box-shadow: 0 12px 32px rgba(20,50,30,.06);
}

.gallery-filterbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  margin-bottom: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9f0eb;
}

.gallery-filterbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gallery-filterbar-title > span {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e7f5ec;
  color: var(--rdg2);
  font-size: 17px;
}

.gallery-filterbar-title > div {
  min-width: 0;
}

.gallery-filterbar-title strong,
.gallery-filterbar-title small {
  display: block;
}

.gallery-filterbar-title strong {
  color: var(--ink);
  font: 800 16px/1.25 Poppins, sans-serif;
}

.gallery-filterbar-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.gallery-filter-reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d9e6dd;
  border-radius: 999px;
  background: #f8fbf9;
  color: #42604f;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.gallery-filter-reset:hover {
  border-color: #b8d6c2;
  background: #edf7f0;
  color: var(--rdg);
}

.gallery-filter-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(145px, .72fr)) minmax(126px, .48fr);
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.gallery-filter-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.gallery-filter-field > span {
  padding-left: 2px;
  color: #52675b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.gallery-page .gallery-filterbar input,
.gallery-page .gallery-filterbar select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #d7e2da;
  border-radius: 13px;
  background-color: #fff;
  color: #1c3325;
  font: 800 13px/1 Nunito, sans-serif;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.gallery-page .gallery-filterbar select {
  padding: 0 38px 0 13px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #567064 50%),
    linear-gradient(135deg, #567064 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 20px,
    calc(100% - 12px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.gallery-search {
  position: relative;
  min-width: 0;
}

.gallery-search > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #6a8174;
  pointer-events: none;
}

.gallery-page .gallery-search input {
  padding: 0 14px 0 43px;
}

.gallery-page .gallery-filterbar input:hover,
.gallery-page .gallery-filterbar select:hover {
  border-color: #bfd2c5;
  background-color: #fcfefd;
}

.gallery-page .gallery-filterbar input:focus,
.gallery-page .gallery-filterbar select:focus {
  border-color: #42a873;
  box-shadow: 0 0 0 3px rgba(34,168,97,.12);
  background-color: #fff;
}

/* Ana projedeki hero birincil butonunun ölçü, degrade ve gölge dili. */
.gallery-page .gallery-filterbar .gallery-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--g3, #2db870), var(--g4, #8ee0ae));
  color: var(--g1, #073d21);
  font-family: Nunito, sans-serif;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(45,184,112,.36);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.gallery-page .gallery-filterbar .gallery-filter-submit > span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
}

.gallery-page .gallery-filterbar .gallery-filter-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,184,112,.48);
  filter: saturate(1.04);
}

.gallery-page .gallery-filterbar .gallery-filter-submit:focus-visible,
.gallery-filter-reset:focus-visible {
  outline: 3px solid rgba(34,168,97,.24);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .gallery-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-filter-search-field {
    grid-column: 1 / -1;
  }

  .gallery-page .gallery-filterbar .gallery-filter-submit {
    align-self: end;
  }
}

@media (max-width: 680px) {
  .gallery-page .gallery-filterbar {
    margin-top: 14px;
    padding: 14px;
    border-radius: 17px;
  }

  .gallery-filterbar-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 13px;
    padding-bottom: 12px;
  }

  .gallery-filterbar-title {
    align-items: flex-start;
  }

  .gallery-filterbar-title > span {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .gallery-filterbar-title strong {
    font-size: 14px;
  }

  .gallery-filterbar-title small {
    font-size: 11px;
  }

  .gallery-filter-reset {
    width: 100%;
    min-height: 40px;
  }

  .gallery-filter-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .gallery-filter-search-field {
    grid-column: auto;
  }

  .gallery-page .gallery-filterbar input,
  .gallery-page .gallery-filterbar select,
  .gallery-page .gallery-filterbar .gallery-filter-submit {
    min-height: 50px;
  }

  .gallery-page .gallery-filterbar .gallery-filter-submit {
    margin-top: 2px;
    font-size: 14px;
  }
}
