/**
 * sec7-media — 미디어 자료 PC 기본 스타일
 * 로드: sub.css 이후 · sub-media-responsive.css(PC 반응형) · sub-media-mobile.css(MO)
 */

/* ── sub-nav 하위 탭 (전체 · 사진 · 영상) — pill 버튼 ── */
.sub-page--sec7-media .sub-nav-wrap-bottom {
  height: auto;
  min-height: 72px;
  padding: 16px 0;
  border-top: 1px solid rgba(36, 36, 36, 0.05);
border-bottom: 1px solid rgba(36, 36, 36, 0.05);
background: #E1F4F9;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-inner,
.sub-page--sec7-media .sub-nav-wrap-bottom-nav {
  height: auto;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-nav ul {
  gap: 8px;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-nav li {
  height: auto;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-nav button[data-media-cat] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 80px;
  padding: 0 28px;
  border: 0;
  border-radius: 100px;
  background: #fff;
  color: #242424;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-nav li.active button[data-media-cat] {
  background: #1bace4;
  color: #fff;
  font-weight: 500;
}

.sub-page--sec7-media .sub-nav-wrap-bottom-nav li.active button[data-media-cat]::after {
  content: none;
}

/* ── 툴바 · 필터 · 검색 (공고/공지 패턴) ── */
.sub-page--sec7-media .sub-media-gallery {
  width: 100%;
}

.sub-page--sec7-media .sub-media-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sub-page--sec7-media .sub-media-gallery__count {
  margin: 0;
  flex-shrink: 0;
  font-size: 16px;
  color: #242424;
  white-space: nowrap;
}

.sub-page--sec7-media .sub-media-gallery__count strong {
  color: #1bace4;
  font-weight: 700;
}

.sub-page--sec7-media .sub-media-gallery__filter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sub-page--sec7-media .sub-media-gallery__filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-page--sec7-media .sub-media-gallery__filter-field {
  position: relative;
  flex: 0 0 auto;
}

.sub-page--sec7-media .sub-media-gallery__filter-field > .ir_pm {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sub-page--sec7-media .sub-media-gallery__select-wrap {
  position: relative;
}

.sub-page--sec7-media .sub-media-gallery__filter-field:has(#mediaExperience) .sub-media-gallery__select-wrap {
  width: 225px;
  min-width: 225px;
}

.sub-page--sec7-media .sub-media-gallery__filter-field:has(#mediaSearchType) .sub-media-gallery__select-wrap {
  width: 120px;
  min-width: 120px;
}

.sub-page--sec7-media .sub-media-gallery__select-wrap.is-open {
  z-index: 50;
}

.sub-page--sec7-media .sub-media-gallery__select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sub-page--sec7-media .sub-media-gallery__select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.sub-page--sec7-media .sub-media-gallery__select-btn::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23242424' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.sub-page--sec7-media .sub-media-gallery__select-btn-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-page--sec7-media .sub-media-gallery__select-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow-y: auto;
  box-sizing: border-box;
  color: #242424;
  font-size: 16px;
  line-height: 1.5;
}

.sub-page--sec7-media .sub-media-gallery__select-list[hidden] {
  display: none !important;
}

.sub-page--sec7-media .sub-media-gallery__select-list [role="option"] {
  padding: 10px 14px;
  cursor: pointer;
}

.sub-page--sec7-media .sub-media-gallery__select-list [role="option"][aria-selected="true"],
.sub-page--sec7-media .sub-media-gallery__select-list [role="option"]:hover {
  background: #f5f9fc;
  color: #1bace4;
}

.sub-page--sec7-media .sub-media-gallery__search {
  position: relative;
  width: 300px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.sub-page--sec7-media .sub-media-gallery__search-input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #242424;
  font-family: inherit;
  box-sizing: border-box;
}

.sub-page--sec7-media .sub-media-gallery__search-input::placeholder {
  color: #9f9f9f;
}

.sub-page--sec7-media .sub-media-gallery__search-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: #1bace4;
  cursor: pointer;
}

.sub-page--sec7-media .sub-media-gallery__search-btn svg {
  display: block;
}

/* ── 갤러리 그리드 ── */
.sub-page--sec7-media .sub-media-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-page--sec7-media .sub-media-gallery__item {
  min-width: 0;
  height: 100%;
}

.sub-page--sec7-media .sub-media-gallery__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: flex-start;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 25px 0 rgba(30, 37, 11, 0.1);
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sub-page--sec7-media .sub-media-gallery__card:hover,
.sub-page--sec7-media .sub-media-gallery__card:focus-visible {
  border-color: #1bace4;
  box-shadow: 0 0 0 1px #1bace4, 0 4px 16px rgba(27, 172, 228, 0.18);
}

.sub-page--sec7-media .sub-media-gallery__thumb {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 300 / 200;
  background: #f0f0f0;
}

.sub-page--sec7-media .sub-media-gallery__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.sub-page--sec7-media .sub-media-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-page--sec7-media .sub-media-gallery__card:hover .sub-media-gallery__thumb::after,
.sub-page--sec7-media .sub-media-gallery__card:focus-visible .sub-media-gallery__thumb::after {
  opacity: 1;
}

.sub-page--sec7-media .sub-media-gallery__hover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #1bace4;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.sub-page--sec7-media .sub-media-gallery__card:hover .sub-media-gallery__hover-icon,
.sub-page--sec7-media .sub-media-gallery__card:focus-visible .sub-media-gallery__hover-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sub-page--sec7-media .sub-media-gallery__hover-icon svg {
  display: block;
  flex-shrink: 0;
}

.sub-page--sec7-media .sub-media-gallery__type-icon {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--white, #fff);
  pointer-events: none;
}

.sub-page--sec7-media .sub-media-gallery__type-icon svg {
  display: block;
  flex-shrink: 0;
}

.sub-page--sec7-media .sub-media-gallery__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.sub-page--sec7-media .sub-media-gallery__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #242424;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sub-page--pc.sub-page--sec7-media .sub-media-gallery__title {
  font-size: 20px;
}

.sub-page--sec7-media .sub-media-gallery__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  line-height: 1.5;
}

