.news-gallery{
  padding-top: 28px;
}

.news-gallery::before{
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 28px;
  border-radius: 999px;
}

.gallery-section{
  padding: 8px 0 16px;
}

.gallery-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.gallery-total{
  font-size: 15px;
  color: #6b7280;
}

.gallery-total strong{
  color: #0f766e;
  font-weight: 700;
}

.gallery-search{
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-search input{
  width: 260px;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  font-size: 14px;
}

.gallery-search button{
  width: 44px;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

.gallery-search button:hover{
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.gallery-card{
  display: flex;
  flex-direction: column;
}

.gallery-card__thumb{
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  aspect-ratio: 1.35 / 1;
  border: 1px solid #e5e7eb;
}

.gallery-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card__thumb--empty{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 14px;
}

.gallery-card__body{
  padding-top: 12px;
  text-align: center;
}

.gallery-card__meta{
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 6px;
  text-align: center;
}

.gallery-card__title{
  display: block;
  color: #111827;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  word-break: keep-all;
  text-align: center;
}

.gallery-card__title:hover{
  color: #2563eb;
}

.gallery-card__date{
  margin-top: 8px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.gallery-empty{
  padding: 70px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 15px;
}

@media (max-width: 1024px){
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .gallery-search{
    width: 100%;
  }

  .gallery-search input{
    width: calc(100% - 52px);
  }

  .gallery-grid{
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
/* main 안에 있을 때, 화면 전체로 펼치기 */
main.container.wrap > .page-hero{
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}
.gallery-pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.gallery-pagination .is-active,
.gallery-pagination a{
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 1;
}
.gallery-pagination .is-active{
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  font-weight: 700;
}
.news-gallery .section-title{
  margin: 0;
  text-align: center;
  font-size: 52px;
  font-weight: 300;
  color: #1f2937;
  letter-spacing: -0.04em;
}

.news-gallery .section-title::after{
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin: 16px auto 0;
  background: #1f2937;
}
/* ===== 공통 Hero ===== */
.page-hero{
  position: relative;
  padding: 72px 0 64px;
  color: #fff;
  overflow: hidden;
}

.page-hero.page-hero--tight{
  padding: 56px 0 44px;
}

.page-hero .wrap,
.page-hero__inner{
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero .page-hero__title{
  font-size: 32px;
  line-height: 1.3;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: #fff;
}

.page-hero .desc,
.page-hero .page-hero__desc,
.page-hero p{
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
}

.page-hero--photo{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero--photo::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45));
}

/* ===== 소식 Hero ===== */
.page-hero--news{
  background-image:
    linear-gradient(135deg, #0a5bd3, #08266e),
    url("/images/hero_news.jpg");
}

.page-hero--news.page-hero--tight{
  padding: 56px 0 44px;
}

.page-hero--news.page-hero--photo::after{
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.28));
}
@media (max-width: 900px){
  .page-hero{
    padding: 52px 0 40px;
  }

  .page-hero h1,
  .page-hero .page-hero__title{
    font-size: 24px;
  }

  .page-hero .desc,
  .page-hero .page-hero__desc,
  .page-hero p{
    font-size: 14px;
  }
}

.gallery-view__image-wrap{
  margin: 28px 0;
  text-align: center;
}

.gallery-view__image{
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: inline-block;
}

.gallery-view__image-empty{
  margin: 28px 0;
  padding: 40px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  text-align: center;
  color: #777;
  background: #fafafa;
}

.gallery-view__summary{
  margin: 0 0 24px;
  padding: 20px 24px;
  background: #f8f9fb;
  border-radius: 16px;
}

.gallery-view__summary-label{
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-view-page,
.gallery-view-page{
  padding-top: 28px;
}

.notice-view-page::before,
.gallery-view-page::before{
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 15px;
  border-radius: 999px;
}

.board-view{
  border: 1px solid #e5e7eb;
  border-top: 1px solid #444;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .05);
  overflow: hidden;
}

.board-view__head{
  padding: 24px 20px 0;
  background: #fff;
}

.board-view__title{
  margin: 0;
  padding: 0 0 26px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  border-bottom: 1px solid #ddd;
  word-break: keep-all;
}

.board-view__meta{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #ddd;
}

.board-view__meta-item{
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 8px;
  font-size: 15px;
  color: #333;
}

.board-view__label{
  color: #666;
  min-width: 58px;
  flex-shrink: 0;
}

.board-view__body{
  padding: 32px 20px 40px;
  min-height: 240px;
  background: #fff;
}

.board-view__content{
  font-size: 16px;
  line-height: 1.9;
  color: #222;
  word-break: break-word;
}

.board-view__content p{
  margin: 0 0 1.2em;
}

.board-view__footer{
  display: flex;
  justify-content: center;
  padding: 8px 20px 32px;
  background: #fff;
}

.board-view__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 20px;
  background: #10b79a;
  border: 1px solid #10b79a;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.board-view__btn:hover{
  background: #0ea68c;
  border-color: #0ea68c;
}

@media (max-width: 900px){
  .board-view{
    border-radius: 16px;
  }

  .board-view__title{
    font-size: 24px;
    padding-bottom: 20px;
  }

  .board-view__meta{
    grid-template-columns: 1fr;
  }

  .board-view__meta-item{
    min-height: 44px;
    border-bottom: 1px solid #f0f0f0;
  }

  .board-view__meta-item:last-child{
    border-bottom: 0;
  }

  .board-view__body{
    padding: 24px 16px 32px;
  }
}

@media (max-width: 640px){
  .board-view__head{
    padding: 20px 14px 0;
  }

  .board-view__title{
    font-size: 21px;
  }

  .board-view__meta-item{
    font-size: 14px;
  }

  .board-view__content{
    font-size: 15px;
  }

  .board-view__footer{
    padding: 8px 14px 28px;
  }
}