.zcool-qingke-huangyou-regular {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f8f8f8;
  color: #000000;
}

body.loading .overlay {
  display: none;
}
/***
.logo {
  top: 5rem;
  left: 3rem;
  position: absolute;
}

.logo img {
  height: 180px;
  width: auto;
}
***/


img.logo-1 {
  position: absolute;
  top: 100px;
  left: 300px;
  max-width: 250px;
  height: auto;
  z-index: -1;
}

img.logo-2 {
  position: absolute;
  bottom: 200px;
  right: 300px;
  max-width: 150px;
  height: auto;
  z-index: -1;
}

img.logo-3 {
  position: absolute;
  bottom: 300px;
  left: 400px;
  max-width: 150px;
  height: auto;
  z-index: -1;
}




main {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 200px auto;
}

nav.menu {
  position: relative; /* tai fixed, jos haluat */
  z-index: 10;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.menu h2 {
  margin: 0;
}

.menu a {
  color: #121221;
  text-decoration: none;
  font-size: 4rem;
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-weight: 400;
  font-style: normal;
  transition: color 0.7s ease, filter 0.7s ease, opacity 0.4s ease;
}

.menu:hover a {
  filter: blur(2px);
  opacity: 0.5;
}

.menu a:hover {
  filter: blur(0);
  opacity: 1;
  color: #000000;
}

/**ABOUT SIVU**/

.about {
  padding: 0rem 2rem 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 3rem 3rem auto 20rem;
  max-width: 750px;
  overflow: hidden;
  z-index: 100;
}

.about-title {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-size: 2.5rem;
  color: #000000;
  z-index: 100;
}

.about-text {
  font-size: 1.1rem;
  color: #000000;
  letter-spacing: 0.1rem;
  text-align: left;
}



img.kuva-1 {
  position: absolute;
  bottom: 300px;
  left: 350px;
  max-width: 150px;
  height: auto;
  z-index: -1;
}

img.kuva-2 {
  position: absolute;
  top: 300px;
  left: 900px;
  max-width: 300px;
  height: auto;
  z-index: -1;
}


/*contact*/

.contact {
  padding: 0rem 2rem 2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 700px;
  overflow: hidden;
  margin: 2rem auto;
}

.icon {
  height: 2rem;
  max-width: 100%;
}

.contact-text {
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
}

/* GALLERIA*/

/*galleria nav*/

.menu.horizontal-menu {
  display: flex;
  flex-direction: row; /* Vaakasuoraan */
  justify-content: center; /* Keskitetään vaakasuunnassa */
  gap: 2rem; /* Tilaa nappeihin */
  margin: 1rem auto 2rem auto;
}

.menu.horizontal-menu h2 {
  margin: 0; /* Poistetaan oletusmarginaalit */
}

.menu.horizontal-menu h2 a {
  font-size: 2rem;
  text-decoration: none;
  color: #121221;
  transition: color 0.3s ease;
}

.menu.horizontal-menu h2 a:hover {
  color: #000;
}

.filter-menu {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-menu button {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border: none;
  background: #b1bcc7;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.filter-menu button:hover,
.filter-menu button.active {
  background: #000;
  color: #91abd6;
}



.gallery-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1rem;
  margin-bottom: 6rem;
}

#gallery {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  justify-content: center; /* keskitetään kuvat rivillä */
  width: 100%;
  max-width: 1300px; /* tai sama kuin wrapper */
  box-sizing: border-box;
}


.gallery-item {
  position: relative;
  display: block;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.overlay-text {
  text-align: center;
}

.overlay .title {
  font-weight: bold;
}
.gallery-item:hover .overlay {
  opacity: 1;
}





.lg-backdrop {
  background-color: rgba(8, 8, 8, 0.937) !important; /* esim. vaalea, läpikuultava */
}


.video-section {
  margin: 60px auto;
  max-width: 1200px;  /* Suurempi kuin aiempi 900px */
  padding: 0 20px;
}

/* Otsikko pysyy keskellä */
h1 {
  font-family: "ZCOOL QingKe HuangYou", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}
.video-title {
  margin-top: 2rem;
  border-bottom: #000 1px solid;
  padding-bottom: 0.5rem; 
  max-width: 1050px;
  margin: 0 auto;
}

/* Kuvausteksti vasemmalle tasattuna */
p.description {
  font-size: 1.1rem;
  letter-spacing: 0.1rem;
  color: #555;
  margin-top: 0;
  margin-bottom: 1.1rem;
  text-align: left;
  max-width: 1070px;
  margin-left: auto;
  margin-right: auto;
}

p.duration {
  font-size: 0.9rem;
  color: #999;
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video entistä suuremmaksi, mutta silti responsiivinen */
.video-container {
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 9rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/****muut laitteet*/

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  header {
    flex-direction: column;
  }

  nav {
    position: static;
    transform: none;
    margin-top: 1rem;
  }

  .menu {
    font-size: 2rem;
  }
}
@media (max-width: 768px) {
  .about {
    margin: 5rem 1rem;
    padding: 1.5rem;
    max-width: 100%;
  }

  .about-title {
    font-size: 2rem;
    text-align: center;
  }

  .about-text {
    font-size: 0.9rem;
    text-align: left;
  }

  .contact {
    margin: 0rem 1rem;
    padding: 1.5rem;
    max-width: 100%;
    margin-bottom: 4rem;
  }

  .contact-text {
    font-size: 1rem;
  }

  img.kuva-1 {
    max-width: 120px;
    bottom: -10px;
    left: 30px;
    opacity: 0.9;
  }

  img.kuva-2 {
    max-width: 130px;
    top: 100px;
    left: auto;
    right: 10px;
    opacity: 0.7;
  }
  }

 
/* OVERLAY TEKSTITYYLI */
@media (max-width: 768px) {
  .overlay-text {
  font-family: sans-serif;
}

.overlay-text .title {
  font-weight: bold;
  font-size: 1rem;
}

.overlay-text .year {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

  .gallery-item {
    position: static;  /* Remove absolute context */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .overlay {
    position: static !important;  /* Cancel absolute */
    opacity: 1 !important;        /* Always visible */
    background: transparent !important;  /* No dark overlay */
    color: black !important;            /* Black text */
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gallery-item:hover .overlay {
    opacity: 1; /* Keep visible on hover too */
      
      
      }

}
