/* Özgün Fuarcılık - Galeri */
.ozgun-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px 60px;
}

.ozgun-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
  list-style: none;
}

.ozgun-gallery-tabs button {
  border: 1px solid #c9c9c9;
  background: #fff;
  color: #333;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ozgun-gallery-tabs button:hover,
.ozgun-gallery-tabs button:focus {
  border-color: #3799FF;
  color: #3799FF;
  outline: none;
}

.ozgun-gallery-tabs button.is-active {
  background: #3799FF;
  border-color: #3799FF;
  color: #fff;
}

.ozgun-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ozgun-gallery-item {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(12px);
  animation: ozgunGalleryFade 0.35s ease forwards;
}

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

.ozgun-gallery-item:hover img,
.ozgun-gallery-item:focus img {
  transform: scale(1.06);
}

.ozgun-gallery-item:focus {
  outline: 2px solid #3799FF;
  outline-offset: 2px;
}

@keyframes ozgunGalleryFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ozgun-gallery-status {
  text-align: center;
  padding: 28px 10px;
  color: #666;
  font-size: 15px;
  min-height: 24px;
}

.ozgun-gallery-loader {
  display: none;
  text-align: center;
  padding: 20px;
  color: #3799FF;
  font-size: 14px;
}

.ozgun-gallery-loader.is-visible {
  display: block;
}

.ozgun-gallery-sentinel {
  height: 1px;
  width: 100%;
  margin-top: 8px;
}

/* Lightbox */
.ozgun-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 16px;
}

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

.ozgun-lightbox__img-wrap {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 90vh;
}

.ozgun-lightbox__img-wrap img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.ozgun-lightbox__close,
.ozgun-lightbox__prev,
.ozgun-lightbox__next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.ozgun-lightbox__close:hover,
.ozgun-lightbox__prev:hover,
.ozgun-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.ozgun-lightbox__close {
  top: 16px;
  right: 16px;
  z-index: 2;
  position: fixed;
}

.ozgun-lightbox__prev,
.ozgun-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
  z-index: 2;
}

.ozgun-lightbox__prev { left: 12px; }
.ozgun-lightbox__next { right: 12px; }

.ozgun-lightbox__counter {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  z-index: 2;
}

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

/* Scroll to top — ekranın sağ alt köşesinde sabit */
#ozgunScrollTop.ozgun-scroll-top,
button#ozgunScrollTop {
  position: fixed !important;
  right: 15px !important;
  bottom: 15px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  display: none;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: #3799FF !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 48px !important;
  text-align: center !important;
  cursor: pointer !important;
  float: none !important;
  clear: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  -webkit-tap-highlight-color: transparent;
}

#ozgunScrollTop.ozgun-scroll-top i,
button#ozgunScrollTop i {
  display: inline-block !important;
  line-height: 48px !important;
  color: #fff !important;
  font-size: 18px !important;
}

#ozgunScrollTop.ozgun-scroll-top.is-visible,
button#ozgunScrollTop.is-visible {
  display: block !important;
}

#ozgunScrollTop.ozgun-scroll-top:hover,
#ozgunScrollTop.ozgun-scroll-top:focus,
button#ozgunScrollTop:hover,
button#ozgunScrollTop:focus {
  background: #2a7fd6 !important;
  outline: none !important;
  color: #fff !important;
}

body.ozgun-lightbox-open #ozgunScrollTop {
  display: none !important;
}

/* Responsive: tablet 3, mobile 2 */
@media (max-width: 991px) {
  .ozgun-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 575px) {
  .ozgun-gallery {
    padding: 12px 10px 40px;
  }

  .ozgun-gallery-tabs {
    gap: 6px;
    margin-bottom: 18px;
  }

  .ozgun-gallery-tabs button {
    padding: 9px 12px;
    font-size: 12px;
    flex: 1 1 calc(50% - 6px);
  }

  .ozgun-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .ozgun-lightbox__prev,
  .ozgun-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .ozgun-lightbox__prev { left: 6px; }
  .ozgun-lightbox__next { right: 6px; }

  #ozgunScrollTop.ozgun-scroll-top,
  button#ozgunScrollTop {
    right: 15px !important;
    bottom: 15px !important;
    width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
  }

  #ozgunScrollTop.ozgun-scroll-top i,
  button#ozgunScrollTop i {
    line-height: 44px !important;
    font-size: 16px !important;
  }
}

/* Anasayfa: Uygulamalarimizdan Ornekler — 3 sütun x 2 satır, eşit kutu */
#homeGalleryExamples {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  float: none !important;
  clear: both;
  width: 100%;
  overflow: hidden;
}

#homeGalleryExamples .l_gallery_item {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

#homeGalleryExamples .l_gallery_item a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

#homeGalleryExamples .l_gallery_item img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

#homeGalleryExamples .l_gallery_item:hover img {
  transform: scale(1.05);
}

@media (max-width: 575px) {
  #homeGalleryExamples {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}