.sub-page--sec7-media .sub-media-gallery__date {
  color: #242424;
}

.sub-page--sec7-media .sub-media-gallery__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-page--sec7-media .sub-media-gallery__views svg {
  flex-shrink: 0;
  display: block;
}

.sub-page--sec7-media .sub-media-gallery__empty {
  margin: 0;
  padding: 60px 16px;
  text-align: center;
  color: #9f9f9f;
}

.sub-page--sec7-media .sub-media-gallery__empty[hidden] {
  display: none !important;
}

/* ── 페이징 (공고/공지 동일) ── */
.sub-page--sec7-media .sub-media-gallery__paging {
  margin-top: 60px;
  margin-bottom: 60px;
}

.sub-page--sec7-media .sub-media-gallery__paging ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-page--sec7-media .sub-media-gallery__page-group {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.sub-page--sec7-media .sub-media-gallery__page-group--ctrl {
  gap: 6px;
}

.sub-page--sec7-media .sub-media-gallery__page-group--nums {
  gap: 6px;
}

.sub-page--sec7-media .sub-media-gallery__page-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #eef2f4;
  color: #242424;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.sub-page--sec7-media .sub-media-gallery__page-ctrl svg {
  display: block;
  flex-shrink: 0;
  height: 12px;
}

.sub-page--sec7-media .sub-media-gallery__page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  min-width: 36px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #575756;
  font-size: 16px;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.sub-page--sec7-media .sub-media-gallery__page-num.is-active {
  background: #1bace4;
  color: #fff;
  font-weight: 700;
}

.sub-page--sec7-media .sub-media-gallery__page-ctrl:hover,
.sub-page--sec7-media .sub-media-gallery__page-num:hover {
  color: #1bace4;
}

.sub-page--sec7-media .sub-media-gallery__page-num.is-active:hover {
  color: #fff;
}

.sub-page--sec7-media .sub-media-gallery__page-ctrl.is-disabled,
.sub-page--sec7-media .sub-media-gallery__page-ctrl:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.sub-page--sec7-media .sub-contact .inner.container17 {
  text-align: center;
}

.sub-page--sec7-media .sub-contact p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
