.container {
  position: relative;
  text-align: center;
  color: white;
  height: 450px;
  background-origin: initial;
  background-position: center;
  background-size: cover;
  }

  .mContainer {
    position: relative;
    text-align: center;
    color: white;
    background-origin: initial;
    background-position: center;
    background-size: cover;
    display: none;
    }

  .parallax-image {
    object-position: 0 -100px;
    object-fit: cover;
    width: 100%;
    transition: object-position 0.5s ease-out;
}
  .centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: xx-large;
    text-shadow: 0px 2px 10px black, 0 0 15px black;
    font-weight: bold;
  }

  body{
    overflow-x: hidden;
    font-family: "Segoe UI", "Open Sans", Roboto, -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
  }
  section {
    display: flex;
    justify-content: center;
  }
  section p {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  span{
    padding: 5px;
    padding-top: 5px;
    text-wrap-style: balance;
    font-size: xx-large;
    padding-top: 50px;
    text-align: center;
  }
  #footer{
    background: #da2027;
    color: white;
    padding: 20px;
    font-size: x-small;
  }

  .textContainer{
    width: 75%;
  }
  .mainBlock{
    display: flex;
  }

/*Gallery styling*/

/* Style the gallery container */
.gallery-container {
  max-width: 600px;
  height: 400px; /* Set a fixed height for the container */
  overflow: hidden;
  position: relative;
}

/* Style the images inside the gallery */
.gallery-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; /* Start with images hidden */
  transition: opacity 1s ease-in-out; /* Smooth transition for opacity */
}

/* Class to make the active image visible */
.gallery-container img.active {
  opacity: 1;
}

/* Style for navigation buttons */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

#prev {
  left: 10px;
}

#next {
  right: 10px;
}

.gallery{
  width: 100%;
  height: 100%;
}

#galleria{
  width: 30%;
}



@media only screen and (max-width: 931px) {
  /* For mobile phones: */
  div{
    display: block;
    width: 100%;
  }
  section p{
    max-width: 100%;
    width: 100%;
  }
  .textContainer{
    width: 100%;
  }
  section{
    display: block;
    width: 100%;
  }
  .mainBlock{
    display: block;
  }
  .gallery-container{
    width: 100%;
  }
  #galleria{
    width: 100%;
  }
  .container{
    display: none;
  }
  .mContainer{
    display: block;
  }

}