.preview-thumb {
  max-width: 64px;
  max-height: 64px;
  border-radius: 8px;
  margin-top: 4px;
  display = 'block';
  float: left;
  margin-right: 6px;
}
.gallery-preview-strip {
    cursor:pointer;
    text-align:center;
    width:224px;
    height:64px;
    position:fixed;
    top:388px;
    /*border:1px solid #777;border-radius:8px;*/
    right:04px;
    overflow:auto;
    z-index:2;
    /*opacity:.2;*/
}


/* Full-screen gallery overlay */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding-top:70px;
}

.gallery-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Gallery image container */
.gallery-image-container {
  position: relative;
  max-width: 95vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-container img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);
}

/* Navigation arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  /*padding: 16px 24px;*/
  cursor: pointer;
  z-index: 10000;
  transition: background 0.2s;
  border-radius: 50%;
  min-width: 64px;
  min-height: 64px;
}

#galleryCounter {
  font-size: 1.5rem;
  font-weight: 600;
  margin:20px;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-prev { left: 30px; }
.gallery-next { right: 30px; }

/* Close button */
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  padding: 8px 14px;
  cursor: pointer;
  z-index: 1002;
  transition: background 0.2s;
  display:none;
}

.gallery-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Prevent body scroll when overlay is open */
body.gallery-overlay-open {
  overflow: hidden;
}