/* Works archive / single -------------------------------------------------- */
.works-layout {
  margin-bottom: 70px;
}

.works-main {
  width: calc(100% - 330px);
}

.works-list > ul > li.works-empty {
  padding: 20px;
  font-size: 1.6rem;
}

.works-list .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.works-entry-header {
  margin-bottom: 26px;
}

.main.detail .works-entry-header .date {
  display: block;
  margin: 0 0 8px;
}

.main.detail .works-entry-header h2 {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.works-entry-header h2 span {
  color: #c91d25;
}

/* Gallery */
.works-gallery {
  display: grid;
  grid-template-columns: minmax(0, 632px) minmax(0, 172px);
  gap: 42px;
  align-items: start;
  margin-bottom: 35px;
}

.works-gallery-main,
.works-gallery-nav {
  min-width: 0;
}

.works-gallery-main.slick-slider,
.works-gallery-nav.slick-slider {
  margin-bottom: 0;
}

.works-gallery-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  background: #eee;
  overflow: hidden;
}

.works-gallery-image img {
  display: block;
  width: auto;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  max-width: none;
}

.works-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  -o-object-fit: cover;
     object-fit: cover;
  max-width: none;
}

.works-gallery-slide figcaption {
  min-height: 30px;
  padding: 6px 0;
  color: #545454;
  font-size: 1.4rem;
  line-height: 1.4;
}

.works-gallery-nav {
  padding: 25px 0;
}

.works-gallery-thumb {
  position: relative;
  display: block !important;
  width: 100%;
  aspect-ratio: 172/112;
  padding: 0;
  border: 2px solid transparent;
  background: #eee;
  cursor: pointer;
  overflow: hidden;
}

.works-gallery-thumb img {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  margin: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.works-gallery-thumb.slick-current {
  border-color: #c91d25;
}

.works-gallery-thumb-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.works-gallery-thumb-caption > span {
  display: -webkit-box;
  max-height: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.works-gallery-thumb:hover .works-gallery-thumb-caption,
.works-gallery-thumb:focus-visible .works-gallery-thumb-caption {
  opacity: 1;
}

.works-gallery-nav .slick-slide {
  margin: 6px 0;
}

.works-gallery-nav .slick-arrow {
  left: 50%;
  width: 34px;
  height: 22px;
  z-index: 2;
  transform: translateX(-50%);
}

.works-gallery-nav .slick-prev {
  top: 4px;
}

.works-gallery-nav .slick-next {
  top: auto;
  right: auto;
  bottom: -4px;
}

.works-gallery-nav .slick-arrow.slick-disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.works-gallery-nav .slick-prev::before,
.works-gallery-nav .slick-next::before {
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-top: 2px solid #111;
  border-left: 2px solid #111;
  content: "";
  opacity: 1;
}

.works-gallery-nav .slick-prev::before {
  transform: rotate(45deg) translate(2px, 2px);
}

.works-gallery-nav .slick-next::before {
  transform: rotate(225deg) translate(2px, 2px);
}

.works-featured-image {
  margin-bottom: 35px;
}

/* Entry content / supplied heading specification */
.main.detail .detail-box.works-content {
  margin-bottom: 38px;
  padding: 0;
  border: 0;
  color: #111;
  font-size: 1.6rem;
  line-height: 1.75;
}

.main.detail .detail-box.works-content > *:first-child {
  margin-top: 0;
}

.main.detail .detail-box.works-content h1,
.main.detail .detail-box.works-content h2 {
  margin: 34px 0 22px;
  padding: 10px 16px;
  border: 0;
  border-left: 5px solid #c91d25;
  background: #fff5f5;
  color: #000;
  font-size: 2.6rem;
  line-height: 1.35;
}

.main.detail .detail-box.works-content h3 {
  position: relative;
  margin: 34px 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid #d7262e;
  background: transparent;
  color: #000;
  font-size: 2.4rem;
  line-height: 1.4;
}

.main.detail .detail-box.works-content h3::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 82px;
  height: 4px;
  background: #c91d25;
  content: "";
}

.main.detail .detail-box.works-content h4 {
  margin: 34px 0 22px;
  padding: 12px 20px;
  border-top: 1px solid #d7262e;
  border-bottom: 1px solid #d7262e;
  background: transparent;
  color: #000;
  font-size: 2rem;
  line-height: 1.4;
}

.main.detail .detail-box.works-content h5 {
  margin: 34px 0 22px;
  padding: 6px 0 10px 20px;
  border-bottom: 1px solid #ccc;
  font-size: 1.8rem;
  line-height: 1.4;
  position: relative;
}

.main.detail .detail-box.works-content h5::before {
  position: absolute;
  top: 8px;
  bottom: 12px;
  left: 0;
  width: 5px;
  background: #c91d25;
  content: "";
}

.main.detail .detail-box.works-content h6 {
  margin: 30px 0 18px;
  padding: 6px 0 10px 22px;
  border-bottom: 1px solid #ccc;
  font-size: 1.6rem;
  line-height: 1.4;
  position: relative;
}

.main.detail .detail-box.works-content h6::before {
  position: absolute;
  top: 12px;
  left: 0;
  width: 10px;
  height: 10px;
  background: #c91d25;
  content: "";
}

.main.detail .detail-box.works-content p {
  margin-bottom: 26px;
  font-size: 1.6rem;
  line-height: 1.75;
}

.main.detail .detail-box.works-content ul {
  margin: 25px 0;
  padding: 22px 24px;
  background: #fff8df;
  font-size: 1.6rem;
  list-style: none;
}

.main.detail .detail-box.works-content ul li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 22px;
  box-shadow: none;
  line-height: 1.65;
  list-style: none;
}

