.pl-case-study {
  --pl-case-accent: #c63b28;
  color: var(--pl-ink, #25324b);
  background: var(--pl-paper, #f7f5ef);
}

.pl-case-hero {
  padding: clamp(10.5rem, 15vw, 13rem) 1.25rem clamp(4rem, 7vw, 7rem);
  background: #f2edf6;
  border-bottom: 1px solid var(--pl-line, #d8d5ce);
}

.pl-case-hero__inner,
.pl-project__inner,
.pl-case-intro__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pl-case-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.pl-case-hero__logo {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(37, 50, 75, 0.1);
  border-radius: 6px;
}

.pl-case__eyebrow,
.pl-project__year {
  margin: 0 0 0.85rem;
  color: var(--pl-case-accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-case__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 3px;
  margin: 0 0.75rem 0.2rem 0;
  background: var(--pl-gold, #d1a94d);
}

.pl-case-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.pl-case-hero__lead {
  max-width: 650px;
  margin-top: 1.5rem;
  color: var(--pl-ink-soft, #536078);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.72;
}

.pl-case-hero__lead > :last-child,
.pl-project__text > :last-child,
.pl-case-intro__inner > div > :last-child {
  margin-bottom: 0;
}

.pl-case-hero__visual {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.pl-case-hero__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pl-case__edit {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 1rem auto;
}

.pl-case-intro {
  padding: clamp(4.5rem, 8vw, 7rem) 1.25rem;
  background: #fff;
}

.pl-case-intro__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 7vw, 7rem);
}

.pl-case-intro__inner > div {
  font-size: 1.05rem;
  line-height: 1.75;
}

.pl-case-projects {
  background: var(--pl-paper, #f7f5ef);
}

.pl-project {
  padding: clamp(5rem, 9vw, 8rem) 1.25rem;
  border-top: 1px solid var(--pl-line, #d8d5ce);
  scroll-margin-top: 9rem;
}

.pl-project:nth-child(even) {
  background: #fff;
}

.pl-project__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.pl-project--reverse .pl-project__content {
  order: 2;
}

.pl-project h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  line-height: 1.08;
}

.pl-project__text {
  margin-top: 1.4rem;
  color: var(--pl-ink-soft, #536078);
  font-size: 1.05rem;
  line-height: 1.75;
}

.pl-project__expertises {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pl-line, #d8d5ce);
}

.pl-project__expertises > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--pl-ink-soft, #536078);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-project__expertises > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pl-project__expertises a {
  padding: 0.48rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--pl-case-accent);
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
}

.pl-project__expertises a:focus-visible,
.pl-case-cta a:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: 3px;
}

.pl-project__media {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.pl-project__image,
.pl-project__video {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e6e2d9;
}

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

.pl-project__video iframe,
.pl-project__video video {
  display: block;
}

.pl-project__video iframe {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9;
}

.pl-project__video .tf-video,
.pl-project__video .tf-video-embed {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.pl-project__video .tf-video-embed {
  min-height: clamp(280px, 34vw, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-project__video .tf-video {
  background: #e6e2d9 !important;
}

.pl-project__video video {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(76vh, 760px);
  aspect-ratio: auto;
  object-fit: contain;
}

/* Editorial: two balanced visual columns. */
.pl-project--editorial .pl-project__media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.pl-project--editorial .pl-project__image {
  aspect-ratio: 4 / 5;
}

.pl-project--editorial .pl-project__image:nth-child(even) {
  margin-top: 2.5rem;
  margin-bottom: -2.5rem;
}

.pl-project--editorial .pl-project__media[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.pl-project--editorial .pl-project__media[data-count="1"] .pl-project__image {
  aspect-ratio: 4 / 3;
}

/* Panorama: content and media become full-width bands. */
.pl-project--panorama .pl-project__inner {
  grid-template-columns: minmax(0, 1fr);
}

.pl-project--panorama .pl-project__content {
  max-width: 780px;
}

.pl-project--panorama .pl-project__media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pl-project--panorama .pl-project__image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8;
}

.pl-project--panorama .pl-project__image:not(:first-child) {
  aspect-ratio: 4 / 3;
}

/* Mosaic: one leading visual with smaller supporting media. */
.pl-project--mosaic .pl-project__inner {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  align-items: start;
}

.pl-project--mosaic .pl-project__content {
  position: sticky;
  top: 9rem;
}

.pl-project--mosaic .pl-project__media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pl-project--mosaic .pl-project__image {
  aspect-ratio: 1 / 1;
}

.pl-project--mosaic .pl-project__image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.pl-project--mosaic .pl-project__media[data-count="2"] .pl-project__image:first-child {
  grid-column: auto;
  aspect-ratio: 1 / 1;
}

/* Video: native ratio, beside the text or full-width according to Joomla. */
.pl-project--video-right .pl-project__inner,
.pl-project--video-left .pl-project__inner {
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.28fr);
}

.pl-project--video-left .pl-project__content {
  order: 2;
}

.pl-project--video-right .pl-project__media,
.pl-project--video-left .pl-project__media {
  grid-template-columns: minmax(0, 1fr);
}

.pl-project--video-wide .pl-project__inner {
  grid-template-columns: minmax(0, 1fr);
}

.pl-project--video-wide .pl-project__content {
  width: min(780px, 100%);
}

.pl-project--video-wide .pl-project__media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pl-project--video-wide .pl-project__video {
  grid-column: 1 / -1;
}

.pl-project--video-right .pl-project__image,
.pl-project--video-left .pl-project__image,
.pl-project--video-wide .pl-project__image {
  aspect-ratio: 4 / 3;
}

/* Three configurable gallery zones around the project text. */
.pl-project .pl-project__inner {
  display: block;
}

.pl-project__row {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.pl-project__row--media-left .pl-project__content {
  order: 2;
}

.pl-project__row--without-media {
  grid-template-columns: minmax(0, 1fr);
}

.pl-project__row--without-media .pl-project__content {
  width: min(780px, 100%);
}

.pl-project__slot {
  min-width: 0;
}

.pl-project__slot--side {
  height: 100%;
  align-self: stretch;
}

.pl-project__slot--side .pl-media-gallery[data-count="1"] {
  height: 100%;
}

.pl-project__slot--side .pl-media-gallery[data-count="1"] .pl-project__image {
  height: 100%;
  min-height: clamp(420px, 42vw, 680px);
  aspect-ratio: auto;
}

.pl-project__slot--before {
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.pl-project__slot--after,
.pl-project__slot--video-wide {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.pl-media-gallery {
  min-width: 0;
  display: grid;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.pl-media-gallery .pl-project__video {
  grid-column: 1 / -1;
}

.pl-media-gallery--panorama {
  grid-template-columns: minmax(0, 1fr);
}

.pl-media-gallery--panorama .pl-project__image {
  aspect-ratio: 4 / 3;
}

.pl-project__slot--before .pl-media-gallery--panorama .pl-project__image:first-child,
.pl-project__slot--after .pl-media-gallery--panorama .pl-project__image:first-child {
  aspect-ratio: 16 / 8;
}

.pl-media-gallery--editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.pl-media-gallery--editorial .pl-project__image {
  aspect-ratio: 4 / 5;
}

.pl-media-gallery--editorial .pl-project__image:nth-child(even) {
  margin-top: 2rem;
}

.pl-media-gallery--mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pl-media-gallery--mosaic .pl-project__image {
  aspect-ratio: 1 / 1;
}

.pl-media-gallery--mosaic .pl-project__image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.pl-media-gallery--mosaic[data-count="2"] .pl-project__image:first-child {
  grid-column: auto;
  aspect-ratio: 1 / 1;
}

.pl-project__slot--video-wide .pl-project__video {
  width: min(980px, 100%);
  margin-inline: auto;
}

.pl-case-gallery {
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
  background: #fff;
}

.pl-case-related {
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--pl-line, #d8d5ce);
  background: #fff;
}

.pl-case-related__inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
}

.pl-case-related__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.pl-case-related__header h2 {
  max-width: 760px;
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.pl-case-related__header > a {
  flex: 0 0 auto;
  color: var(--pl-ink, #25324b);
  font-weight: 750;
  text-decoration: none;
}

.pl-case-related__header > a:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: 3px;
}

.pl-case-cta {
  padding: clamp(5rem, 10vw, 9rem) 1.25rem;
  color: #fff;
  text-align: center;
  background: var(--pl-ink, #25324b);
}

.pl-case-cta > div {
  width: min(760px, 100%);
  margin: 0 auto;
}

.pl-case-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.pl-case-cta p:not(.pl-case__eyebrow) {
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.pl-case-cta a {
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--pl-gold, #d1a94d);
  color: var(--pl-ink, #25324b);
  font-weight: 780;
  text-decoration: none;
}

@media (hover: hover) {
  .pl-project__expertises a:hover {
    background: var(--pl-case-accent);
    color: #fff;
  }

  .pl-case-cta a:hover {
    background: #fff;
    color: var(--pl-ink, #25324b);
  }
}

@media (max-width: 900px) {
  .pl-case-hero__inner,
  .pl-project__inner,
  .pl-project--mosaic .pl-project__inner,
  .pl-project--video-right .pl-project__inner,
  .pl-project--video-left .pl-project__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-case-hero__visual {
    aspect-ratio: 16 / 10;
  }

  .pl-project--reverse .pl-project__content,
  .pl-project--video-left .pl-project__content {
    order: initial;
  }

  .pl-project--mosaic .pl-project__content {
    position: static;
  }

  .pl-project__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-project__row--media-left .pl-project__content {
    order: initial;
  }

  .pl-project__slot--side,
  .pl-project__slot--side .pl-media-gallery[data-count="1"] {
    height: auto;
  }

  .pl-project__slot--side .pl-media-gallery[data-count="1"] .pl-project__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 680px) {
  .pl-case-hero {
    padding-top: 9.5rem;
  }

  .pl-case-intro__inner,
  .pl-project--editorial .pl-project__media,
  .pl-project--panorama .pl-project__media,
  .pl-project--mosaic .pl-project__media,
  .pl-project--video-wide .pl-project__media {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-project--editorial .pl-project__image:nth-child(even) {
    margin: 0;
  }

  .pl-project--panorama .pl-project__image:first-child,
  .pl-project--mosaic .pl-project__image:first-child,
  .pl-project--video-wide .pl-project__video {
    grid-column: auto;
  }

  .pl-project__video .tf-video-embed {
    min-height: 260px;
  }

  .pl-media-gallery--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pl-media-gallery--editorial .pl-project__image:nth-child(even) {
    margin-top: 1rem;
  }

  .pl-project__slot--before .pl-media-gallery--panorama .pl-project__image:first-child,
  .pl-project__slot--after .pl-media-gallery--panorama .pl-project__image:first-child {
    aspect-ratio: 4 / 3;
  }

  .pl-project__image,
  .pl-project--panorama .pl-project__image:first-child,
  .pl-project--mosaic .pl-project__image:first-child {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-case-study *,
  .pl-case-study *::before,
  .pl-case-study *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.pl-work-index {
  padding: clamp(2rem, 5vw, 4rem) 1.25rem clamp(5rem, 9vw, 8rem);
  background: var(--pl-paper, #f7f5ef);
}

.pl-work-hero {
  padding: clamp(10.5rem, 15vw, 13rem) 1.25rem clamp(4.5rem, 8vw, 7rem);
  background: #f2edf6;
  border-bottom: 1px solid var(--pl-line, #d8d5ce);
}

.pl-work-hero__inner {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.pl-work-hero__eyebrow {
  margin: 0 0 1rem;
  color: #6c4f8d;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-work-hero__eyebrow::before,
.pl-work-hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  height: 3px;
  margin: 0 0.75rem 0.2rem;
  background: var(--pl-gold, #d1a94d);
}

.pl-work-hero__eyebrow::after {
  margin-right: 0;
  margin-left: 0.75rem;
}

.pl-work-hero h1 {
  max-width: 17ch;
  margin: 0 auto;
  color: var(--pl-ink, #25324b);
  font-size: clamp(2.7rem, 5.3vw, 5rem);
  line-height: 1.02;
}

.pl-work-hero__lead {
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: var(--pl-ink-soft, #536078);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.pl-work-hero__lead > :last-child {
  margin-bottom: 0;
}

.pl-work-landing__edit,
.pl-work-landing__body {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 1rem auto;
}

.pl-work-index__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.pl-work-filters {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--pl-line, #d8d5ce);
  border-bottom: 1px solid var(--pl-line, #d8d5ce);
}

.pl-work-filters fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pl-work-filters fieldset + fieldset {
  margin-top: 1.35rem;
}

.pl-work-filters legend {
  width: auto;
  margin: 0 0 0.65rem;
  color: var(--pl-ink, #25324b);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-work-filters__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pl-work-filters__options button,
.pl-work-filters__reset {
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #9ba1ad;
  border-radius: 4px;
  background: transparent;
  color: var(--pl-ink, #25324b);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 680;
}

.pl-work-filters__options button[aria-pressed="true"] {
  border-color: var(--pl-ink, #25324b);
  background: var(--pl-ink, #25324b);
  color: #fff;
}

.pl-work-filters__options button:focus-visible,
.pl-work-filters__reset:focus-visible,
.pl-work-card > a:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: 3px;
}

.pl-work-filters__summary {
  min-height: 2.5rem;
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.pl-work-filters__summary p {
  margin: 0;
  color: var(--pl-ink-soft, #536078);
  font-size: 0.92rem;
}

.pl-work-filters__reset {
  border: 0;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pl-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  gap: 8px clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
}

.pl-work-card[hidden] {
  display: none;
}

.pl-work-card {
  width: 100%;
  margin: 0;
  display: block;
}

.pl-work-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pl-line, #d8d5ce);
  border-radius: 6px;
  background: #fff;
  color: var(--pl-ink, #25324b);
  text-decoration: none;
}

.pl-work-card figure {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: #e6e2d9;
}

.pl-work-card figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.pl-work-card__content {
  padding: 1.35rem;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.pl-work-card__sector,
.pl-work-card__count {
  margin: 0;
  color: #9a5b10;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pl-work-card h3 {
  margin: 0.6rem 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.pl-work-card__intro {
  margin: 0.75rem 0 1rem;
  color: var(--pl-ink-soft, #536078);
  font-size: 0.95rem;
}

.pl-work-card__count {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--pl-ink-soft, #536078);
}

.pl-work-card__expertises {
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.pl-work-card__expertises li {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--pl-line, #d8d5ce);
  border-radius: 3px;
  font-size: 0.74rem;
}

.pl-work-index__empty {
  margin: 3rem 0 0;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--pl-line, #d8d5ce);
}

.pl-work-index__more {
  margin-top: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.pl-work-index__more button {
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--pl-ink, #25324b);
  border-radius: 6px;
  background: var(--pl-ink, #25324b);
  color: #fff;
  font: inherit;
  font-weight: 780;
}

.pl-work-index__more button:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: 3px;
}

@media (hover: hover) {
  .pl-work-filters__options button:hover {
    border-color: var(--pl-ink, #25324b);
  }

  .pl-work-card > a:hover figure img {
    transform: scale(1.045);
  }

  .pl-work-card > a:hover h3 {
    color: #6c4f8d;
  }

  .pl-work-index__more button:hover {
    border-color: #6c4f8d;
    background: #6c4f8d;
  }
}

@media (max-width: 900px) {
  .pl-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pl-case-related__header {
    align-items: start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .pl-work-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-work-filters__options {
    flex-wrap: nowrap;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .pl-work-filters__options button {
    flex: 0 0 auto;
  }
}

/* Shared client-project carousel: expertise pages and homepage. */
.pl-realisations-carousel {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block: 0.35rem 0.75rem;
  overflow: hidden;
}

.pl-realisations-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem max(1.25rem, calc((100vw - 1280px) / 2));
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.pl-realisations-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.pl-realisations-carousel__viewport:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: -3px;
}

.pl-realisations-carousel__track {
  display: flex;
  width: max-content;
  gap: clamp(0.85rem, 1.8vw, 1.5rem);
}

.pl-realisations-carousel__item {
  width: clamp(270px, 27vw, 390px);
  margin: 0;
  flex: 0 0 auto;
}

.pl-realisations-carousel--home .pl-realisations-carousel__item {
  width: clamp(280px, 29vw, 420px);
}

.pl-realisations-carousel__item > a {
  display: block;
  height: 100%;
  color: var(--pl-ink, #25324b);
  text-decoration: none;
}

.pl-realisations-carousel__item figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #ece9e2;
}

.pl-realisations-carousel__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 350ms ease;
}

.pl-realisations-carousel__caption {
  padding: 0.9rem 0.15rem 0;
}

.pl-realisations-carousel__caption h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.25;
}

.pl-realisations-carousel__caption p {
  margin: 0.35rem 0 0;
  color: var(--pl-ink-soft, #536078);
  font-size: 0.82rem;
  font-weight: 650;
}

.pl-realisations-carousel__arrow {
  position: absolute;
  z-index: 3;
  top: calc(50% - 2.3rem);
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 50, 75, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pl-ink, #25324b);
  box-shadow: 0 6px 18px rgba(37, 50, 75, 0.12);
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.pl-realisations-carousel__arrow--previous {
  left: max(0.5rem, calc((100vw - 1360px) / 2));
}

.pl-realisations-carousel__arrow--next {
  right: max(0.5rem, calc((100vw - 1360px) / 2));
}

.pl-realisations-carousel__arrow:focus-visible {
  outline: 3px solid var(--pl-gold, #d1a94d);
  outline-offset: 3px;
}

.pl-realisations-carousel.is-static .pl-realisations-carousel__arrow {
  display: none;
}

@media (hover: hover) {
  .pl-realisations-carousel__item > a:hover img {
    transform: scale(1.035);
  }

  .pl-realisations-carousel__item > a:hover h3 {
    color: #6c4f8d;
  }

  .pl-realisations-carousel__arrow:hover {
    border-color: var(--pl-ink, #25324b);
    background: #fff;
  }
}

@media (max-width: 600px) {
  .pl-realisations-carousel__viewport {
    padding-inline: 1.25rem;
  }

  .pl-realisations-carousel__item,
  .pl-realisations-carousel--home .pl-realisations-carousel__item {
    width: min(82vw, 340px);
  }

  .pl-realisations-carousel__arrow {
    top: calc(50% - 2.1rem);
    width: 2.35rem;
    height: 2.35rem;
  }

  .pl-realisations-carousel__arrow--previous {
    left: 0.3rem;
  }

  .pl-realisations-carousel__arrow--next {
    right: 0.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-realisations-carousel__viewport {
    scroll-behavior: auto;
  }

  .pl-realisations-carousel__item img {
    transition: none;
  }
}
