@media (max-width: 576px) {
    .indexanchor {
        scroll-margin-top: 4em;
    }
}

.home-page-carousel {
    transition: transform 2s ease-in-out;
}

.home-page-carousel-fade .active.carousel-item-start {
    transition: opacity 2s;
}

.species-detail-carousel {
    transition: transform 0s ease-in-out;
}

.species-detail-carousel-fade .active.carousel-item-start,
.species-detail-carousel-fade .active.carousel-item-end {
    transition: opacity 0s 0s;
}

#speciesDetailCarousel.carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

#homePageCarousel.carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 100%;
}

.img-rounded,
.video-rounded {
    border-radius: 0.375rem;
}

.navbar-nav .nav-item .nav-link {
    font-size: 1.2rem;
    color: rgb(230, 230, 230);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.hover {
    color: #fff !important;
    border-bottom: 3px solid #ffa940; /* #0d6efd; */
    padding-bottom: 0px;
}

.card-max-width {
    max-width: 30rem;
}

.card-font-size-sm {
    font-size: 0.8rem;
}

.footer-font-size-sm {
    font-size: 0.7rem;
}

.scroll-container {
    max-height: 1000px;
}

.species-detail {
    /* background-color: rgb(208, 209, 210); */
    max-height: 1000px;
}

.nudi-image-count {
    font-size: 0.8em;
}


.main-page-logo {
    -webkit-filter: drop-shadow(5px 5px 5px #0000006d);
    filter: drop-shadow(5px 5px 5px #0000006d);
}

.main-page-title {
    font-family: Comfortaa;
    text-shadow: 3px 3px 3px #0000006d;
}

.navbar-background {
    background-color: rgb(208, 209, 210);
}

.navbar-logo {
    -webkit-filter: drop-shadow(2px 2px 2px #0000006d);
    filter: drop-shadow(2px 2px 2px #0000006d);
}

.navbar-title {
    font-family: Comfortaa;
    text-shadow: 1px 1px 2px #0000006d;
}

.carousel-caption-font {
    text-shadow: 1px 1px 3px #0000006d;
}

.carousel-caption {
    top: 0;
    bottom: auto;
}

input,
input::placeholder {
    font-size: 0.7rem;
}

.carousel.pointer-event {
    touch-action: pan-y pinch-zoom;
}

@-webkit-keyframes pulse {
	0% {
		-webkit-box-shadow: 0px 0px 0px 0px rgba(245, 245, 245, 1);
	}
	70% {
		-webkit-box-shadow: 0px 0px 0px 10px rgba(245, 245, 245, 0);
	}
	100% {
		-webkit-box-shadow: 0px 0px 0px 0px rgba(245, 245, 245, 0);
	}
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 245, 245, 1);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 245, 245, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 245, 245, 0);
    }
}

.btn-pulse {
    animation: pulse 3s infinite;
}

.gallery-constrained {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (orientation: portrait), (min-width: 992px) {
  .gallery-constrained {
    max-width: calc((100vh - 300px) * 1.5);
  }
}

.gallery-constrained .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

#filmstripCarousel .filmstrip-container {
  overflow-x: auto;
  white-space: nowrap;
  overflow-anchor: none; 
  scroll-behavior: smooth;
  padding-bottom: 10px;

  /* Hide scrollbar */
  /* for Chrome, Safari, and Opera */
  &::-webkit-scrollbar {
    display: none;
  }

  /* for Firefox */
  scrollbar-width: none;

  /* for IE, Edge */
  -ms-overflow-style: none;
}

#filmstripCarousel .carousel-filmstrip {
  position: static;
  justify-content: center;
  margin: 0;
  /* display: inline-block; */
  display: flex;
  width: 100%;
  min-width: max-content;
}

/* Styling for each thumbnail button (Specific selector to override Bootstrap's tiny size) */
#filmstripCarousel .carousel-filmstrip button {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  margin: 0 5px;
  padding: 0;
  background-color: transparent;
  border: 3px solid transparent;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  text-indent: 0;
}

.carousel-indicators.carousel-filmstrip button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Removes border from click select when use keyboard scroll */
#filmstripCarousel .carousel-filmstrip button:focus {
    outline: 0;
    border-color: transparent;
}

#filmstripCarousel .carousel-filmstrip button.active {
    opacity: 1;
    border-color: #ffffff;
}

#filmstripCarousel .carousel-inner > .carousel-item {
  transition: transform 0s !important; 
}


.hover-container {
  display: block;
  position: relative;
  overflow: hidden;
}

.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  color: white;
  text-align: center;
  
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  
  /* Crucial for mobile: ensures taps hit the carousel, not the text */
  pointer-events: none; 
}

.hover-container:hover .hover-overlay {
  opacity: 1;
}