/* ===============================
   GALLERY STYLES
================================= */
.my-gallery img {
  width: 150px;
  height: auto;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  object-fit: cover;
}

.my-gallery img:hover {
  border-color: #555;
}


/* ===============================
   FIXED NAVBAR AT TOP
================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  color: #000;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10000;
}


/* ===============================
   LIGHTBOX OVERLAY
================================= */
.my-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.my-lightbox.active {
  display: flex;
}

/* Hide scroll on body when lightbox is active */
body.lightbox-open {
  overflow: hidden;
}


/* ===============================
   VIEWER AREA
================================= */
.viewer {
  position: relative;
  width: 100vw;
  height: 80vh;
  overflow: hidden;
  touch-action: pan-y;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.viewer-image {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  pointer-events: none;
}

.viewer-image.transition {
  transition: left 0.4s ease;
}


/* ===============================
   LIGHTBOX HEADER
================================= */
.lightbox-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
}

.lightbox-pagination,
.lightbox-title,
.lightbox-close {
  font-size: 16px;
  color: white;
}

.lightbox-title {
  flex: 1;
  text-align: center;
}

.lightbox-close {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: white;
}


/* ===============================
   NAVIGATION BUTTONS (PREV/NEXT)
================================= */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}


/* ===============================
   FIXED THUMBNAIL BAR AT BOTTOM
================================= */
.thumbnail-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  overflow-x: auto;
  box-sizing: border-box;
  justify-content: center;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  z-index: 10001;
}

.thumbnail-bar img {
  width: 100px;
  height: auto;
  max-height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.thumbnail-bar img.active {
  border-color: white;
}
