.work-navbar {
  display: flex;
  width: 100%;
  margin-top: 75px;
  padding-left: calc(17px + var(--ea-left-right-padding));
  padding-right: var(--ea-left-right-padding);
  padding-top: 100px;
}
.all-work-nav-links {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  width: 50%;
  font-size: var(--ea-font-size-medium);
}
.about-all-works {
  display: flex;
  width: 50%;
  justify-content: flex-start;
}
.about-all-works h1 {
  line-height: 1.2;
  font-size: var(--ea-font-size-medium);
  font-weight: initial;
  max-width: 460px;
}
.work-name {
  position: relative;
  cursor: pointer;
  height: fit-content;
}
.work-name sup {
  font-size: 50%;
  top: -1em;
  right: 5px;
}
.work-name span:before,
.work-name span:after {
  content: '';
  position: absolute;

  left: -17px;
  display: block;
  border: 0.2em solid transparent;
  border-left-width: calc(0.2em * 2 / 3);
  border-right-width: calc(0.2em * 2 / 3);
  transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.work-name span:before {
  border-bottom-color: black;
  top: 13px;
  transform: translateY(calc(0.2em * -0.25));
}
.work-name span:after {
  transform: translateY(calc(0.2em * 0.25));
  border-top-color: black;
  top: 23px;
}

.work-name span:hover:before {
  top: 11px;
}

.work-name span:hover:after {
  top: 25px;
}

.nav-close {
  cursor: pointer;
  height: fit-content;
}
.nav-close span:before {
  content: '× ';
  display: inline-block;
  transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
  transform-origin: center;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}
.all-button-work {
  display: flex;
  line-height: 1.2;
  z-index: 1;
  font-family: 'LocomotiveNew', -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  font-size: 6.5vw;
  flex-wrap: wrap;
}
.all-button-work button {
  margin-right: 10px;
  border: none;
  background: unset;
  position: relative;
}
.all-button-work button:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--ea-border-size);
  text-underline-offset: 0.05em;
}
.all-button-work button:not(:last-child):after {
  content: ',';
}
.total-count-works {
  position: absolute;
  top: 0;
  right: 7px;
  display: flex;
  font-size: 10px;
}
.total-count-works span {
  font-size: var(--ea-font-size);
  margin-left: 3px;
  margin-right: 3px;
}
.arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.left-arrow {
  border-right: 5px solid #000; /* You can adjust the size and color */
}

.right-arrow {
  border-left: 5px solid #000; /* You can adjust the size and color */
}
.all-work-details {
  display: flex;
  position: relative;
  width: 100%;
  padding: 20px;
  flex-direction: column;
}
.all-work-details article {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: var(--ea-font-size-medium);
  transition: all 0.3s ease;
}
.all-work-details article header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.all-work-details article header div {
  width: 33.33%;
  z-index: 10;
}
.all-work-details article header .work-list-item-head-summary {
  display: flex;
  justify-content: flex-end;
}
.all-work-details article:hover .work-list-item-head-location span {
  opacity: 0;
}
.all-work-details article.is-opened:hover .work-list-item-head-location:before {
  content: '(-)';
}
.all-work-details article.is-closed:hover .work-list-item-head-location:before {
  content: '(+)';
}
.work-list-item-head-location {
  display: flex;
  justify-content: flex-end;
}
.all-work-details article.is-closed:hover {
  border-bottom: var(--ea-border);
}

.all-work-details article header .work-image {
  position: absolute;
  top: -83%;
  left: 23%;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  overflow: visible;
}

.all-work-details article header .work-image span {
  transform: translateY(-50%);
  transform-origin: top left;
  outline: 4px solid #fff;
}
.all-work-details article header .work-image span img {
  width: 160px;
  transition: position 0.3s ease-in-out, transform 0.3s ease; /* Combining transitions */
}

