/* Elektrikli Şömine Galerisi — bileşen kapsamına alınmış stiller */
.esg-gallery{--esg-orange:var(--esk-orange,#f36d12);--esg-text:#1f1c1a;--esg-muted:#6b6764;--esg-line:#eee8e3;--esg-surface:#fff;max-width:1340px;width:100%;margin:28px auto 42px;color:var(--esg-text);font-family:inherit;box-sizing:border-box}
.esg-gallery *, .esg-gallery *::before,.esg-gallery *::after{box-sizing:border-box}
.esg-gallery button{font-family:inherit;cursor:pointer}
.esg-gallery button:focus-visible,.esg-gallery a:focus-visible{outline:3px solid #f9a15d;outline-offset:3px}
.esg-gallery .esg-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:25px}
.esg-gallery .esg-kicker{display:block;color:var(--esg-orange);letter-spacing:.12em;font-size:11px;font-weight:800;margin-bottom:7px}
.esg-gallery .esg-heading h2{color:var(--esg-text);font-size:clamp(27px,3vw,40px);line-height:1.2;font-weight:800;letter-spacing:-.035em;margin:0 0 9px}
.esg-gallery .esg-heading p{margin:0;color:var(--esg-muted);font-size:14px;line-height:1.6}
.esg-gallery .esg-heading-decoration{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:16px;color:var(--esg-orange);background:#fff1e5;border:1px solid #f7dfca}
.esg-gallery .esg-heading-decoration svg{width:29px;height:29px}
.esg-gallery .esg-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:25px;padding-bottom:16px;border-bottom:1px solid var(--esg-line)}
.esg-gallery .esg-filter{border:1px solid #e9ded6;color:#44403c;border-radius:50px;padding:10px 17px;background:#fff;font-size:13px;line-height:1.2;font-weight:700;transition:color .2s,background .2s,border-color .2s}
.esg-gallery .esg-filter:hover{border-color:var(--esg-orange);color:#b64b06}
.esg-gallery .esg-filter.is-active{background:#201b18;color:#fff;border-color:#201b18}
.esg-gallery .esg-grid{display:grid;grid-template-columns:repeat(var(--esg-columns,4),minmax(0,1fr));gap:20px;align-items:stretch}
.esg-gallery .esg-card{min-width:0;min-height:0;background:#fff;border:1px solid #eae5e0;border-radius:14px;overflow:hidden;box-shadow:0 10px 26px rgba(38,23,14,.06);transition:transform .22s,border-color .22s,box-shadow .22s}
.esg-gallery .esg-card:hover{transform:translateY(-4px);border-color:#f4c9a7;box-shadow:0 17px 36px rgba(38,23,14,.11)}
.esg-gallery .esg-card-trigger{border:0;background:transparent;color:inherit;width:100%;height:100%;padding:0;display:flex;flex-direction:column;text-align:left;cursor:zoom-in}
.esg-gallery .esg-card-picture{display:block;position:relative;width:100%;aspect-ratio:4 / 3;overflow:hidden;background:#201b17}
.esg-gallery .esg-card-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.esg-gallery .esg-card:hover .esg-card-image{transform:scale(1.055)}
.esg-gallery .esg-card-zoom{position:absolute;bottom:14px;right:14px;background:#fff;color:#1f1915;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;opacity:.92;transform:translateY(6px);transition:transform .2s,background .2s}
.esg-gallery .esg-card:hover .esg-card-zoom{transform:translateY(0);background:var(--esg-orange);color:#fff}
.esg-gallery .esg-card-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:17px 17px 15px}
.esg-gallery .esg-card-tag{font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:#cd5a0d;background:#fff1e8;border-radius:5px;padding:5px 8px;margin-bottom:9px}
.esg-gallery .esg-card-title{display:block;font-size:17px;line-height:1.35;font-weight:800;color:#221c18;margin-bottom:6px}
.esg-gallery .esg-card-summary{font-size:12px;line-height:1.65;color:#756b64;margin:0 0 14px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.esg-gallery .esg-card-more{display:flex;align-items:center;gap:8px;color:#de5c08;font-size:12px;font-weight:800;margin-top:auto}
.esg-gallery .esg-card-more svg{width:17px;height:17px}
.esg-gallery .esg-empty{font-size:14px;text-align:center;background:#fff;border:1px dashed #e0d6cd;color:#716b65;border-radius:13px;padding:30px 16px;margin:16px 0}
.esg-gallery .esg-load-region{display:flex;justify-content:center;margin:25px 0 8px}
.esg-gallery .esg-load-more{display:inline-flex;gap:12px;align-items:center;justify-content:center;background:#fff;border:1px solid var(--esg-orange);color:#c5530d;border-radius:9px;padding:13px 24px;font-weight:800;font-size:13px}
.esg-gallery .esg-load-more:hover{background:var(--esg-orange);color:#fff}
.esg-gallery .esg-load-more:disabled{opacity:.55;cursor:wait}
.esg-gallery .esg-status{font-size:12px;text-align:center;color:#8b6250;margin:7px 0}
.esg-gallery [hidden]{display:none!important}

/* v1.1.0: Page-specific card style and image proportions. Scoped to this gallery only. */
.esg-gallery.esg-style-border .esg-card{box-shadow:none;border:2px solid #e6dfd8}
.esg-gallery.esg-style-border .esg-card:hover{box-shadow:0 7px 22px rgba(42,25,12,.07);border-color:var(--esg-orange)}
.esg-gallery.esg-style-minimal .esg-card{border:0;border-radius:8px;box-shadow:none;background:transparent}
.esg-gallery.esg-style-minimal .esg-card:hover{transform:none;box-shadow:none}
.esg-gallery.esg-style-minimal .esg-card-picture{border-radius:8px}
.esg-gallery.esg-style-minimal .esg-card-body{padding:14px 1px 8px}
.esg-gallery.esg-ratio-landscape .esg-card-picture{aspect-ratio:4 / 3}
.esg-gallery.esg-ratio-square .esg-card-picture{aspect-ratio:1 / 1}
.esg-gallery.esg-ratio-portrait .esg-card-picture{aspect-ratio:3 / 4}

/* v1.5.0: category-based ratio for each card, stronger specificity than the general gallery fallback. */
.esg-gallery .esg-card.esg-card-ratio-landscape .esg-card-picture{aspect-ratio:4 / 3}
.esg-gallery .esg-card.esg-card-ratio-square .esg-card-picture{aspect-ratio:1 / 1}
.esg-gallery .esg-card.esg-card-ratio-portrait .esg-card-picture{aspect-ratio:3 / 4}



/* v1.3.0 — premium detail view inspired by the approved design.
   The existing gallery grid, category filters, shortcodes and settings are unchanged. */
.esg-gallery .esg-modal{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:clamp(10px,3vw,36px);color:#28211d}
.esg-gallery .esg-modal-backdrop{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 25%,rgba(51,33,21,.78),rgba(12,9,7,.94));backdrop-filter:blur(8px)}
.esg-gallery .esg-modal-panel{position:relative;width:min(1390px,100%);height:min(800px,calc(100dvh - 72px));max-height:calc(100dvh - 20px);background:#fff;border:1px solid #eee8e3;border-radius:24px;box-shadow:0 30px 100px rgba(0,0,0,.45);overflow:hidden;outline:0}
.esg-gallery .esg-modal-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(350px,.88fr);height:100%;min-height:0}
.esg-gallery .esg-modal-visual{min-width:0;min-height:0;display:grid;grid-template-columns:114px minmax(0,1fr);gap:20px;padding:66px 22px 50px 25px;background:#fff;overflow:hidden}
.esg-gallery .esg-modal-visual.is-single-photo{grid-template-columns:1fr;padding-left:30px}
.esg-gallery .esg-modal-thumbs{display:flex;flex-direction:column;gap:12px;align-items:stretch;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:3px 6px 8px 3px;scrollbar-width:thin;scrollbar-color:#dfcfc4 transparent}
.esg-gallery .esg-modal-thumb{flex:none;display:grid;place-items:center;padding:5px;width:100%;aspect-ratio:1/1;border-radius:15px;border:2px solid #eee8e4;background:#fff;box-shadow:0 4px 9px rgba(34,26,20,.10);transition:border-color .2s,box-shadow .2s,transform .2s}
.esg-gallery .esg-modal-thumb img{display:block;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:9px}
.esg-gallery .esg-modal-thumb:hover{border-color:#ffad70;transform:translateY(-2px)}
.esg-gallery .esg-modal-thumb.is-active{border-color:var(--esg-orange);box-shadow:0 0 0 2px #ffe5d0,0 5px 15px rgba(208,83,7,.14)}
.esg-gallery .esg-modal-image-stage{position:relative;min-height:0;min-width:0;width:100%;display:flex;justify-content:center;align-items:center;background:#fff}
.esg-gallery .esg-modal-image{display:block;max-height:100%;max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center center}
.esg-gallery .esg-modal-arrows{position:absolute;inset:50% 4px auto;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;gap:8px}
.esg-gallery .esg-modal-arrows button{pointer-events:auto;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid #7c7773;background:rgba(27,25,23,.88);color:#fff;box-shadow:0 4px 15px #0002;transition:background .18s,border-color .18s}
.esg-gallery .esg-modal-arrows button:hover:not(:disabled){background:var(--esg-orange);border-color:var(--esg-orange)}
.esg-gallery .esg-modal-arrows button:disabled{opacity:.25;cursor:default}
.esg-gallery .esg-modal-count{position:absolute;right:16px;bottom:22px;padding:7px 13px;color:#fff;background:rgba(30,30,30,.72);border-radius:30px;font-size:12px;font-weight:800;letter-spacing:.02em}
.esg-gallery .esg-modal-close{position:absolute;z-index:5;top:18px;right:18px;display:grid;place-items:center;width:52px;height:52px;border-radius:14px;border:2px solid var(--esg-orange);background:#201c1a;color:#fff;box-shadow:0 0 0 3px #ffe9d7}
.esg-gallery .esg-modal-close:hover{background:#c94e06}
.esg-gallery .esg-modal-details{display:flex;flex-direction:column;min-width:0;min-height:0;padding:80px 30px 30px 12px;overflow-y:auto;overscroll-behavior:contain}
.esg-gallery .esg-modal-details-inner{flex:0 0 auto}
.esg-gallery .esg-modal-eyebrow{display:flex;align-items:center;gap:15px;margin:0 0 23px;color:#d65a0c;font-size:12px;font-weight:850;letter-spacing:.12em}
.esg-gallery .esg-modal-eyebrow:after{content:"";height:1px;flex:1;background:#f3d4c3}
.esg-gallery .esg-detail-title{font-size:clamp(25px,2.6vw,34px);font-weight:850;line-height:1.18;letter-spacing:-.035em;color:#1e1b19;margin:0 0 15px;overflow-wrap:anywhere}
.esg-gallery .esg-detail-tag{display:inline-flex;padding:9px 13px;margin:0 0 19px;border:1px solid #ffddc8;background:#fff1e7;border-radius:11px;color:#cd5610;font-weight:800;font-size:12px}
.esg-gallery .esg-detail-description{font-size:15px;line-height:1.8;color:#5e5b59;margin:14px 0 25px;overflow-wrap:anywhere}
.esg-gallery .esg-detail-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:14px 0 24px}
.esg-gallery .esg-detail-highlights{margin:20px 0 24px}
.esg-gallery .esg-detail-highlights>strong{font-size:13px;color:#342923;display:block;margin-bottom:12px}
.esg-gallery .esg-detail-feature{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-width:0;padding:9px 8px 11px;text-align:center;border-right:1px solid #eadcd2;color:#312c29;font-size:12px;font-weight:750;line-height:1.45;overflow-wrap:anywhere}
.esg-gallery .esg-detail-feature:nth-child(3n){border-right:0}
.esg-gallery .esg-detail-feature-icon{display:grid;place-items:center;background:#fff4ed;border-radius:50%;width:39px;height:39px;color:var(--esg-orange)}
.esg-gallery .esg-detail-feature-icon svg{width:21px;height:21px}
.esg-gallery .esg-detail-list{display:grid;gap:0;margin:17px 0 24px;border:1px solid #f0e8e2;border-radius:12px;overflow:hidden;background:#fffdfb}
.esg-gallery .esg-detail-pair{display:grid;grid-template-columns:42% minmax(0,1fr);gap:12px;padding:11px 14px;border-bottom:1px solid #f2ebe6;align-items:start}
.esg-gallery .esg-detail-pair:last-child{border-bottom:0}
.esg-gallery .esg-detail-pair dt{color:#8d7b70;font-size:12px;font-weight:650}
.esg-gallery .esg-detail-pair dd{margin:0;color:#332923;font-size:13px;font-weight:750;line-height:1.5;overflow-wrap:anywhere}
.esg-gallery .esg-detail-cta{display:flex;align-items:center;justify-content:space-between;gap:13px;min-height:62px;margin-top:18px;padding:13px 20px;background:linear-gradient(105deg,#fa6e09,#dd4f00);color:white;text-decoration:none;border-radius:13px;box-shadow:0 7px 17px rgba(211,90,10,.2);font-size:15px;font-weight:850}
.esg-gallery .esg-detail-cta:hover{background:#c34b05;color:#fff}
.esg-gallery .esg-detail-cta svg{flex:0 0 auto;width:21px;height:21px}
.esg-gallery .esg-detail-cta span{flex:1}
.esg-gallery .esg-detail-link{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:800;text-decoration:none;color:#cc5206;margin:12px 0 0}
.esg-gallery .esg-detail-link:hover{color:#9d3a07}
.esg-gallery .esg-modal-project-nav{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid #eee1d7;padding-top:20px;margin-top:auto}
.esg-gallery .esg-modal-project-nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 10px;border:1px solid #e9dbd1;background:#fff;border-radius:10px;color:#6b4530;font-size:12px;line-height:1.3;font-weight:800;min-width:0}
.esg-gallery .esg-modal-project-nav button:hover:not(:disabled){border-color:var(--esg-orange);background:#fff6ef}
.esg-gallery .esg-modal-project-nav button:disabled{opacity:.38;cursor:default}
.esg-gallery .esg-modal-project-nav svg{width:17px;height:17px;flex:0 0 auto}
/* Main grid remains responsive: the modal has an independent viewport layout. */
@media(max-width:1200px){
 .esg-gallery .esg-grid{grid-template-columns:repeat(min(var(--esg-columns,4),3),minmax(0,1fr))}
 .esg-gallery .esg-modal-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.9fr)}
 .esg-gallery .esg-modal-visual{grid-template-columns:90px minmax(0,1fr);gap:12px;padding:62px 13px 36px 15px}
 .esg-gallery .esg-modal-details{padding:78px 21px 25px 12px}
}
@media(max-width:900px){
 .esg-gallery .esg-modal{padding:14px}
 .esg-gallery .esg-modal-panel{height:calc(100dvh - 28px);max-height:calc(100dvh - 28px);border-radius:18px}
 .esg-gallery .esg-modal-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,54%) minmax(0,46%)}
 .esg-gallery .esg-modal-visual{grid-template-columns:94px minmax(0,1fr);padding:20px 28px 16px 16px;gap:14px}
 .esg-gallery .esg-modal-details{padding:19px 24px 24px}
 .esg-gallery .esg-modal-eyebrow{margin-bottom:11px}
 .esg-gallery .esg-modal-project-nav{margin-top:22px}
 .esg-gallery .esg-modal-close{width:43px;height:43px;top:13px;right:13px}
}
@media(max-width:680px){
 .esg-gallery .esg-grid{grid-template-columns:repeat(min(var(--esg-columns,4),2),minmax(0,1fr));gap:12px}
 .esg-gallery .esg-card-body{padding:12px}
 .esg-gallery .esg-card-title{font-size:15px}
 .esg-gallery .esg-heading-decoration{display:none}
 .esg-gallery .esg-modal{padding:6px}
 .esg-gallery .esg-modal-panel{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:15px}
 .esg-gallery .esg-modal-layout{grid-template-rows:minmax(0,48%) minmax(0,52%)}
 .esg-gallery .esg-modal-visual,.esg-gallery .esg-modal-visual.is-single-photo{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;padding:52px 13px 9px;gap:7px}
 .esg-gallery .esg-modal-image-stage{grid-row:1}
 .esg-gallery .esg-modal-thumbs{grid-row:2;flex-direction:row;overflow-x:auto;overflow-y:hidden;min-height:0;max-height:77px;align-items:center;padding:4px 2px 6px;gap:8px}
 .esg-gallery .esg-modal-thumb{flex:0 0 60px;width:60px;height:60px;aspect-ratio:auto;border-radius:10px;padding:3px}
 .esg-gallery .esg-modal-thumb img{border-radius:6px}
 .esg-gallery .esg-modal-arrows{inset:50% 0 auto}
 .esg-gallery .esg-modal-arrows button{height:35px;width:35px}
 .esg-gallery .esg-modal-count{right:12px;bottom:8px;font-size:10px}
 .esg-gallery .esg-modal-details{padding:16px 19px 21px}
 .esg-gallery .esg-detail-title{font-size:24px}
 .esg-gallery .esg-detail-description{font-size:13px;margin:10px 0}
 .esg-gallery .esg-detail-feature-grid{gap:0}
 .esg-gallery .esg-detail-cta{min-height:48px;padding:10px 14px;font-size:13px}
 .esg-gallery .esg-modal-project-nav button{font-size:11px;padding:8px 7px}
 .esg-gallery .esg-modal-close{width:39px;height:39px;top:9px;right:10px}
}
@media(max-width:420px){
 .esg-gallery .esg-grid{gap:9px}
 .esg-gallery .esg-card-title{font-size:13px}
 .esg-gallery .esg-card-summary{font-size:11px}
 .esg-gallery .esg-filter{font-size:12px;padding:9px 12px}
 .esg-gallery .esg-detail-pair{grid-template-columns:38% minmax(0,1fr);gap:6px}
}
@media(prefers-reduced-motion:reduce){.esg-gallery *, .esg-gallery *:before,.esg-gallery *:after{transition:none!important;animation:none!important}}
