@charset "utf-8";
/* works.css */

/* Prevent layout shift */
html {
  scrollbar-gutter: stable;
}

body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Gallery styles */
.gallery-page {
  padding: 4rem 1rem;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-page h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #000000;
}

.gallery-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 4px;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Modal styles */
.modal {
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: transparent !important;
  border: none !important;
}

.modal-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.modal-body img {
  max-height: none;
  width: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* Navigation container */
.modal-nav-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Vertical Navigation Bars */
.modal-nav-vertical {
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 1050;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.prev-vertical {
  left: 0;
  background: linear-gradient(90deg, rgba(233, 255, 50, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}

.next-vertical {
  right: 0;
  background: linear-gradient(270deg, rgba(233, 255, 50, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}



.modal-nav-vertical:hover {
  background-color: rgba(0,0,0,0.2);
}

/* Add arrows to the vertical bars */
.modal-nav-vertical::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  border-style: solid;
  border-color: #ffffff;
  border-width: 3px 3px 0 0;
  transform: translateY(-50%);
}

.prev-vertical::after {
  left: 15px;
  transform: translateY(-50%) rotate(-135deg);
}

.next-vertical::after {
  right: 15px;
  transform: translateY(-50%) rotate(45deg);
}

/* Remove the old button styles */
.modal-nav-container, .modal-nav-btn {
  display: none;
}

/* Adjust modal image container */
.modal-image-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 0 50px; /* Make space for vertical bars */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-nav-vertical {
    width: 40px;
  }
  .modal-image-container {
    padding: 0 40px;
  }
}

@media (max-width: 576px) {
  .modal-nav-vertical {
    width: 30px;
  }
  .modal-image-container {
    padding: 0 30px;
  }
  .modal-nav-vertical::after {
    width: 20px;
    height: 20px;
  }
}

/* Modal caption */
.modal-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  color: #E9FF32;
  padding: 1rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  max-width: 80%;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .gallery-page h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .modal-nav-btn {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  #prevBtn {
    left: 10px;
  }
  
  #nextBtn {
    right: 10px;
  }
  
  .modal-caption {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .gallery-page {
    padding: 2rem 1rem;
  }
  
  .gallery-page h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .modal-nav-btn {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  
  .modal-caption {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}