
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style-type: none;
    padding: 0;
    max-width: 1200px;
    width: 120%;
    height: 300px;
    overflow: hidden;
    margin-left: 50px;
    transition: height 0.5s ease;
  }
  
  .gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 250px; /* 고정된 높이 설정 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border:1px solid #D9D9D9;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .gallery-item.visible {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
  }

  .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  }
  
  .image-container {
    flex: 1;
    display: flex;
    height: 180px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #F3F3F3;
    border-bottom:1px solid #D9D9D9
  }
  
  .gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* 이미지가 부모의 크기에 맞게 조절됨 */
    object-position: center; /* 이미지를 가운데로 위치 */
  }
  
  .gallery-item > a > h3, p {
    margin: 0;
    padding: 0 10px;
    font-weight: 500;
  }

  .gallery-item > a > p {   
    padding-top:10px;
    font-size: 0.8em;
    color:#0066FF;
  }

  h3 {
    font-size: 1.2em;
  }
  
  .gallery-item a {
    color: inherit;
    text-decoration: none;
  }


.newsHeader {
    text-align: center;
    padding-top: 120px;
    padding-bottom: 90px;
}

.newsHeader h1{
    font-size: 2.5em;
    font-weight: 900;
}

.labelButton {
    padding: 30px 0;
    text-align: center;
}

.labelButtonTwo {
    padding: 60px 0;
    text-align: center;
}


.bold {
    font-weight: bold;
}


.labelButton button:nth-child(1) {
    background-color: #0066FF;
    color: white;
    border:none
}

.labelButton button, .labelButton:nth-child(2) button , .labelButtonTwo button{
    background-color: white;
    border: 1px solid #D9D9D9;
    padding: 10px 50px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    color: black;
}

.labelButton button:nth-child(2) {
    margin: 0 30px;
}


.labelButton button:hover, .labelButtonTwo button:hover  {
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  
.labelButton button:active, .labelButtonTwo button:active {
    background-color: #0066FF;
    border-color: #0066FF;
    transform: translateY(0);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.labelButton:nth-child(2) button {
    margin-top: 50px;
}

.subHeader {
    background: #F5F5F5;
    border-top:4px solid #0066FF;
    font-size: 2em;
    font-weight: 900;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 50px;
}


.newsContents img{
    margin: 0 auto;
}

.newsText {
    text-align: center;
    padding: 50px;
    padding-bottom: 40px;
    font-size: 1.2em;    
    border-bottom: 1px solid #D9D9D9;
}

.newsText p {
    font-weight: 500;
}

.newsText h3 {
    font-size: 2.5em;
    font-weight: 900;
    margin: 50px 0;
}

.newsText div {
    margin-top: 30px;
}

.contentsWord {
    font-size: 0.9em;

}
.newsLogo {
  text-align: center;
  font-size: 0.4em;
  margin-top: 80px !important;  
}


.newsLogo h3 {
  font-weight: 500 !important;
  margin-bottom: 30px;
}

.newsLogo img {
  margin: 30px auto;
  width: 30%;
}
.newsLogo p {
  margin-top:10px;
  font-size: 1.5em;
  font-weight: 500;
}