.ti-work-gallery {
  --ti-dark: #171717;
  --ti-gold: #d89a31;
  --ti-soft: #f7f3ec;
  --ti-line: #e8dfd3;
  --ti-muted: #5f5a54;
  margin: 0 auto 26px;
  max-width: 1290px;
  padding: 0 15px;
  font-family: 'Manrope', 'Roboto', sans-serif;
}

/* Edifice teması h2/h3 için Bebas Neue kullanıyor — widget içinde sıfırla */
.elementor-widget-ti-work-gallery .ti-work-gallery,
.elementor-widget-ti-work-gallery .ti-work-gallery * {
  font-family: 'Manrope', 'Roboto', sans-serif;
}

.elementor-widget-ti-work-gallery .ti-work-gallery__title,
.elementor-widget-ti-work-gallery .ti-work-gallery__title a {
  font-family: 'Manrope', 'Roboto', sans-serif !important;
  font-weight: 800 !important;
  font-style: normal !important;
  text-transform: none !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
}

.ti-work-gallery__shell {
  border: 1px solid var(--ti-line);
  border-radius: 30px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 18px 50px rgba(45, 34, 18, 0.06);
}

.ti-work-gallery--tone-soft .ti-work-gallery__shell {
  background: linear-gradient(180deg, #fff 0%, var(--ti-soft) 100%);
}

.ti-work-gallery--tone-dark .ti-work-gallery__shell {
  background: linear-gradient(135deg, #141414, #221b14);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ti-work-gallery--tone-dark .ti-work-gallery__title,
.ti-work-gallery--tone-dark .ti-work-gallery__title a {
  color: #fff;
}

.ti-work-gallery--tone-dark .ti-work-gallery__desc {
  color: rgba(255, 255, 255, 0.78);
}

.ti-work-gallery--tone-dark .ti-work-gallery__actions button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ti-work-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.ti-work-gallery__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(216, 154, 49, 0.12);
  color: var(--ti-gold);
  text-transform: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.ti-work-gallery__title {
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--ti-dark);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.ti-work-gallery__title a {
  color: inherit;
  text-decoration: none;
}

.ti-work-gallery__title a:hover {
  color: var(--ti-gold);
}

.ti-work-gallery__desc {
  margin: 0 0 16px;
  max-width: 760px;
  line-height: 1.72;
  color: var(--ti-muted);
}

.ti-work-gallery__btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ti-gold);
  color: #111 !important;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(216, 154, 49, 0.24);
}

.ti-work-gallery__body {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: stretch;
}

.ti-work-gallery--layout-standard .ti-work-gallery__body {
  grid-template-columns: 1fr;
}

.ti-work-gallery__feature {
  position: relative;
  display: block;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}

.ti-work-gallery__feature img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ti-work-gallery__feature:hover img {
  transform: scale(1.04);
}

.ti-work-gallery__feature span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 11px 14px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.ti-work-gallery__actions,
.ti-gallery-actions {
  display: inline-flex;
  gap: 10px;
  flex: 0 0 auto;
}

.ti-work-gallery__actions button,
.ti-gallery-actions button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ti-line);
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.ti-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  align-items: stretch;
}

.ti-gallery-item {
  flex: 0 0 calc(50% - 9px);
  position: relative;
  min-height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
  text-decoration: none !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.11);
}

.ti-gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ti-gallery-item:hover img {
  transform: scale(1.04);
}

.ti-gallery-item strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 11px 14px;
  backdrop-filter: blur(8px);
}

.ti-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 34px;
}

.ti-lightbox.is-open {
  display: flex;
}

.ti-lightbox__inner {
  position: relative;
  width: min(1120px, 92vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ti-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  object-fit: contain;
}

.ti-lightbox p {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  margin: 0;
  max-width: min(760px, 86vw);
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  text-align: center;
}

.ti-lightbox button {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ti-lightbox__close {
  right: 28px;
  top: 24px;
}

.ti-lightbox__prev {
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.ti-lightbox__next {
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
}

body.ti-lightbox-open {
  overflow: hidden;
}

body.elementor-editor-active .ti-work-gallery,
body.elementor-editor-preview .ti-work-gallery,
.elementor-editor-active .ti-work-gallery {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 991px) {
  .ti-work-gallery__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ti-work-gallery__body {
    grid-template-columns: 1fr;
  }

  .ti-gallery-item {
    flex-basis: 88%;
  }

  .ti-gallery-item img {
    height: 280px;
  }

  .ti-lightbox__prev {
    left: 12px;
  }

  .ti-lightbox__next {
    right: 12px;
  }
}
