.page--work {
  width: 100%;
}

.work-list-wrapper {
  --work-cols: 2fr 5fr 2fr;
  width: 100%;
  padding-top: 160px;
}

.work-list--th {
  display: grid;
  grid-template-columns: var(--work-cols);
}

.work-list--th {
  letter-spacing: -0.02rem;
}

.work-list--th > div {
  padding: 20px var(--g);
  color: var(--theme-bk);
  font-weight: 700;
  line-height: 150%;
}

.work-list--th > div:last-child {
  text-align: right;
}

@media screen and (max-width: 1080px) {
  .work-list--th {
    display: none;
  }
}

.work-list {
  border-bottom: 0.75px solid var(--theme-gr);
}

:root[data-theme="dark"] .work-item[data-work-theme="web"],
:root[data-theme="light"] .work-item[data-work-theme="film"] {
  display: none;
}

.work-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--work-cols);
  align-items: center;
  border-top: 0.75px solid var(--theme-gr);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.work-item > div {
  padding: var(--work-row-pad, 20px) var(--g);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-client,
.work-date {
  font-family: 'Inclusive Sans', 'Gothic A1', sans-serif;
  font-size: var(--fz);
  font-weight: 400;
  line-height: 150%;
  letter-spacing: normal;
  text-transform: none;
  color: var(--theme-gr-40);
}

.work-date {
  text-align: right;
}

.work-title {
  font-family: 'Inclusive Sans', 'Gothic A1', sans-serif;
  font-size: var(--fz);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--theme-gr-40);
}

.work-item:hover {
  background: var(--keyColor);
}

.work-item:hover > div {
  color: var(--bk);
}

.sec--work {
  --work-thumb-w: 360px;
  --work-thumb-x: 68%;
}

.work-thumb {
  position: fixed;
  top: 50%;
  left: var(--work-thumb-x);
  transform: translate(-50%, -50%);
  z-index: 50;
  width: var(--work-thumb-w);
  aspect-ratio: 16 / 9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.work-thumb.is-visible {
  opacity: 1;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media screen and (max-width: 1080px) {
  .work-thumb {
    display: none;
  }

  .work-item {
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    padding: 15px var(--g);
    align-items: baseline;
  }

  .work-item > div {
    padding: 0;
  }

  .work-client {
    grid-column: 1;
    grid-row: 1;
  }

  .work-date {
    grid-column: 2;
    grid-row: 1;
  }

  .work-title {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
    color: var(--theme-bk);
  }

  .work-item:active {
    background: var(--keyColor);
  }

  .work-item:active > div {
    color: var(--bk);
  }
}

.t-work-detail #wrap {
  padding-left: 0;
  padding-right: 0;
}

.page--work-detail {
  width: 100%;
}

.wd-head,
.wd-desc,
.wd-credits,
.wd-blocks {
  padding-left: var(--h);
  padding-right: var(--h);
}

.wd-head {
  padding-top: 160px;
}

.wd-title {
  text-align: center;
  font-family: 'Inclusive Sans', 'Gothic A1', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 140%;
}

.wd-title span {
  display: block;
}

.wd-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--g);
  margin-top: var(--g-xl);
}

.wd-meta-item:last-child {
  justify-self: end;
}

.wd-meta-item {
  display: flex;
  align-items: baseline;
  gap: var(--g-m);
}

.wd-meta-value {
  font-family: 'Inclusive Sans', 'Gothic A1', sans-serif;
  font-size: var(--fz);
  font-weight: 400;
  color: var(--theme-bk);
}

.wd-media {
  margin: var(--g-m) var(--h) 0;
  aspect-ratio: 16 / 9;
  background: var(--theme-gr);
  overflow: hidden;
}

.wd-media--embed > * {
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.wd-media iframe,
.wd-media img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.wd-desc {
  margin-top: 48px;
  font-size: var(--fz-s);
  line-height: 170%;
}

.wd-credits {
  position: relative;
  margin-top: 48px;
  padding-top: 48px;
}

.wd-credits:before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--h);
  right: var(--h);
  border-top: 0.75px solid var(--theme-gr);
}

