.news-gallery{
  padding-top: 28px;
    padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid #e5e7eb;
}

.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: 0;
  padding: 40px 20px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  text-align: center;
  color: #777;
  background: #fff;
}
.gallery-view__images {
  margin-top: 32px;
}

.gallery-view__images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-view__sub-image {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}
/* 요약도 카드 섹션처럼 정리 */
.gallery-view__summary{
  margin: 0;
  padding: 24px 20px 28px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
}

.gallery-view__summary-label{
  font-weight: 700;
  margin-bottom: 10px;
}

.gallery-view__summary p{
  margin: 0;
  padding: 20px 24px;
  background: #f8f9fb;
  border-radius: 16px;
  line-height: 1.8;
  color: #222;
}


.notice-view-page,
.gallery-view-page{
  padding-top: 28px;
  padding-bottom: 56px;
}

.notice-view-page::before,
.gallery-view-page::before{
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin: 0 0 15px;
  border-radius: 999px;
}
/* 슬라이더 영역도 카드 내부 섹션처럼 */
.gallery-view__slider{
  margin-top: 0;
  padding: 28px 20px 32px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.gallery-view__stage {
  position: relative;
}

.gallery-view__track-wrap {
  overflow: hidden;
  width: 100%;
  border-radius: 20px;
  background: #f8fafc;
}

.gallery-view__track {
  display: flex;
  transition: transform .35s ease;
  width: 100%;
}

.gallery-view__slide {
  min-width: 100%;
}

.gallery-view__slide-img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: #f8fafc;
}

.gallery-view__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.gallery-view__nav--prev {
  left: 18px;
}

.gallery-view__nav--next {
  right: 18px;
}

.gallery-view__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.gallery-view__thumb {
  width: 92px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gallery-view__thumb.is-active {
  border-color: #2563eb;
}

.gallery-view__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 본문 끝 구분선 */
.board-view__body{
  padding: 32px 20px 40px;
  min-height: 240px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

/* 버튼영역 분리 */
.board-view__footer{
  display: flex;
  justify-content: center;
  padding: 24px 20px 32px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

/* 마지막 요소 아래 여백 정리 */
.board-view__content > *:last-child{
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .gallery-view__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .gallery-view__nav--prev {
    left: 10px;
  }

  .gallery-view__nav--next {
    right: 10px;
  }

  .gallery-view__slide-img {
    max-height: 420px;
  }

  .gallery-view__thumb {
    width: 72px;
    height: 56px;
  }
  
}
@media (max-width: 900px){
  .gallery-view__slider,
  .gallery-view__summary,
  .board-view__body,
  .board-view__footer{
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px){
  .gallery-view__slider,
  .gallery-view__summary,
  .board-view__body,
  .board-view__footer{
    padding-left: 14px;
    padding-right: 14px;
  }

  .gallery-view__summary p{
    padding: 16px 18px;
  }
}
.board-view{
  border: 1px solid #d9dee5;
  border-top: 1px solid #444;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  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;
  }
}