/*
Theme Name: KCHA Space
Theme URI: https://space.whw.tw/
Author: KCHA
Description: 酷查空間攝影獨立網站佈景主題。
Version: 1.6.4
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: kcha-space
*/

html,body{margin:0;padding:0}

#works .ks-gallery .ks-item figcaption[lang="en"],
.sp.sc-list .grid figcaption>small[lang="en"] {
  font-family: 'Kcha Portfolio Serif', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal !important;
  text-transform: none;
  line-height: 1.3;
}
#works .ks-gallery .ks-item figcaption[lang="en"] {
  font-size: clamp(1.125rem, 1.03rem + .24vw, 1.3125rem) !important;
}
.sp.sc-list .grid figcaption>small[lang="en"] {
  font-size: clamp(.9375rem, .9rem + .16vw, 1.0625rem);
}
#works .ks-gallery .ks-item figcaption[lang="en"] i,
.sp.sc-list .grid figcaption>small[lang="en"] i { font-style: italic; }
#works .ks-gallery .ks-item figcaption[lang="en"] .kp-type-slash,
.sp.sc-list .grid figcaption>small[lang="en"] .kp-type-slash {
  display: inline;
  font-size: .75em;
  margin-inline: .12em;
}

/* KCHA portfolio serif: case detail */
.sc-page .sc-intro .sc-eyebrow .sc-project-name,
.sc-page .sc-end-note .sc-project-name {
  font-family: 'Kcha Portfolio Serif', Georgia, serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}
.sc-page .sc-project-name em {
  font-family: inherit;
  font-weight: inherit;
  font-style: italic;
}
.sc-page .sc-story .sc-story-title[lang="en"],
.sc-page .sc-story .sc-description[lang="en"] {
  font-family: 'Kcha Portfolio Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}
.sc-page .sc-story .sc-story-title[lang="en"] {
  font-size: clamp(25px, 2.2vw, 34px);
  font-style: italic;
  line-height: 1.2;
}
.sc-page .sc-story .sc-description[lang="en"] {
  font-size: clamp(18px, 1.45vw, 22px);
  font-style: normal;
  line-height: 1.45;
  max-width: 34em;
}

/* Shared header for the homepage and portfolio. */
:is(.kspace, header.kps-shell) > .ks-wrap:has(> nav.ks-top) {
  --header-gutter: 36px;
  box-sizing: border-box;
  width: 100%;
  padding-inline: max(var(--header-gutter), calc((100% - 1320px) / 2));
  box-shadow: inset 0 -1px rgba(23, 24, 22, .22);
}

:is(.kspace, header.kps-shell) > .ks-wrap:has(> nav.ks-top) > nav.ks-top {
  border-bottom-color: transparent;
}

@media (max-width: 900px) {
  :is(.kspace, header.kps-shell) > .ks-wrap:has(> nav.ks-top) { --header-gutter: 20px; }
}
@media (max-width: 480px) {
  :is(.kspace, header.kps-shell) > .ks-wrap:has(> nav.ks-top) { --header-gutter: 14px; }
}

/* Portfolio titles: English presentation on every screen size. */
.sp.sc-list .grid figcaption:has(> small[lang="en"]) > span {
  display: none;
}

/* Retain the article heading for screen readers while showing the English name. */
.sc-page .sc-intro #sc-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