.wd-credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--g-xl);
}

.wd-credit-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--g-l);
  align-items: start;
}

.wd-credit-label,
.wd-credit dt {
  font-family: 'AOT Serial Mono', 'Gothic A1', sans-serif;
  font-size: var(--fz-s);
  letter-spacing: -0.05rem;
  text-transform: uppercase;
  color: var(--theme-gr-40);
}

.wd-service-list,
.wd-credit-list {
  font-family: 'AOT Serial Mono', 'Gothic A1', sans-serif;
  font-size: var(--fz-s);
  line-height: 190%;
}

.wd-credit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--g-m);
}

.wd-credit dd {
  min-width: 0;
  text-align: right;
}

.wd-contact {
  padding-top: 48px;
}

@media screen and (max-width: 1080px) {
  .work-list-wrapper,
  .wd-head {
    padding-top: var(--v);
  }

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

  .wd-meta {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: var(--g-s);
    margin-top: var(--g-xl);
  }

  .wd-meta-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .wd-desc,
  .wd-credits,
  .wd-blocks,
  .wd-blocks > .wd-block--text,
  .wd-blocks > .wd-block--text + * {
    margin-top: 48px;
  }

  .wd-credits {
    padding-top: 48px;
  }

  .wd-credits {
    grid-template-columns: 1fr;
    gap: var(--g-l);
  }

  .wd-credit-block {
    grid-template-columns: 1fr;
    gap: var(--g-xs);
  }
}

.wd-blocks {
  margin-top: 48px;
}

.wd-blocks > * + * {
  margin-top: var(--g-s);
}

.wd-blocks > .wd-block--text {
  margin-top: 48px;
}

.wd-blocks > .wd-block--text + * {
  margin-top: 48px;
}

.wd-blocks figure,
.wd-blocks img {
  width: 100%;
  display: block;
}

.wd-blocks iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.wd-blocks video {
  width: 100%;
  height: auto;
  display: block;
}

.wd-blocks figcaption {
  margin-top: var(--g-xs);
  text-align: left;
  font-family: 'AOT Serial Mono', 'Gothic A1', sans-serif;
  font-size: var(--fz-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme-gr-40);
}

.wd-blocks p {
  font-size: var(--fz-s);
  line-height: 170%;
}

.wd-blocks p + p {
  margin-top: var(--g-m);
}

.wd-blocks h1,
.wd-blocks h2,
.wd-blocks h3 {
  font-family: 'Inclusive Sans', 'Gothic A1', sans-serif;
  font-weight: 600;
  line-height: 140%;
}

.wd-blocks a {
  font-family: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: underline;
}

.wd-blocks a:hover {
  color: var(--keyColor);
}

.wd-block--full {
  margin-left: 0;
  margin-right: 0;
}

.b-gallery ul {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: var(--g-s);
}

.b-gallery li {
  overflow: hidden;
}

.b-gallery li[style] img {
  height: 100%;
  object-fit: contain;
}

.b-gallery[data-crop] li[style] img {
  object-fit: cover;
}

.b-embed {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: var(--g-s);
}

.wd-blocks .b-embed iframe {
  aspect-ratio: var(--ratio, 16 / 9);
  height: auto;
}

@media screen and (max-width: 1080px) {
  .wd-blocks,
  .wd-blocks > .wd-block--text,
  .wd-blocks > .wd-block--text + * {
    margin-top: 48px;
  }

  .wd-blocks > * + * {
    margin-top: var(--g-s);
  }

  .b-gallery ul {
    gap: var(--g-xs);
  }

  .b-embed {
    grid-template-columns: repeat(min(var(--cols, 1), 2), minmax(0, 1fr));
    gap: var(--g-xs);
  }
}
