.work-post {
  --tw-bg-opacity: 1;
  background-color: rgb(22 22 22 / var(--tw-bg-opacity));
}

.work-detail-container {
  padding-top: 64px;
  background-color: #161616;
}

@media (min-width: 768px) {
  .work-detail-container {
    padding-top: 74px;
  }
}

.work-post .hero-section {
  height: auto;
  overflow: hidden;
  --tw-bg-opacity: 1;
  background-color: rgb(255 0 0 / var(--tw-bg-opacity));
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (min-width: 1024px) {
  .work-post .hero-section {
    height: 100dvh;
    padding: 16px;
  }
}

.work-post .hero-section .media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .work-post .hero-section .media-wrapper {
    height: 100%;
  }
}

.work-post .hero-section .media-wrapper .image-banner {
  width: 100%;
}

@media (min-width: 768px) {
  .work-post .hero-section .media-wrapper .image-banner {
    height: 100%;
  }
}

.work-post .hero-section .media-wrapper video,
.work-post .hero-section .media-wrapper iframe,
.work-post .hero-section .media-wrapper .video-banner,
.work-post .hero-section .media-wrapper img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post .hero-section .external-video-banner {
  border: 0;
  pointer-events: none;
}

.work-post .hero-section .work-hero-placeholder {
  display: flex;
  width: 100%;
  aspect-ratio: 414 / 606;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #161616 0%, #500000 48%, #ff0000 100%);
  color: #fafafa;
  font-family: Outfit, sans-serif;
  font-size: clamp(42px, 10vw, 150px);
  font-weight: 600;
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .work-post .hero-section .work-hero-placeholder {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 768px) {
  .work-post .hero-section .media-wrapper video,
  .work-post .hero-section .media-wrapper iframe,
  .work-post .hero-section .media-wrapper .video-banner,
  .work-post .hero-section .media-wrapper img {
    height: 100%;
  }
}

@media screen and (max-width: 768px) and (max-height: 901px) {
  .work-post .hero-section .media-wrapper img {
    height: 100%;
    max-height: 62dvh;
  }
}

@media screen and (min-width: 768px) {
  .work-post .hero-section .media-wrapper img {
    min-height: auto;
  }
}

@media screen and (max-width: 768px) {
  .work-post .hero-section video,
  .work-post .hero-section iframe {
    aspect-ratio: 414 / 606;
  }
}

@media screen and (min-width: 768px) {
  .work-post .hero-section video,
  .work-post .hero-section iframe {
    height: 100%;
  }
}

.work-post .hero-section .masks-svgs-container {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
}

@media (min-width: 768px) {
  .work-post .hero-section .masks-svgs-container {
    height: 100dvh;
  }
}

@media (min-width: 1024px) {
  .work-post .hero-section .masks-svgs-container {
    top: -4px;
  }
}

.work-post .hero-section .masks-svgs-container .mask-svg {
  display: none;
}

@media (min-width: 1024px) {
  .work-post .hero-section .masks-svgs-container .mask-svg {
    display: block;
  }
}

.work-post .hero-section .masks-svgs-container .mask-svg-mobile {
  display: block;
  height: 100%;
}

@media (min-width: 1024px) {
  .work-post .hero-section .masks-svgs-container .mask-svg-mobile {
    display: none;
  }
}

@media (min-width: 768px) {
  .work-post .hero-section .masks-svgs-container .mask-svg {
    height: 100%;
  }
}

.work-post .hero-section .masks-svgs-container .mask-svg,
.work-post .hero-section .masks-svgs-container .mask-svg-mobile {
  width: 100%;
}

.work-post .hero-section .masks-svgs-container .mask-svg rect,
.work-post .hero-section .masks-svgs-container .mask-svg-mobile rect {
  transform-origin: center;
}

@media (min-width: 1024px) {
  .work-post .hero-section .masks-svgs-container .mask-svg rect,
  .work-post .hero-section .masks-svgs-container .mask-svg-mobile rect {
    --tw-scale-x: 1.03;
    --tw-scale-y: 1.03;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
      rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
      scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }
}

.work-post .hero-section .bottom-left-text,
.work-post .hero-section .bottom-right-text {
  font-family: Outfit, sans-serif;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 0px;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 0 0 / var(--tw-text-opacity));
}

