.skip {position:absolute;width:1px;height:1px;margin:0;padding:0;background:none; font-size:3px; color:transparent; line-height: 0;  overflow:hidden;}

.logo {
  z-index: 5;
  display: block;
  box-sizing: border-box;
  padding: 0 100px; /* 좌우 여백 — .visualSlide / .collection과 동일 */
  transition: all 0.6s ease;
}

.logo h1 {
  margin: 0;
  padding: 30px 0 35px;
  font-family: "SCoreDream", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: #000;
  white-space: nowrap;
}

/* ===== Visual ===== */
/* 슬라이드 없음 — 문서 흐름. 이미지는 영역 안 contain + 가운데 */
.visualSlide {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 140px;
  padding: 0 100px; /* 좌우 여백 — .collection과 동일 */
}

.visualSlide .visual-track {
  display: flex;
  justify-content: center;
  width: 100%;
}

.visualSlide .visual-item {
  display: none;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
}

.visualSlide .visual-item.is-active {
  display: flex;
}

.visualSlide .visual-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  height: 750px;
  overflow: hidden;
}

/* 남는 영역: 동일 이미지 cover + blur */
.visualSlide .visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: blur(24px);
  transform: scale(1.12);
  transform-origin: center;
}

/* 작품: 816 영역 안 contain (가로長→폭100%, 세로長→높이100%) */
.visualSlide .visual-fg {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* 작품명 · 작가 — 이미지 아래, 내용 우측 정렬 */
.visualSlide .visual-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  padding-left: 24px;
  font-family: "SCoreDream", sans-serif;
  font-size: 16px;

  color: #000;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%);
}