.main.detail .detail-box.works-content ul li:last-child {
  margin-bottom: 0;
}

.main.detail .detail-box.works-content ul li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  background: #c91d25;
  content: "";
}

.main.detail .detail-box.works-content a {
  color: #1746ff;
  text-decoration: underline;
}

/* Archive accordion */
.works-side ul.works-accordion > li > p {
  padding: 0;
}

.works-side ul.works-accordion > li > p::before {
  display: none;
}

.works-side .works-accordion button {
  position: relative;
  width: 100%;
  padding: 18px 30px 18px 0;
  border: 0;
  border-bottom: 1px solid #ccc;
  background: transparent;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.works-side .works-accordion button::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.works-side .works-accordion button[aria-expanded=true]::after {
  margin-top: -1px;
  transform: rotate(225deg);
}

@media screen and (max-width: 767px) {
  .works-fv h2 {
    font-size: 5rem;
    line-height: 1.15;
  }
  .works-fv h2 span {
    margin-top: 12px;
    font-size: 1.5rem;
    letter-spacing: 4px;
  }
  .works-breadcrumb {
    padding-bottom: 32px;
  }
  .works-breadcrumb ul li {
    margin-right: 26px;
    line-height: 1.7;
  }
  .works-breadcrumb ul li a::before {
    right: -20px;
  }
  .works-layout {
    width: calc(100% - 20px);
    margin-bottom: 45px;
  }
  .works-main {
    width: 100%;
  }
  .works-entry-header {
    margin-bottom: 22px;
  }
  .main.detail .works-entry-header .date {
    margin-bottom: 7px;
    font-size: 1.5rem;
  }
  .main.detail .works-entry-header h2 {
    font-size: 2.8rem;
    line-height: 1.45;
  }
  .works-gallery {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 36px;
  }
  .works-gallery-main,
  .works-gallery-nav {
    width: 100%;
  }
  .works-gallery-image,
  .works-featured-image img {
    aspect-ratio: 1.34/1;
  }
  .works-gallery-slide figcaption {
    min-height: 29px;
    padding: 5px 8px;
    font-size: 1.3rem;
    text-align: center;
  }
  .works-gallery-nav {
    padding: 0 20px;
  }
  .works-gallery-nav .slick-list {
    margin: 0 -5px;
  }
  .works-gallery-nav .slick-slide {
    margin: 0 5px;
  }
  .works-gallery-thumb img {
    height: 100%;
  }
  .works-gallery-thumb-caption {
    display: none;
  }
  .works-gallery-nav .slick-arrow {
    top: 50%;
    width: 18px;
    height: 34px;
    transform: translateY(-50%);
  }
  .works-gallery-nav .slick-prev {
    left: -4px;
  }
  .works-gallery-nav .slick-next {
    right: -4px;
    bottom: auto;
    left: auto;
  }
  .works-gallery-nav .slick-prev::before {
    transform: rotate(-45deg);
  }
  .works-gallery-nav .slick-next::before {
    transform: rotate(135deg);
  }
  .main.detail .detail-box.works-content {
    margin-bottom: 34px;
    font-size: 1.6rem;
  }
  .main.detail .detail-box.works-content h1,
  .main.detail .detail-box.works-content h2 {
    margin: 34px 0 22px;
    padding: 11px 20px;
    font-size: 2.6rem;
  }
  .main.detail .detail-box.works-content h3 {
    font-size: 2.4rem;
  }
  .main.detail .detail-box.works-content h4 {
    font-size: 2rem;
  }
  .main.detail .detail-box.works-content h5 {
    font-size: 1.8rem;
  }
  .main.detail .detail-box.works-content h6 {
    font-size: 1.6rem;
  }
  .main.detail .detail-box.works-content p {
    margin-bottom: 25px;
    font-size: 1.6rem;
    line-height: 1.65;
  }
  .main.detail .detail-box.works-content ul {
    padding: 22px 20px;
  }
  .main.detail .back_link {
    display: inline-block;
    margin-bottom: 48px;
  }
  .works-side h2 {
    padding: 18px 20px;
    font-size: 1.8rem;
  }
}