@media (min-width: 1024px) {
  .work-post .hero-section .bottom-left-text,
  .work-post .hero-section .bottom-right-text {
    font-size: 42px;
    line-height: 53px;
    letter-spacing: 0px;
  }
}

.work-post .hero-section .bottom-left-text {
  position: absolute;
  bottom: 8px;
  left: 16px;
}

@media (min-width: 1024px) {
  .work-post .hero-section .bottom-left-text {
    bottom: 19px;
    left: 40px;
  }
}

.work-post .hero-section .bottom-right-text {
  position: absolute;
  bottom: 8px;
  right: 16px;
}

@media (min-width: 1024px) {
  .work-post .hero-section .bottom-right-text {
    bottom: 19px;
    right: 40px;
  }
}

.work-post .work-description {
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .work-post .work-description {
    margin-top: 52px;
  }
}

.work-post .work-description:not(:has(~ .flexible-section)) {
  margin-bottom: 104px;
}

@media (min-width: 1024px) {
  .work-post .work-description:not(:has(~ .flexible-section)) {
    margin-bottom: 120px;
  }
}

.work-post .work-description .title-work-container {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .work-post .work-description .title-work-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.work-post .work-description .title-work-container {
  min-height: 92px;
  font-family: Outfit, sans-serif;
  font-size: 42px;
  line-height: 53px;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity));
  transition-property: all;
  transition-duration: 100ms;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

@media (min-width: 1024px) {
  .work-post .work-description .title-work-container {
    font-size: 86px;
    line-height: 110px;
    letter-spacing: 0px;
  }
}

.work-post .work-description .title-work-container h1 {
  transition-property: all;
  transition-duration: 100ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.work-post .work-description .work-description-container {
  margin-top: 32px;
  display: flex;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container {
    margin-top: 96px;
    gap: 30px;
  }
}

.work-post .work-description .work-description-container .col1 {
  display: none;
  width: 100%;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col1 {
    display: block;
    width: 30%;
    padding-left: 40px;
  }
}

.work-post .work-description .work-description-container .col1 h1 {
  position: sticky;
  top: 65px;
  font-family: Outfit, sans-serif;
  font-size: 42px;
  line-height: 53px;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity));
}

.work-post .work-description .work-description-container .col2 {
  width: 100%;
  font-family: Outfit, sans-serif;
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity));
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 {
    width: 70%;
  }
}

.work-post .work-description .work-description-container .col2 .work-title {
  margin-bottom: 26px;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 0px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 .work-title {
    padding-left: 0px;
    padding-right: 2.5rem;
    font-size: 36px;
    line-height: 46px;
    letter-spacing: 0px;
  }
}

.work-post .work-description .work-description-container .col2 .divider {
  margin-left: 1rem;
  margin-top: 32px;
  margin-bottom: 20px;
  height: 2px;
  width: 95px;
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 .divider {
    margin-left: 0px;
    margin-top: 55px;
    margin-bottom: 32px;
    padding-left: 0px;
  }
}

.work-post .work-description .work-description-container .col2 .description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: 20px;
  font-weight: 300;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 .description {
    padding-left: 0px;
    padding-right: 2.5rem;
  }
}

.work-post .work-description .work-description-container .col2 .agency {
  margin-bottom: 32px;
  display: flex;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: 0px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 .agency {
    margin-bottom: 55px;
    padding-left: 0px;
    padding-right: 2.5rem;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0px;
  }
}

