html, body {
  overflow-x: hidden; /* prevent horizontal scroll */
  overflow-y: auto;   /* ensure vertical scroll is allowed */
  -webkit-overflow-scrolling: touch; /* enable smooth scroll on iOS */
}

.navbar a {
  color: black;
}

.navbar {
  background-color: white;
  padding: 30px;
}

/* Slide in Banner */
.gallery-note {
  position: fixed;
  bottom: var(--gallery-note-offset, 5%);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: white;
  color: black;
  border: 1px solid #dadada;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mini-copy {
  font-size: 0.75em;
  vertical-align: middle;
  opacity: 0.8;
}

.gallery-note.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.gallery-note a {
  font-weight: bold;
  margin-left: 0.4rem;
  color: black;
  text-decoration: none;
}

.gallery-note a:hover {
  text-decoration: underline;
  letter-spacing: 0.3px;
}

@media screen and (max-width: 500px) {
  .full-msg {
    display: none;
  }

  .gallery-note {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Gallery */
.myImg {
  -webkit-user-drag: none;
  user-select: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img, 
.column picture img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.column img:hover,
.column picture img:hover {
  opacity: 0.7;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* Load More/Show Less Floating Button Styling */
#load-more-widget {
  position: relative;
  width: 110%;
  height: 110%;
}

/* Optional: make the icon color unique if desired */
#loadMoreBtn:hover ion-icon {
  color: #20a720; /* greenish for “more”, change below if needed */
}

/* Tooltip Updates Dynamically */
#loadMoreTooltip {
  position: absolute;
  top: 20%;
  left: -130px;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
}

#load-more-widget:hover #loadMoreTooltip {
  opacity: 1;
  transform: translateY(0);
}

.floating-badge.active #loadMoreTooltip {
  display: none;
}

.hidden {
  display: none;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1001; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

.modal-content,
#caption {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  #loadMoreBtn {
    width: 90%;
  }
}
