/* Image Gallery */
/* Also see: assets/sass/lightbox.scss */
.image-gallery {
  overflow: auto;
  margin-left: -1% !important;
}
.image-gallery div {
  float: left;
  display: block;
  margin: 0 0 1% 1%;
  width: 32%;
}
.image-gallery .thumb {
  text-align: center;
  text-decoration: none !important;
  color: #777;
}
.image-gallery .thumb img {
  width: 100%;
  display: block;
  border-radius: 1rem;
}
.image-gallery .thumb img:hover {
  box-shadow: 0 0 11px rgb(15 80 100 / 20%);
  filter: contrast(1.2);
}
.image-gallery.credit {
  font-size: 0.7rem;
  text-indent: 1rem;
  color: #555;
  font-weight: 100;
}
p.image-gallery {
  padding-top: 0.01rem;
  padding-bottom: 0.01rem;
  margin-bottom: 0.01rem;
}
p.image-gallery.head {
  padding-top: 1rem;
  padding-bottom: 0.01rem;
  margin-bottom: 0.01rem;
}
p.image-gallery.title {
  font-size: medium;
  padding-top: 0.3rem;
  padding-bottom: 0.2rem;
  margin-bottom: 0.2rem;
}
hr.image-gallery {
  background-color: #555;
  border: none;
  display: block;
  height: 1px;
  overflow: visible;
  position: relative;
  width: 100%;
  margin-top: 0.01rem;
  margin-bottom: 0.3rem;
}

hr.image-gallery:before {
  background-color: #555;
  content: "";
  display: block;
  height: 1px;
  left: 0;
  position: absolute;
  top: -2px;
  width: 50%;
  z-index: 1;
}

/* Top scroll */
#single #topScroll {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  cursor: pointer;
  border-radius: 10px;
}

#single #topScroll:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transition: 0.5s;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* Singlepage scroll progress start */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--background-color);
  z-index: 999;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.2s;
}
/* Singlepage scroll progress end */

/* Vimeo Video Styling */
.vimeo-video-group {
  overflow: auto;
  width: 100% !important; /* Ensure the group takes up the full width */
  max-width: 100% !important; /* Prevent any unwanted restrictions */
  margin: 0 auto; /* Center the video group if necessary */
}

.vimeo-video-wrapper {
  position: relative;
  margin: 0 auto 7px auto; /* Center the video and add spacing between them */
  height: 90vh; /* Set height to 90% of the viewport height */
  max-height: 90vh; /* Ensure the video doesn't exceed 90% of the viewport height */
}

/* Add a specific media query to handle mobile viewports */
@media (max-width: 768px) {
  .vimeo-video-wrapper {
    height: auto; /* Allow videos to adjust to content height */
    max-height: none; /* Remove max height on mobile to avoid big gaps */
    padding-bottom: 130%; /* Add a bit more margin between videos on mobile */
  }
}

.vimeo-video-wrapper-width-based-UNUSED {
  position: relative;
  margin: 0 auto 7px auto; /* Center the video and add spacing between them */
  width: 100%; /* Full width of its container */
  padding-bottom: 130%;
  height: 0; /* Let padding control the height */
  max-height: 90vh !important; /* Restrict the video height to 90% of the viewport height */
}

.vimeo-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none; /* Remove any iframe border (if present) */
  /* No need for border-radius here since it's applied to the wrapper */
}