.work-post
  .work-description
  .work-description-container
  .col2
  .images-container {
  overflow: hidden;
  border-radius: 32px;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 1024px) {
  .work-post
    .work-description
    .work-description-container
    .col2
    .images-container {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.work-post
  .work-description
  .work-description-container
  .col2
  .images-container
  picture {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .images-container
  picture
  img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post .work-description .work-description-container .col2 .modal-preview {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 32px;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (min-width: 1024px) {
  .work-post
    .work-description
    .work-description-container
    .col2
    .modal-preview {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview
  svg {
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  margin: auto;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview
  picture {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview
  picture
  img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .work-post
    .work-description
    .work-description-container
    .col2
    .modal-preview-list {
    gap: 74px;
    padding-left: 0px;
    padding-right: 38px;
  }
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 32px;
}

@media (min-width: 1024px) {
  .work-post
    .work-description
    .work-description-container
    .col2
    .modal-preview-list
    .modal-preview-item {
    aspect-ratio: 16 / 9;
  }
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-image-container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-image-container
  picture {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-image-container
  picture
  img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-video-container {
  position: relative;
  height: 100%;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: 32px;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-video-container
  svg {
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  z-index: 10;
  margin: auto;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-video-container
  picture {
  display: block;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post
  .work-description
  .work-description-container
  .col2
  .modal-preview-list
  .modal-preview-item
  .slide-video-container
  picture
  img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.work-post .work-description .work-description-container .col2 .work-slogan {
  margin-top: 32px;
  padding-right: 1rem;
  padding-left: 1rem;
  font-size: 42px;
  line-height: 53px;
  letter-spacing: 0px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .work-post .work-description .work-description-container .col2 .work-slogan {
    margin-top: 55px;
    padding-left: 0px;
    padding-right: 2.5rem;
    font-size: 68px;
    line-height: 70px;
  }
}

.work-post .flexible-section {
  margin-top: 44px;
  margin-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .work-post .flexible-section {
    margin-top: 105px;
    margin-bottom: 120px;
    gap: 20px;
  }
}

.work-post .flexible-section .layout {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .work-post .flexible-section .layout {
    flex-direction: row;
  }
}

.work-post .flexible-section .layout img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.work-post .flexible-section .layout-three-imagenes .image-container {
  aspect-ratio: 375/317;
  flex: 1 1 0%;
  overflow: hidden;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .work-post .flexible-section .layout-three-imagenes .image-container {
    aspect-ratio: 467/400;
  }
}

.work-post .flexible-section .layout-three-imagenes .image-container img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.work-post .flexible-section .layout-two-images .image-container {
  aspect-ratio: 375/317;
  flex: 1 1 0%;
  overflow: hidden;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .work-post .flexible-section .layout-two-images .image-container {
    aspect-ratio: 896/618;
  }
}

.work-post .flexible-section .layout-two-images .image-container img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.work-post .flexible-section .layout-one-image .image-container {
  aspect-ratio: 375/317;
  flex: 1 1 0%;
  overflow: hidden;
  border-radius: 16px;
}

@media (min-width: 1024px) {
  .work-post .flexible-section .layout-one-image .image-container {
    aspect-ratio: 1440/757;
  }
}

.work-post .flexible-section .layout-one-image .image-container img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.work-post .carousel-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
  --tw-bg-opacity: 1;
  background-color: rgb(255 0 0 / var(--tw-bg-opacity));
  padding-top: 32px;
  padding-bottom: 51px;
}

@media (min-width: 1024px) {
  .work-post .carousel-section {
    flex-direction: row;
    padding-top: 49px;
  }
}

.work-post .carousel-section .more-work-title-container {
  min-width: 20%;
}

@media (min-width: 1024px) {
  .work-post .carousel-section .more-work-title-container {
    padding-left: 40px;
  }
}

.work-post .carousel-section .more-work-title-container .more-work-title {
  margin-bottom: 51px;
  padding-left: 16px;
  padding-right: 16px;
  font-family: Outfit, sans-serif;
  font-size: 42px;
  line-height: 53px;
  letter-spacing: 0px;
  font-weight: 600;
  text-transform: uppercase;
  --tw-text-opacity: 1;
  color: rgb(250 250 250 / var(--tw-text-opacity));
}

@media (min-width: 1024px) {
  .work-post .carousel-section .more-work-title-container .more-work-title {
    margin-bottom: 16px;
    display: none;
  }
}

.work-post .carousel-section .more-work-title-container .more-work-img {
  display: none;
}

@media (min-width: 1024px) {
  .work-post .carousel-section .more-work-title-container .more-work-img {
    display: block;
  }
}

.work-post .carousel-section .swiper-work-detail.swiper {
  position: relative;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 100px;
  padding-top: 0px;
}

@media (min-width: 1024px) {
  .work-post .carousel-section .swiper-work-detail.swiper {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.work-post .carousel-section .swiper-work-detail.swiper .swiper-wrapper {
  width: 100%;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-wrapper
  .swiper-slide
  .card-work:hover {
  --tw-text-opacity: 1;
  color: rgb(22 22 22 / var(--tw-text-opacity));
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-wrapper
  .swiper-slide
  .card-work:hover
  .card-work-text-content
  .subtitle-line
  .line {
  --tw-bg-opacity: 1;
  background-color: rgb(22 22 22 / var(--tw-bg-opacity));
}

.work-post .carousel-section .swiper-work-detail.swiper .swiper-elements {
  position: relative;
  margin-top: 60px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-left: 0px;
  padding-right: 0px;
}

@media (min-width: 768px) {
  .work-post .carousel-section .swiper-work-detail.swiper .swiper-elements {
    display: flex;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1024px) {
  .work-post .carousel-section .swiper-work-detail.swiper .swiper-elements {
    margin-top: 40px;
    padding-left: 0px;
    padding-right: 0px;
  }
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  :is(.swiper-button-prev, .swiper-button-next)
  svg {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  :is(.swiper-button-prev, .swiper-button-next):hover
  svg {
  --tw-text-opacity: 1;
  color: rgb(22 22 22 / var(--tw-text-opacity));
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .arrows {
  position: relative;
  display: flex;
  gap: 38px;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .arrows
  .swiper-button-prev,
.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .arrows
  .swiper-button-next {
  position: relative;
  right: 0px;
  bottom: 0px;
  left: 0px;
  top: 0px;
  margin-top: 0;
  height: auto;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .arrows
  .swiper-button-prev::after,
.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .arrows
  .swiper-button-next::after {
  display: none;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .swiper-pagination {
  position: relative;
  bottom: 0px;
  top: 0px;
  left: 0px;
  right: 0px;
  margin-top: 0;
  width: auto;
}

@media (min-width: 1024px) {
  .work-post
    .carousel-section
    .swiper-work-detail.swiper
    .swiper-elements
    .swiper-pagination {
    padding-right: 40px;
  }
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .swiper-pagination
  .swiper-pagination-bullet {
  height: 6px;
  width: 30px;
  border-radius: 6px;
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 700ms;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements
  .swiper-pagination
  .swiper-pagination-bullet-active {
  width: 40px;
}

/* WordPress semantic controls and the localized project carousel label. */
.work-post .slide-video-container,
.work-post
  .carousel-section
  :is(
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-button-prev-mobile,
    .swiper-button-next-mobile
  ),
.work-post .modal .btn-close-modal {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.work-post .slide-video-container {
  display: block;
  text-align: left;
}

.work-post .slide-video-container:focus-visible,
.work-post
  .carousel-section
  :is(
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-button-prev-mobile,
    .swiper-button-next-mobile
  ):focus-visible,
.work-post .modal .btn-close-modal:focus-visible {
  outline: 3px solid #ff0000;
  outline-offset: 4px;
}

.work-post .carousel-section .more-work-label span {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 600;
  line-height: 0.82;
  text-transform: uppercase;
  color: #fafafa;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .work-post .carousel-section .more-work-title-container .more-work-label {
    display: flex;
    width: 190px;
    height: 320px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }
}

.work-post .modal[aria-hidden="true"] {
  pointer-events: none;
}

.work-post .modal .modal-wrapper {
  pointer-events: none;
}

.work-post .modal .modal-content {
  pointer-events: auto;
}

.work-post .modal .modal-overlay {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .work-post .modal-content,
  .work-post .flexible-section .layout {
    animation: none !important;
    transition: none !important;
  }
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .work-post
    .carousel-section
    .swiper-work-detail.swiper
    .swiper-elements-mobile {
    display: none;
  }
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  :is(.swiper-button-prev-mobile, .swiper-button-next-mobile)
  svg {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  :is(.swiper-button-prev-mobile, .swiper-button-next-mobile):active
  svg {
  --tw-text-opacity: 1;
  color: rgb(22 22 22 / var(--tw-text-opacity));
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  .swiper-button-disabled {
  opacity: 0.4;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  .swiper-pagination-mobile {
  width: auto;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  .swiper-pagination-mobile
  .swiper-pagination-bullet {
  height: 6px;
  width: 30px;
  border-radius: 6px;
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 250 / var(--tw-bg-opacity));
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 700ms;
}

.work-post
  .carousel-section
  .swiper-work-detail.swiper
  .swiper-elements-mobile
  .swiper-pagination-mobile
  .swiper-pagination-bullet-active {
  width: 40px;
}

/* Editable project story: native Gutenberg blocks, styled as the work-detail page. */
.work-post .project-blocks-section {
  overflow: hidden;
  background: #161616;
  color: #fafafa;
  font-family: Outfit, sans-serif;
  padding-bottom: 72px;
}

.work-post .project-blocks-section > .project-video-block {
  margin: 0;
  padding: 40px 16px 56px;
}

.work-post .project-video-block > .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.work-post
  .project-video-block
  > .wp-block-group__inner-container
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.work-post .project-video-block h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.18;
}

.work-post .project-video-block > p {
  max-width: 900px;
  margin: 0 0 28px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
}

.work-post .project-video-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 28px 0 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #242424;
  color: #fafafa;
  cursor: pointer;
}

.work-post .project-video-preview-media,
.work-post .project-video-preview-image,
.work-post .project-video-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.work-post .project-video-preview-image {
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.work-post .project-video-placeholder {
  background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
  font-size: clamp(58px, 16vw, 126px);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.work-post .project-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 16px rgb(0 0 0 / 0.3));
}

.work-post .project-video-play svg {
  width: 64px;
  height: 64px;
}

.work-post .project-video-preview:hover .project-video-preview-image,
.work-post .project-video-preview:focus-visible .project-video-preview-image {
  transform: scale(1.025);
}

.work-post .project-video-preview:focus-visible {
  outline: 3px solid #ff0000;
  outline-offset: 4px;
}

.work-post .project-video-block .wp-block-embed {
  width: 100%;
  margin: 0;
}

.work-post .project-video-block .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #0d0d0d;
}

.work-post .project-video-block .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-post .project-video-block .wp-block-buttons {
  margin-top: 24px;
}

.work-post .project-video-block .wp-block-button__link {
  border: 2px solid #fafafa;
  border-radius: 999px;
  background: transparent;
  color: #fafafa;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}

.work-post .project-video-block .wp-block-button__link:hover,
.work-post .project-video-block .wp-block-button__link:focus-visible {
  background: #fafafa;
  color: #161616;
}

.work-post .project-blocks-section > .project-gallery-block {
  width: calc(100% - 16px);
  margin: 0 8px 8px;
  overflow: hidden;
  aspect-ratio: 375 / 317;
  border-radius: 16px;
  background: #242424;
}

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

@media (min-width: 1024px) {
  .work-post .project-blocks-section {
    padding-bottom: 120px;
  }

  .work-post .project-blocks-section > .project-video-block {
    width: 70%;
    margin-left: 30%;
    padding: 72px 40px 88px 0;
  }

  .work-post .project-video-block h2 {
    margin-bottom: 22px;
    font-size: 40px;
    line-height: 1.22;
  }

  .work-post .project-video-block > p {
    margin-bottom: 36px;
    font-size: 22px;
    line-height: 1.55;
  }

  .work-post .project-video-preview {
    aspect-ratio: 16 / 9;
    margin-top: 36px;
    border-radius: 32px;
  }

  .work-post .project-video-play svg {
    width: 90px;
    height: 90px;
  }

  .work-post .project-blocks-section > .project-gallery-block {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    aspect-ratio: 1440 / 757;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-post .project-video-block .wp-block-button__link,
  .work-post .project-video-preview-image,
  .card-work .card-work-placeholder {
    transition: none;
  }
}