.all-work-details article.is-closed:hover .work-image {
  opacity: 1;
}
.all-work-details article main {
  display: none;
  justify-content: space-between;
  font-family: var(--ea-font-family-helvetica-now-display);
  padding-top: 13px;
}
.work-image-container {
  display: flex;
  flex-direction: row;
}
.small-image {
  display: flex;
  flex-direction: column;
  padding-right: 13px;
}
.small-image img {
  width: 160px;
}

.work-list-item-cateogry {
  display: flex;
  flex-direction: column;
}
.work-list-item-cateogry div {
  font-size: var(--ea-font-size);
  font-family: var(--ea-font-family-helvetica-now-display);
  margin-bottom: -3px;
}
.big-image {
  display: flex;
  flex-direction: column;
  padding-right: 13px;
  position: relative;
}
.big-image img {
  width: 100%;
}
.big-image p {
  position: absolute;
  bottom: -42px;
  left: 0;
  font-size: var(--ea-font-size);
  font-family: var(--ea-font-family-helvetica-now-display);
}
.about-work-image {
  display: flex;
  flex-direction: column;
  width: 47%;
  margin-left: 81px;
  justify-content: flex-end;
}
.about-work-image p {
  font-size: var(--ea-font-size);
  font-family: var(--ea-font-family-helvetica-now-display);
}
.about-work-image a {
  text-decoration: none;
  color: black;
  border-top: var(--ea-border);
}
.big-image-mobile {
  display: none;
}
@media screen and (max-width: 1024px) {
  .all-work-details article main {
    flex-direction: column;
  }
  .about-work-image {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    margin-top: 44px;
    margin-left: auto;
  }
  .about-work-image p {
    width: 65%;
    padding-right: 128px;
  }
  .about-work-image a {
    width: 35%;
  }
  .all-work-details article header .work-image span img,
  .small-image img {
    width: 228px;
  }
  .big-image {
    padding-right: unset;
  }
}
.d-flex {
  display: flex;
  transition: opacity 0.3s ease-in-out;
}

.d-none {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

@media screen and (max-width: 700px) {
  .big-image {
    display: none;
  }
  .big-image-mobile {
    display: flex;
    flex-direction: column;
  }
  .work-image-container {
    justify-content: flex-end;
  }
  .small-image img {
    width: 218px;
    margin-top: -68px;
  }
  .about-work-image {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .about-work-image p {
    width: 100%;
    padding-right: unset;
  }
  .about-work-image a {
    width: 50%;
    padding-top: 5px;
    padding-bottom: 24px;
  }
  .all-work-details article header .work-image {
    opacity: 1;
  }
  .all-work-details article.is-closed:hover .work-image {
    opacity: 0;
  }
  .all-work-details article.is-closed .work-list-item-head-location:before {
    content: '(+)';
    position: absolute;
  }
  .all-work-details article.is-opened .work-list-item-head-location:before {
    content: '(-)';
    position: absolute;
  }
  .all-work-details article .work-list-item-head-location span {
    opacity: 0;
  }
  .all-work-details article header .work-image {
    display: none;
  }
  .all-work-details article main {
    display: flex;
  }
  .mobile-width-work-list-head {
    display: flex;
    flex-direction: column;
    border-top: var(--ea-border);
  }
  .all-work-details article header div {
    width: 100%;
  }
  .all-work-details article header .work-list-item-head-summary {
    display: flex;
    justify-content: flex-start;
    opacity: 0.5;
  }
  .small-image {
    padding-right: 30px;
  }
  .all-work-details article .work-list-item-head-location:before {
    top: -6px;
  }
  .work-list-item-cateogry {
    display: none;
  }
  .all-work-details article:not(:first-child) {
    margin-top: 26px;
  }
  .all-work-details article.is-closed:hover {
    border-bottom: none;
  }
  .big-image {
    display: none;
  }
}
@media screen and (max-width: 412px) {
  .small-image img {
    width: 139px;
  }
}
@media screen and (max-width: 335px) {
  .small-image img {
    width: 87px;
  }
}
