.slider-touch-container {
    position: relative;
    overflow: hidden;
}
.slider-touch-content {
  display: flex;
  flex-wrap: nowrap;      /* important: don't wrap slides */
  transition: transform 0.3s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box; /* CRITICAL: padding won't grow width */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0px 0 0px;  /* kept from your original */
  user-select: none;
  margin: 0; 
  margin-bottom: 10px; 
}

.slide img {
  transition: transform 0.3s ease-in-out;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 0px;
  margin-left: 1px;
}

.grabbing {
  cursor: grabbing;
}
.grabbing .slide img {
  transform: scale(0.9);
}
.slider-touch-pagination {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0px;
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* display:none; */
}

.slider-dot {
    display: inline-block;
    height: 3px;
    width: 15px;
    margin: 0 5px;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--main-color);
}

/* Fullscreen Image Viewer */
.fullscreen-image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    touch-action: none;
}

.viewer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999; /* Add this */
    pointer-events: auto;
}

.viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    pointer-events: none; 
    align-items: center;
    justify-content: center;
}

.image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    pointer-events: auto; 
    max-height: 290px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    transform-origin: 50% 50%;
}

/* Double-tap hint */
.double-tap-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.fullscreen-image-viewer.active .double-tap-hint {
    opacity: 1;
    animation: fadeHint 3s forwards;
}

@keyframes fadeHint {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

.viewer-footer {
    padding: 15px;
    text-align: center;
    color: white;
    font-size: 14px;
    opacity: 0.7;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

/* Close button (hidden but accessible) */
.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.fullscreen-image-viewer:hover .close-viewer {
    opacity: 1;
}

/* Add to existing slide image style */
.slide img {
    cursor: pointer;
}