/***gallery***/

.gallery-container {  
  display: flex;      
  flex-direction: column;
  align-items: center;
  margin: 40px;
}

.gallery {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.main-image {
  width: 100%;
  /*height: 400px;*/
  /*object-fit: cover;*/
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
  transition: opacity 0.3s ease;
}


.gallery-thumbnails {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto; /* enables horizontal scroll */
  padding: 5px 10px;
  border-radius: 6px;
  background: #f8f8f8;
  scrollbar-width: thin; /* show a minimal scrollbar instead of scrollbar-width: none; */
  scroll-snap-type: x mandatory;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none; /* hide scrollbar (Chrome/Safari) */
}

.gallery-thumbnails img {
  /*flex-shrink: 0;*/
  flex: 0 0 auto;
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  scroll-snap-align: center;
}

.gallery-thumbnails img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.gallery-thumbnails.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}


/* make wrapper the reference for absolute children */
.main-image-wrap {
  position: relative;
  width: 100%;
}

/* Navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  z-index: 2;
}

.nav-button:hover {
  background-color: rgba(0,0,0,0.8);
}

.prev { 
	left: 10px; 
}

.next { 
	right: 10px; 
}

/* Magnifier button */
.magnify-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  z-index: 2;
}

.magnify-btn:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Show buttons only on hover */
.gallery:hover .nav-button,
.gallery:hover .magnify-btn {
  opacity: 1;
}

/* Fullscreen overlay */
.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.gallery-overlay.active {
  visibility: visible;
  opacity: 1;
}

.gallery-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.gallery-overlay .overlay-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
}

.gallery-overlay .overlay-prev { 
	left: 20px; 
}

.gallery-overlay .overlay-next { 
	right: 20px; 
}

.gallery-overlay .overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  padding: 5px 10px;
}
    
    
/*********** responsive 1076px **************/
@media (max-width: 1076px) {
	
	
}

/*********** responsive 768px **************/
@media (max-width: 768px) {


	 
	
}

/*********** responsive 480px **************/
@media (max-width: 480px) {

    .gallery-thumbnails {
      /*display: none;*/
    }
  
			
}
