header {
  position: relative;
  background-color: black;
  height: 75vh;
  min-height: 25rem;
  width: 100%;
  overflow: hidden;
}

/*
header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}*/
header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover; /* Ensures the video covers the entire area */
  backface-visibility: hidden; /* Prevents flickering */
  will-change: transform; /* Optimizes performance */
}

header .container {
  position: relative;
  z-index: 2;
}

header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: black;
  opacity: 0.5;
  z-index: 1;
}

/* Media Query for smaller screens */
@media (max-width: 576px) {
  h1.display-3 {
    font-size: 2rem; /* Adjust the font size as needed */
  }
  h3.display-3 {
    font-size: 2rem; /* Adjust the font size as needed */
  }
}

section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Background colors for each section */
#section1 {
  background-color: #dee2e6; /* Light gray */
  color: #000; /* Black text */
}

#section2 {
  background-color: #e9ecef; /* Slightly darker gray */
  color: #000; /* Black text */
}

#section3 {
  background-color: #dee2e6; /* Even darker gray */
  color: #000; /* Black text */
}

/* Sliding effect */
.sections-container {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
}

section {
  flex: 0 0 100%;
  scroll-snap-align: start;
  transition: transform 0.5s ease-in-out;
}

/* Custom list styles */
.custom-list {
  list-style-type: none;
  padding: 0;
}

.custom-list li {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.custom-list h4 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  color: #343a40;
}

.custom-list p {
  margin: 0;
  color: #6c757d;
}

/* Reduce new line space for inner ul li elements */
.custom-list ul {
  list-style-type: disc;
  padding-left: 20px;
}

.custom-list ul li {
  margin-bottom: 5px; /* Adjust as needed */
  padding: 0;
}

.small-header {
    font-size: 2.5rem; /* Default size */
}
.small-header2 {
    font-size: 1.2rem; /* Adjust the size for small screens */
}
.small-header3 {
    font-size: 1.2rem; /* Adjust the size for small screens */
}

@media (max-width: 576px) {
    .small-header {
        font-size: 1.5rem; /* Adjust the size for small screens */
    }
    .small-header2 {
        font-size: 1.0rem; /* Adjust the size for small screens */
    }
    .small-header3 {
        font-size: 1.2rem; /* Adjust the size for small screens */
    }
}
@media (max-width: 768px) {
    .small-header {
        font-size: 2.0rem; /* Adjust the size for medium screens */
    }
    .small-header2 {
        font-size: 1.0rem; /* Adjust the size for medium screens */
    }
    .small-header3 {
        font-size: 0.9rem; /* Adjust the size for medium screens */
    }

}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; /* Adjust the gap as needed */
}

.grid-container span {
  text-align: center; /* Center the text within each grid item */
}


.image-grid img {
  width: 100%; /* Set the width to 100% */
  height: auto; /* Maintain aspect ratio */
  display: block;
}

@media (max-width: 576px) {
  .image-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .image-grid img {
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    max-width: 400px;
  }
}


@media (max-width: 576px) {
  .image-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .image-grid img {
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Set the maximum width for small screens */
  }

  /* Specific rule for the HBLFA Tirol logo */
  img[src="/static/img/LOGO_HBLFA_Tirol/BMNT_HBLFA-Tirol_Logo_srgb.png"] {
    max-width: 420px; /* Set a maximum width for the image on mobile */
  }
}