.visualSlide .visual-meta .visual-title {
  display: block;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.visualSlide .visual-meta .visual-author {
  display: inline-flex;
  flex-shrink: 0;
}
.visualSlide .visual-meta .visual-author:before {
  content: "·";
  display: inline-flex;
  margin: 0 15px 0 -15px;
  color: #000;
}

.visualSlide .visual-more {
  /* display: flex; */
  display:none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.visualSlide .visual-more::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  background: url("../images/main/visual/icon-more.png") no-repeat center / contain;
}

/* prev / next — 우하단, .visualSlide 좌우 padding 안쪽 */
.visualSlide .visual-control {
  display:none;
  position: absolute;
  right: 100px; /* .visualSlide padding-right와 동일 */
  bottom: 0;
  z-index: 4;
  /* display: flex; */
  align-items: stretch;
}

.visualSlide .visual-control button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 16px;
  box-sizing: border-box;
  border: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.visualSlide .visual-control .prev::before,
.visualSlide .visual-control .next::before {
  content: "";
  display: block;
  width: 18px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.visualSlide .visual-control .prev::before {
  background-image: url("../images/main/visual/icon-chevron-left.png");
}

.visualSlide .visual-control .next::before {
  background-image: url("../images/main/visual/icon-chevron-right.png");
}

/* 2x 이상: SVG */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .visualSlide .visual-more::before {
    background-image: url("../images/main/visual/icon-more.svg");
  }

  .visualSlide .visual-control .prev::before {
    background-image: url("../images/main/visual/icon-chevron-left.svg");
  }

  .visualSlide .visual-control .next::before {
    background-image: url("../images/main/visual/icon-chevron-right.svg");
  }
}

.visualSlide .visual-control button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* ===== Logo / Visual — tablet (보간) ===== */
@media all and (max-width: 1000px) {
  .logo {
    padding: 0 50px; /* .collection 좌우 50px와 동일 */
  }

  .logo h1 {
    padding: 24px 0 28px;
    font-size: 20px;
  }

  .visualSlide {
    margin-bottom: 100px;
    padding: 0 50px; /* .collection 좌우 50px와 동일 */
  }

  .visualSlide .visual-media {
    height: 620px;
  }

  .visualSlide .visual-control {
    right: 50px;
  }

  .visualSlide .visual-meta {
    margin-top: 12px;
    gap: 20px;
    padding-left: 16px;
    font-size: 14px;
  }
  .visualSlide .visual-meta .visual-author:before {
    margin: 0 10px 0 -10px;
  }
  .visualSlide .visual-more {
    width: 32px;
    height: 32px;
  }

  .visualSlide .visual-more::before {
    width: 24px;
    height: 24px;
  }

  .visualSlide .visual-control button {
    width: 60px;
    height: 60px;
    padding: 12px;
  }

  .visualSlide .visual-control .prev::before,
  .visualSlide .visual-control .next::before {
    width: 9px;
    height: 18px;
  }
}

/* ===== Logo / Visual — mobile (Figma 1:115) ===== */
@media all and (max-width: 640px) {
  .logo {
    padding: 0 20px; /* .collection 좌우 20px와 동일 */
  }

  .logo h1 {
    padding: 18px 0 22px;
    font-size: 16px;
  }

  .visualSlide {
    margin-bottom: 70px;
    padding: 0 20px; /* .collection 좌우 20px와 동일 */
  }

  .visualSlide .visual-media {
    height: 400px;
  }

  .visualSlide .visual-control {
    right: 20px;
  }

  .visualSlide .visual-meta {
    margin-top: 8px;
    gap: 12px;
    padding-left: 12px;
    font-size: 12px;
  }
  .visualSlide .visual-meta .visual-author:before {
    margin: 0 6px 0 -6px;
  }
  .visualSlide .visual-more {
    width: 24px;
    height: 24px;
  }

  .visualSlide .visual-more::before {
    width: 20px;
    height: 20px;
  }

  .visualSlide .visual-control button {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .visualSlide .visual-control .prev::before,
  .visualSlide .visual-control .next::before {
    width: 8px;
    height: 14px;
  }
}

/* ===== Collection (소장품 보기) — PC ===== */
.collection {
  box-sizing: border-box;
  width: 100%;
  padding: 0 100px 100px;
  background: #fff;
}

.collection-title {
  margin: 0 -15px 0 0;
  font-family: "SCoreDream", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  text-align: center;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px; /* 탭·검색·더보기 동일 wrap 간격 */
  box-sizing: border-box;
  min-height: 66px; /* 검색 활성 바(66)와 동일 — 토글 시 세로 점프 방지 */
  margin-top: 18px;
}

/* 자식(탭·액션)이 toolbar wrap에 직접 참여 — 마지막 탭 다음에 검색/더보기 */
.collection-tabs {
  display: contents;
}

.collection-tabs [role="tab"] {
  position: relative;
  display: inline-block;
  height: auto;
  margin: 0;
  padding: 9px 8px;
  border: 0;
  background: none;
  font-family: "SCoreDream", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: normal;
  color: #000;
  white-space: nowrap;
  cursor: pointer;
}

.collection-tabs [role="tab"]:focus {
  outline: none;
}

.collection-tabs [role="tab"]:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.collection-tabs [role="tab"].is-active {
  font-weight: 600;
}

.collection-tabs [role="tab"].is-active::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100%); /* Figma: 텍스트 39 → 라인 54 */
  height: 3px;
  background: #000;
  transform: translateX(-50%);
}

.collection-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.collection-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  user-select: none;
  caret-color: transparent;
}

.collection-search-btn:focus {
  outline: none;
}

.collection-search-btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.collection-search-btn::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: url("../images/main/collection/icon-search.png") no-repeat center / contain;
}

.collection-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 31px;
  margin-top: -2px;
  padding: 0 15px;
  border: 1px solid #949494;
  border-radius: 16px;
  font-family: "SCoreDream", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  caret-color: transparent;
}

.collection-more:focus {
  outline: none;
}

.collection-more:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.collection-more span {
  display: block;
  position: relative;
  top: 2px; /* SCoreDream 광학 보정 */
}

.collection-more::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background: url("../images/main/collection/icon-plus.png") no-repeat center / contain;
}

/* 전체 탭 — 더보기 숨김 (툴바 / 목록 하단) */
.collection.is-all-tab .collection-more,
.collection.is-all-tab .collection-more-mobile {
  display: none !important;
}

/* 목록 하단 더보기 — 관별 탭에서 디바이스 상관없이 항상 표시 */
.collection-more-mobile {
  display: flex;
  justify-content: center;
  margin: 0;
}

.collection-more-mobile .link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  text-decoration: none;
}

