section:nth-child(even) {
    background-image: url(../images/20.JPG);
}

body{
  background-color: black;
}

/* Portfolio Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.gallery img:hover{
    filter: grayscale(0%);
}

#wrapper{
    background-color: black;
    width: 100%;
    height: auto;
    min-height: 400px;
    margin: auto;
}

header{
    width: 100%;
    height: 200px;
    background-image: url(../images/11.JPG);
    background-position: center;
    background-size: cover;

}

section{
    width:100%;
    height: auto;
    margin-top: 60px;
    padding-top: 20px;


}


/*images*/
img{
width: 100%;
height: auto;
}

.image-container {
    position: relative; 
    width: 100%; 
    height: auto;
    overflow: hidden; 
}

/* 图片样式 */
.image-container img {
    width: 100%; 
    height: auto;
    transition: opacity 0.5s ease; 
}

/* 悬停时图片变透明 */
.image-container:hover img {
    opacity: 0.3; 
}

/* 文字样式 */
.image-container .hover-text {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-80%, -80%);
    color: white; 
    font-size: 100px; 
    font-family: Arial, sans-serif; 
    text-align: center; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}


.image-container:hover .hover-text {
    opacity: 1; 
}


/*classes*/
.fltRgt{
    float: right;
    width: 30%;
    margin: 5px;
}

.fltLft{
 float: left;
 width: 20%;
 margin: 2px;
 left: 0;
}



h1,h2,p{

    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

h1{
    font-size: 40px;

}

h2{

font-size: 25px;
}

/*navigation and links*/
nav{
    position: fixed;
    top: 0;
    right: 0;
    width:100%;
    height: auto;
    background-color: black;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    border-bottom: 0.5px solid white; 
}



  nav ul{
      display: flex;
      height:auto;
      list-style: none;
      margin:0;
      gap: 20px;
    
  }


  
  nav ul li{
      width: auto;
      height: auto;
      background-color: black;
      display: flex;
      margin-left: 30px;
      line-height: 45px;;
      position: relative;
      padding: 0 15px;
    
    

  }
  nav ul li a{
    
      width: 100%;
      height: auto;
      color: aliceblue;
      font-family: Verdana, Geneva, Tahoma, sans-serif;
      text-decoration:none;
      font-weight: bold;
      transition: all 0,3s ease;
  }
  
  nav ul li a:hover{
    background-color: black;
      color: crimson;

  
  }

  nav .dropdown{
    position:absolute;
    display: none;
    top:100%;
    left: 0;
    transition: opacity 0.3 ease-in-out;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0);
  }

  nav li:hover .dropdown{
    display: block;
    width:auto;
    height: auto;
    min-height: 200px;
    min-width: 150px;
    background-color: black;
  }
