.gunduz-projects-instance,.gunduz-projects-instance *{box-sizing:border-box}
.gunduz-projects-grid{display:grid;grid-template-columns:repeat(var(--gunduz-cols,3),minmax(0,1fr));gap:26px}
.gunduz-project-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;overflow:hidden;cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.gunduz-project-card:hover{transform:translateY(-5px);box-shadow:0 15px 40px rgba(0,0,0,.12)}
.gunduz-project-image{position:relative;aspect-ratio:4/3;overflow:hidden;background:#f2f2f2}
.gunduz-project-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.gunduz-project-card:hover .gunduz-project-image img{transform:scale(1.04)}
.gunduz-project-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.54),rgba(0,0,0,0) 60%);display:flex;align-items:flex-end;padding:20px;opacity:0;transition:.25s}
.gunduz-project-card:hover .gunduz-project-overlay{opacity:1}
.gunduz-project-overlay span{color:#fff;font-size:14px;font-weight:600}
.gunduz-project-card-body{padding:18px 20px 20px}
.gunduz-project-card-body h3{margin:0;font-size:20px;line-height:1.3;color:#1d1d1d}
.gunduz-no-image{width:100%;height:100%;min-height:180px;display:flex;align-items:center;justify-content:center;color:#777;background:#eee}
.gunduz-slider-wrap{position:relative}
.gunduz-projects-slider{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - (var(--gunduz-desktop,3) - 1)*24px)/var(--gunduz-desktop,3));gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 2px 16px}
.gunduz-projects-slider::-webkit-scrollbar{display:none}
.gunduz-projects-slider .gunduz-project-card{scroll-snap-align:start}
.gunduz-slider-btn{position:absolute;top:42%;transform:translateY(-50%);z-index:5;border:0;width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.16);font-size:32px;line-height:1;cursor:pointer}
.gunduz-slider-btn.prev{left:-18px}.gunduz-slider-btn.next{right:-18px}

/* Popup viewporttan bağımsız çalışır; Elementor/Porto container overflow ve transformlarından etkilenmez. */
.gunduz-project-modal,.gunduz-project-modal *{box-sizing:border-box}
.gunduz-project-modal{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:24px;overflow:hidden}
.gunduz-project-modal.open{display:flex}
.gunduz-project-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}
.gunduz-project-dialog{position:relative;z-index:1;width:min(1180px,calc(100vw - 48px));height:min(760px,calc(100vh - 48px));min-width:0;min-height:0;overflow:hidden;background:#fff;border-radius:18px;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);box-shadow:0 30px 90px rgba(0,0,0,.35)}
.gunduz-project-dialog.is-title-only{grid-template-columns:minmax(0,1fr) minmax(220px,280px)}
.gunduz-project-close{position:absolute!important;right:14px!important;top:12px!important;z-index:20!important;display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:#111!important;box-shadow:0 3px 14px rgba(0,0,0,.12)!important;font:400 28px/1 Arial,sans-serif!important;cursor:pointer!important}
.gunduz-project-modal-gallery{position:relative;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;background:#111;display:grid;grid-template-rows:minmax(0,1fr) auto}
.gunduz-project-main-image{min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#111}
.gunduz-project-main-image img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center}
.gunduz-project-nav{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;z-index:8!important;display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;color:#111!important;box-shadow:0 4px 16px rgba(0,0,0,.16)!important;font:400 29px/1 Arial,sans-serif!important;cursor:pointer!important}
.gunduz-project-nav.prev{left:14px!important}.gunduz-project-nav.next{right:14px!important}
.gunduz-project-thumbs{min-width:0;width:100%;height:78px;display:flex;align-items:center;gap:8px;padding:10px;overflow-x:auto;overflow-y:hidden;background:#111;overscroll-behavior-x:contain;scrollbar-width:thin}
.gunduz-project-thumbs button{display:block!important;flex:0 0 72px!important;width:72px!important;height:56px!important;min-width:72px!important;min-height:56px!important;padding:0!important;margin:0!important;border:2px solid transparent!important;background:none!important;border-radius:7px!important;overflow:hidden!important;opacity:.65;cursor:pointer!important}
.gunduz-project-thumbs button.active{border-color:#fff!important;opacity:1}
.gunduz-project-thumbs img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.gunduz-project-modal-content{min-width:0;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;padding:52px 34px 34px;background:#fff;overscroll-behavior:contain}
.gunduz-project-modal-content h2{margin:0 42px 20px 0;font-size:32px;line-height:1.2;color:#111;overflow-wrap:anywhere;word-break:normal}
.gunduz-project-description{max-width:100%;font-size:16px;line-height:1.75;color:#333;overflow-wrap:anywhere}
.gunduz-project-description>:first-child{margin-top:0}.gunduz-project-description>:last-child{margin-bottom:0}
.gunduz-project-description img,.gunduz-project-description video,.gunduz-project-description iframe{max-width:100%;height:auto}
.gunduz-project-description table{display:block;max-width:100%;overflow-x:auto}
.gunduz-project-dialog.is-title-only .gunduz-project-modal-content{padding-right:26px;padding-left:26px}
.gunduz-project-dialog.is-title-only .gunduz-project-modal-content h2{margin-right:36px}
.gunduz-modal-open{overflow:hidden!important}

@media(max-width:900px){
  .gunduz-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gunduz-projects-slider{grid-auto-columns:72%}
  .gunduz-project-modal{padding:12px}
  .gunduz-project-dialog,.gunduz-project-dialog.is-title-only{width:calc(100vw - 24px);height:calc(100vh - 24px);grid-template-columns:1fr;grid-template-rows:minmax(0,58%) minmax(0,42%);border-radius:14px}
  .gunduz-project-modal-content{padding:30px 24px 28px}
  .gunduz-project-modal-content h2{font-size:26px;margin-right:42px;margin-bottom:14px}
  .gunduz-project-thumbs{height:72px}
  .gunduz-project-thumbs button{flex-basis:66px!important;width:66px!important;height:50px!important;min-width:66px!important;min-height:50px!important}
}
@media(max-width:560px){
  .gunduz-projects-grid{grid-template-columns:1fr}
  .gunduz-projects-slider{grid-auto-columns:88%}
  .gunduz-slider-btn{width:38px;height:38px;font-size:26px}
  .gunduz-slider-btn.prev{left:-6px}.gunduz-slider-btn.next{right:-6px}
  .gunduz-project-modal{padding:6px}
  .gunduz-project-dialog,.gunduz-project-dialog.is-title-only{width:calc(100vw - 12px);height:calc(100vh - 12px);grid-template-rows:minmax(0,56%) minmax(0,44%);border-radius:12px}
  .gunduz-project-modal-content{padding:24px 18px 24px}
  .gunduz-project-modal-content h2{font-size:23px}
  .gunduz-project-description{font-size:15px;line-height:1.65}
  .gunduz-project-nav{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;font-size:25px!important}
  .gunduz-project-nav.prev{left:8px!important}.gunduz-project-nav.next{right:8px!important}
  .gunduz-project-close{right:8px!important;top:8px!important}
}