.collection-more-mobile .link:focus {
  outline: none;
}

.collection-more-mobile .link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.collection-more-mobile .link::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background: url("../images/main/collection/icon-more.png") no-repeat center / contain;
}

.collection-search {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 66px; /* .collection-toolbar와 동일 */
  margin-top: 18px;
}

.collection.is-search-open .collection-toolbar {
  display: none;
}

.collection.is-search-open .collection-search {
  display: flex;
}

.collection-search-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 1180px;
  max-width: calc(100% - 36px);
  padding: 9px 30px 8px;
  border: 1px solid #333;
  background: #fff;
}

.collection-search-field fieldset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.collection-search-field legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.collection-search-field input[type="search"] {
  display: block;
  flex: 1;
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: "SCoreDream", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
  color: #222;
  outline: none;
  box-sizing: border-box;
}

.collection-search-field input[type="search"]::-webkit-search-decoration,
.collection-search-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.collection-search-field input[type="search"]::-ms-clear {
  display: none;
}


.collection-search-field input[type="search"]::placeholder {
  color: #222;
  opacity: 1;
}

.collection-search-submit,
.collection-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.collection-search-submit:focus,
.collection-search-close:focus {
  outline: none;
}

.collection-search-submit:focus-visible,
.collection-search-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.collection-search-submit::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: url("../images/main/collection/icon-search.png") no-repeat center / contain;
}

.collection-search-close::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  background: url("../images/main/collection/icon-close.png") no-repeat center / contain;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  .collection-search-btn::before {
    background-image: url("../images/main/collection/icon-search.svg");
  }

  .collection-more::before {
    background-image: url("../images/main/collection/icon-plus.svg");
  }

  .collection-search-submit::before {
    background-image: url("../images/main/collection/icon-search.svg");
  }

  .collection-search-close::before {
    background-image: url("../images/main/collection/icon-close.svg");
  }

  .collection-more-mobile .link::before {
    background-image: url("../images/main/collection/icon-more.svg");
  }
}

