.our-work-page {
  min-height: 100svh;
  background-color: #ffffff;
}

.our-work-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  background-color: #fff7eb;
  padding: 5px 0;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease;
}

.our-work-header.scrolled {
  background-color: #ffffff;
  padding-bottom: 10px;
}

.our-work-header-inner {
  padding: 0 2.5rem;
}

.our-work-header .logo img {
  margin-top: 5px;
}

.our-work-main {
  padding: 6.25rem 2.5rem 6rem;
}

.our-work-title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  color: #01204e;
}

.our-work-intro {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: #01204e;
}

.work-entry {
  width: 100%;
  max-width: 72rem;
  margin-top: 2rem;
}

.work-entry + .work-entry {
  margin-top: 3.25rem;
}

.work-piece-frame {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #000000;
  box-shadow: 16px 16px 0 #000000;
}

.work-piece {
  --work-collapsed: 20rem;
  --work-ease: 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
  height: var(--work-collapsed);
  padding: 1.15rem 1.15rem 2.4rem 1.15rem;
  background: #ffffff;
  overflow: hidden;
  transition: height var(--work-ease);
}

.work-piece.is-expanded {
  align-items: start;
}

.work-piece-slider {
  position: relative;
  min-height: 0;
  height: calc(var(--work-collapsed) - 3.55rem);
  align-self: start;
}

.work-piece-slider-viewport {
  height: 100%;
  overflow: hidden;
  background: #e6e6e6;
}

.work-piece-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}

.work-piece-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
}

.work-piece-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-piece-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6f6f6f;
  font-size: 15px;
  font-style: italic;
}

.work-piece-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.work-piece-slider-btn:hover,
.work-piece-slider-btn:focus-visible {
  opacity: 1;
}

.work-piece-slider-btn svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.work-piece-slider-btn path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-piece-slider-btn-outline {
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 3.5;
}

.work-piece-slider-btn.is-prev {
  left: 0.1rem;
}

.work-piece-slider-btn.is-next {
  right: 0.1rem;
}

.work-piece-copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.work-piece-title {
  margin: 0 0 0.4rem;
  font-size: 22px;
  font-weight: 500;
  color: #01204e;
}

.work-piece-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.3rem 0.55rem;
  background-color: #e6e6e6;
}

.work-piece-category,
.work-piece-by {
  margin: 0;
  font-size: 15px;
  color: #01204e;
}

.work-piece-linkedin {
  margin: 0 0 0.65rem;
  font-size: 14px;
  color: #01204e;
}

.work-piece-linkedin a {
  color: #01204e;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.work-piece-linkedin a:hover {
  color: #028393;
}

.work-piece-desc {
  min-height: 0;
  overflow: hidden;
}

.work-piece.is-expanded .work-piece-desc {
  overflow: visible;
}

.work-piece-desc p {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: #01204e;
}

.work-piece-desc p + p {
  margin-top: 0.75rem;
}

.work-piece-expand {
  position: absolute;
  right: 0.55rem;
  bottom: 0.35rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #01204e;
  cursor: pointer;
  transition: transform var(--work-ease);
}

.work-piece-expand svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.work-piece-expand path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-piece.is-expanded .work-piece-expand {
  transform: rotate(180deg);
}

.work-piece-enquire {
  display: inline-block;
  margin-top: 1.85rem;
  font-size: 15px;
  font-style: italic;
  color: #01204e;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work-piece-enquire:hover {
  color: #028393;
}

.our-work-back {
  position: fixed;
  left: 2.5rem;
  bottom: 1.5rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background-color: #000000;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  box-shadow: none;
  border-radius: 4px;
}

@media (max-width: 991.98px) {
  .our-work-header-inner,
  .our-work-main {
    padding-left: 30px;
    padding-right: 30px;
  }

  .our-work-back {
    left: 30px;
  }

  .work-piece {
    --work-collapsed: 28rem;
    grid-template-columns: 1fr;
  }

  .work-piece-slider,
  .work-piece.is-expanded .work-piece-slider {
    height: 12.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .our-work-header,
  .work-piece,
  .work-piece-expand,
  .work-piece-slider-track,
  .work-piece-slider-btn {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .our-work-header-inner,
  .our-work-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .our-work-back {
    left: 1rem;
    bottom: 1rem;
  }

  .work-piece {
    --work-collapsed: 32rem;
  }

  .work-piece-frame {
    box-shadow: 10px 10px 0 #000000;
  }
}
