* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow: auto;
  height: 100%;
  width: 100%;
}

.sutore-gallery-container {
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  left: 0;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
  z-index: 10000;
  background-color: #ffffff;
  cursor: zoom-out;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-zoom: none;
  -ms-touch-action: manipulation;
}

.sutore-gallery-wrapper {
  width: 100vw;
  height: max-content;
  display: flex;
  flex-direction: column;
}

.sutore-gallery-item {
  flex: 0 0 100vh;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-zoom: none;
  -ms-touch-action: manipulation;
}

@media (max-width: 768px) {
  .sutore-gallery-container {
    overflow-y: hidden;
    overflow-x: scroll;
    touch-action: manipulation;
  }

  .sutore-gallery-wrapper {
    width: max-content;
    height: 100vh;
    flex-direction: row;
  }

  .sutore-gallery-item {
    width: 100vw;
    height: 100vh;
    touch-action: manipulation;
  }
}

.sutore-gallery-item img {
  width: 90%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  pointer-events: none;
  -webkit-user-zoom: none;
  -ms-touch-action: manipulation;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Popüler masaüstü çözünürlükleri için görsel genişliği (piksel) */
/* 1280px ve altı - küçük ekranlar */
@media (min-width: 769px) and (max-width: 1280px) {
  .sutore-gallery-item img {
    width: 1000px;
    max-width: 100%;
  }
}

/* 1366px - HD */
@media (min-width: 1281px) and (max-width: 1366px) {
  .sutore-gallery-item img {
    width: 1200px;
    max-width: 100%;
  }
}

/* 1440px */
@media (min-width: 1367px) and (max-width: 1440px) {
  .sutore-gallery-item img {
    width: 1300px;
    max-width: 100%;
  }
}

/* 1920px - Full HD (en yaygın) */
@media (min-width: 1441px) and (max-width: 1920px) {
  .sutore-gallery-item img {
    width: 1600px;
    max-width: 100%;
  }
}

/* 2560px - 2K */
@media (min-width: 1921px) and (max-width: 2560px) {
  .sutore-gallery-item img {
    width: 1800px;
    max-width: 100%;
  }
}

/* 3840px ve üstü - 4K */
@media (min-width: 2561px) {
  .sutore-gallery-item img {
    width: 2500px;
    max-width: 100%;
  }
}

.sutore-close-button {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background-color 0.3s;
  margin: 0px !important;
  padding: 0;
}

.sutore-close-button:hover {
  color: #2e2e2e;
}

.sutore-close-button svg {
  width: 20px;
  height: 20px;
  color: #000000;
}

.sutore-pagination {
  position: fixed;
  top: 60px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #000000;
  z-index: 1000;
  font-family: Arial, sans-serif;
  display: none;
}

@media (max-width: 768px) {
  .sutore-pagination {
    display: block;
  }
}

.sutore-desktop-pagination {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
}

.sutore-desktop-pagination-number {
  font-size: 16px;
  color: #3a3a3a;
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
  padding: 20px;
}

.sutore-desktop-pagination-number.active {
  color: #000000;
  font-weight: bold;
}

@media (max-width: 768px) {
  .sutore-desktop-pagination {
    display: none;
  }
}

.sutore-gallery-container.hidden {
  display: none;
}

.sutore-gallery-version {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: monospace;
  z-index: 1000;
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

body.sutore-modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-zoom: none;
  -ms-touch-action: manipulation;
}

body.sutore-modal-open * {
  -webkit-user-zoom: none;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

.sutore-page-gallery {
  width: 600px;
  height: 600px;
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sutore-page-gallery-item {
  width: 100%;
  height: 600px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  cursor: zoom-in;
}

.sutore-page-gallery-wrapper {
  position: relative;
}

@media (max-width: 768px) {
  .sutore-page-gallery-wrapper {
    margin: 50px 0;
  }

  .sutore-page-gallery {
    width: 100vw;
    height: 500px;
    overflow-y: hidden;
    overflow-x: scroll;
    flex-direction: row;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory !important;
    position: relative;
  }

  .sutore-page-gallery-item {
    width: 100%;
    height: 100%;
    padding: 50px;
    scroll-snap-align: start;
  }

  .sutore-mobile-page-pagination {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
  }

  .sutore-mobile-page-pagination-bar {
    width: 20px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .sutore-mobile-page-pagination-bar.active {
    width: 50px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.8);
  }

  /* Mobilde scrollbar'ı gizle */
  .sutore-page-gallery::-webkit-scrollbar {
    display: none;
  }

  .sutore-page-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.sutore-page-gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sutore-lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in;
  background-color: #f5f5f5;
}

.sutore-lazy-image[src] {
  opacity: 1;
}

/* Let's get this party started */
.sutore-page-gallery::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
/* Track */
.sutore-page-gallery::-webkit-scrollbar-track {
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: #e9e9e9;
}
/* Handle */
.sutore-page-gallery::-webkit-scrollbar-thumb {
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: #000000;
}
.sutore-page-gallery::-webkit-scrollbar-thumb:window-inactive {
  background: #000000;
}

/* Let's get this party started */
.sutore-gallery-container::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
/* Track */
.sutore-gallery-container::-webkit-scrollbar-track {
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: #e9e9e9;
}
/* Handle */
.sutore-gallery-container::-webkit-scrollbar-thumb {
  -webkit-border-radius: 0px;
  border-radius: 0px;
  background: #000000;
}
.sutore-gallery-container::-webkit-scrollbar-thumb:window-inactive {
  background: #000000;
}
.sutore-gallery-container::-webkit-scrollbar {
  display: none;
}