/* ===== Collection — title / tabs — tablet (보간) ===== */
@media all and (max-width: 1000px) {
  .collection {
    padding: 0 50px 90px;
  }

  .collection-title {
    font-size: 32px;
  }

  /* 탭·검색·더보기를 한 wrap 흐름으로 — 마지막 탭 바로 다음에 액션 */
  .collection-toolbar {
    gap: 8px 28px;
    min-height: 50px;
    margin-top: 28px;
  }

  .collection-tabs [role="tab"] {
    padding: 7px 0;
    font-size: 16px;
  }

  .collection-tabs [role="tab"].is-active::after {
    width: calc(100% + 10px);
    height: 2.5px;
  }

  .collection-toolbar-actions {
    gap: 16px;
  }

  .collection-search-btn,
  .collection-search-btn::before {
    width: 22px;
    height: 22px;
  }

  .collection-more {
    height: 28px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  .collection-more::before {
    width: 10px;
    height: 10px;
  }

  /* 검색 활성 바 */
  .collection-search {
    gap: 8px;
    min-height: 50px;
    margin-top: 28px;
  }

  .collection-search-field {
    max-width: calc(100% - 28px);
    padding: 5px 22px;
  }

  .collection-search-field input[type="search"] {
    padding: 8px 0;
    font-size: 16px;
  }

  .collection-search-submit,
  .collection-search-close,
  .collection-search-submit::before,
  .collection-search-close::before {
    width: 22px;
    height: 22px;
  }
}

/* ===== Collection — title / tabs — mobile (Figma 31:2) ===== */
@media all and (max-width: 640px) {
  .collection {
    padding: 0 20px 60px;
  }

  .collection-title {
    font-size: 24px;
  }

  .collection-toolbar {
    gap: 6px 18px;
    min-height: 0;
    margin-top: 12px;
  }

  .collection-tabs [role="tab"] {
    padding: 4px 0;
    font-size: 12px;
  }

  .collection-tabs [role="tab"].is-active::after {
    width: calc(100% + 2px); /* Figma: 텍스트 24 → 라인 26 */
    height: 2px;
  }

  .collection-toolbar-actions {
    gap: 10px;
  }

  .collection-search-btn,
  .collection-search-btn::before {
    width: 20px;
    height: 20px;
  }

  .collection-more {
    height: 24px;
    margin-top: -1px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 12px;
    gap: 5px;
  }

  .collection-more::before {
    width: 8px;
    height: 8px;
  }

  .collection-more span {
    top: 1px;
  }

  /* 검색 활성 바 */
  .collection-search {
    gap: 6px;
    min-height: 40px;
    margin-top: 18px;
  }

  .collection-search-field {
    max-width: 100%;
    padding: 4px 16px;
  }

  .collection-search-field input[type="search"] {
    padding: 6px 0;
    font-size: 12px;
  }

  .collection-search-submit,
  .collection-search-close,
  .collection-search-submit::before,
  .collection-search-close::before {
    width: 20px;
    height: 20px;
  }

  .collection-list .collection-item:last-child {
    padding-bottom: 0;
  }
}

@media all and (max-width: 404px) {
  .collection-toolbar-actions {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

.collection-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.collection-item {
  /* Masonry: 4열 / gutter 30 — (100% - 30*3) / 4 */
  width: calc((100% - 90px) / 4);
  margin: 0;
  padding: 0 0 120px;
  box-sizing: border-box;
}

.collection-item.is-hidden {
  display: none;
}

.collection-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.collection-item .thumb {
  display: block;
  overflow: hidden;
  background: #d9d9d9;
}

.collection-item .thumb img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.collection-item .title {
  display: block;
  margin: 21px 0 0;
  font-family: "SCoreDream", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.collection-item .author {
  display: block;
  margin: 9px 0 0;
  font-family: "SCoreDream", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  color: #222;
}

/* ===== Collection list — Masonry 열 수 (원본 column-count와 동일 브레이크포인트) =====
   PC 카드 ~407 / 목표 최소 ~300
   4→3: 패딩 100×2 기준 content≈1300 근처
   3→2: 카드 ~280 이하로 줄 때
   2→1: Figma 모바일(360) 1열
*/
@media all and (max-width: 1500px) {
  .collection-item {
    /* 3열 / gutter 24 — (100% - 24*2) / 3 */
    width: calc((100% - 48px) / 3);
    padding-bottom: 100px;
  }

  .collection-item .title {
    margin-top: 20px;
    font-size: 22px;
  }

  .collection-item .author {
    margin-top: 8px;
    font-size: 16px;
  }
}

@media all and (max-width: 1100px) {
  .collection-item {
    /* 2열 / gutter 20 — (100% - 20*1) / 2 */
    width: calc((100% - 20px) / 2);
    padding-bottom: 80px;
  }

  .collection-item .title {
    margin-top: 18px;
    font-size: 20px;
  }

  .collection-item .author {
    margin-top: 8px;
    font-size: 15px;
  }
}

@media all and (max-width: 700px) {
  .collection-list {
    margin-top: 36px;
  }

  .collection-item {
    width: 100%;
    padding-bottom: 60px;
  }

  /* Figma 1:110 — title ~19 / author ~14 */
  .collection-item .title {
    margin-top: 17px;
    font-size: 19px;
  }

  .collection-item .author {
    margin-top: 6px;
    font-size: 14px;
  }
}

/* ===== Footer — Figma 1:98(PC) / 1:151(Mobile) ===== */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  background: #fff;
}

footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  padding: 55px 100px;
}

footer .footer-logo,
footer .footer-copy {
  margin: 0;
  font-family: "SCoreDream", sans-serif;
  line-height: normal;
  color: #000;
}

footer .footer-logo {
  font-size: 36px;
  font-weight: 700;
}

footer .footer-copy {
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

@media all and (max-width: 1000px) {
  footer .footer-inner {
    padding: 50px 50px;
  }

  footer .footer-logo {
    font-size: 28px;
  }

  footer .footer-copy {
    font-size: 14px;
  }
}

@media all and (max-width: 640px) {
  footer .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    padding: 40px 37px;
  }

  footer .footer-logo {
    font-size: 20px;
    text-align: center;
  }

  footer .footer-copy {
    font-size: 13px;
    text-align: center;
  }
}
