@keyframes fadeIn {
  0% { opacity: 0.0; }
  90% { opacity: 0.01; }
  100% { opacity: 1; }
}

.blurTitle {
  position: relative;
  width: 100vw; /* Viewport width */
  height: 100vh; /* Viewport height */
  overflow: hidden;
  box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.5);;
}
body, html {
  overflow-x: hidden;
}
.blurTitle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../comPhotos/resized/dolomiti-135_resized.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(4px);
  -webkit-filter: blur(4px);
  z-index: 1; /* This will place the pseudo-element behind the title */
}

.section-title {
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%); /* This centers the title both vertically and horizontally */
  font-size: 7rem;
  text-align: center;
  color: var(--pill);
  letter-spacing: 8rem;
  font-weight: 100;
  text-transform: uppercase;
  text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.5);
  transition: color 0.3s;
  z-index: 2; /* This ensures the title is above the blurred background */
}


/* Adjustments to the photo section */
.photo-section {
  background: rgba(0, 0, 0, 0.65);  /* Dark overlay */
  border-radius: 15px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.6);
  margin: 3rem auto;  /* Centering the section and adding top and bottom margin */
  width: 89%;  /* Width adjustment */
  padding: 1.5em;  /* Internal padding for content */
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  border: 1px solid var(--black);
  opacity: 0;
  transition: all 0.5s ease;
  position: relative;
}

.photo-section.visible {
  opacity: 1;
  transition: all 0.5s ease;
  bottom: 0;
}
.photo-separator {
  width: 100%;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(182, 228, 255, 0.836) 50%, rgba(255,255,255,0) 100%);
  margin: 3rem 0;
  margin-left: auto;
  margin-right: auto;

}

.photo-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1.5em;
  align-items: center;
  width: 100%;
  margin: 1rem auto;
}

.photo-wrapper:nth-child(odd) {
  flex-direction: row-reverse;
}
.firstImg{
  opacity: 0.9;
  transition: 0.3s;
}
.firstImg:hover{
  opacity: 1;
  border: 2px solid var(--black);
  transition: 0.3s;
}
.photo-wrapper img {
  width: 60%;  
  border-radius: 8px;
  box-shadow: 6px 6px 6px 7px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  border: 1px solid var(--black);
  border:2px solid transparent;
}

.carousel-container img{
  transition: none !important;
}


.photo-wrapper img:hover {
  cursor: pointer;
}

.photo-wrapper .project-description {
flex: 1;
font-size: 1em;
color: var(--white);
line-height: 1.5;
text-align: justify;
font-family: 'Kubo Sans', sans-serif;

}

.project-description h4{
  text-align: center;
  font-size: 2.6em;
  color: var(--white);
  margin-bottom: 0.6em;
  font-weight: 100;
  font-family: 'Kubo Sans', sans-serif;
}

.testimonials-carousel {
  width: 89%;
  margin: 2em auto;
  background: rgba(0, 0, 0, 0.65);
  padding: 1em;
  border-radius: 15px;
  position: relative;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.6);
  padding-bottom: 0.5em;
  border: 1px solid var(--black);
  opacity: 0;
  transition: all 0.5s ease;
  position: relative;
  margin-top: 7em;
}

.testimonials-carousel.visible {
opacity: 1;
transition: all 0.5s ease;
bottom: 0;
}

/* Testimonial item styles */
.testimonial {
  display: flex;           /* Enable flexbox */
  flex-direction: column;  /* Stack children vertically */
  justify-content: center; /* Center children vertically */
  align-items: center;     /* Center children horizontally */
  height: 400px;           /* Set a fixed height for the slide */
  position: relative;   
  text-align: center;   /* Relative positioning for positioning children */
}

/* Styling for the images within the testimonial */
.testimonial img {
  max-width: 100%;
  object-fit: contain;     /* Ensure images maintain their aspect ratio */
  margin: 0 auto;  
}

.testimonial span {
  font-size: 2rem;
  color: var(--pill);
  display: block;  /* Change span to block level for better control */
  margin-top: 0.2em;
  font-family: 'Kubo Sans', sans-serif;
}

.carousel-modal {
  display: none; /* Initially hidden */
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Centers content vertically */
  position: fixed; /* Makes modal fixed on the screen */
  top: 0;
  left: 0;
  width: 100vw; /* Takes up the full viewport width */
  height: 100vh; /* Takes up the full viewport height */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  z-index: 1000; /* Ensure it's above other content */
  
}

.carousel-modal .carousel-container {
  width: 100%; /* Full-width */
  max-width: 900px; /* Maximum width */
  margin: 0 auto; /* Center horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.35s forwards;
}

.carousel-container img {
  max-width: 100%;
  height: auto;
  object-fit: cover;  /* Cover the entire area without stretching */
}

#morePictures {
  color: var(--red);
  font-weight: 100;
  font-size: 1em;
  margin-top: 1em;
  font-family: 'Kubo Sans', sans-serif;
  text-align: center;  /* Center the text */
}

.slick-prev, .slick-next {
  font-size: 24px;
  line-height: 30px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 50%;  /* Center vertically */
  transform: translateY(-50%);  /* Fine-tune vertical centering */
}

.slick-prev {
  left: 20px !important;
  z-index: 1;
  color: var(--red);
}

.slick-next {
  right: 20px !important;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  .section-title{
    font-size: 4.5em;
    letter-spacing:10px;
    text-indent: 10px;
  }
  .photo-wrapper{
      flex-direction: column-reverse !important;
      align-items: center !important;   
      width: 100%;
    }
  .photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    order: -1;
  }
  .photo-wrapper .project-description {
    text-align: justify !important;  /* Center the text */
    width: 100% !important;  /* Allow the text to take the full width */
    padding: 0 1rem !important;
  }
  .project-description h4{
    font-size: 1.9em;
    margin-bottom: 1em;
  }
}

@media (hover: none) {
  .testimonials-carousel, .photo-wrapper img, .photo-wrapper img:hover, .photo-section {
    box-shadow: none !important;
    filter: none !important;  /* Remove drop-shadow filter */
    transform: none !important;  /* Remove transforms */
  }
}
