.kh-port-page,
.kh-port-page * {
  box-sizing: border-box;
}

.kh-port-page {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow-x: hidden;
  background: var(--nuit);
  color: var(--creme);
  font-family: var(--ff-d);
}

.kh-port-page button,
.kh-port-page a {
  font-family: inherit;
}

/* ---------- HERO ---------- */

.kh-port-hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--nuit);
  color: var(--creme);
  isolation: isolate;
}

.kh-port-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 14, 12, 0.22), rgba(28, 58, 42, 0.3)),
    linear-gradient(135deg, rgba(14, 14, 12, 0.22), rgba(28, 58, 42, 0.3));
}

.kh-port-hero__media video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc((100svh - var(--nav-h)) * 1.7778));
  height: max(calc(100vw / 1.7778), calc(100svh - var(--nav-h)));
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.kh-port-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top, rgba(14, 14, 12, 0.96) 0%, rgba(14, 14, 12, 0.46) 50%, rgba(14, 14, 12, 0.35) 100%),
    linear-gradient(to right, rgba(14, 14, 12, 0.82), rgba(14, 14, 12, 0.12) 72%);
}

.kh-port-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.24) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.16) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: soft-light;
}

.kh-port-hero__inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding:
    clamp(7rem, 12vw, 11rem)
    var(--px)
    clamp(2.2rem, 5vw, 4rem);
}

.kh-port-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--menthe);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kh-port-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.kh-port-hero h1 {
  max-width: 1050px;
  margin: 1.2rem 0 0;
  color: var(--creme);
  font-size: clamp(4rem, 9.3vw, 9rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.kh-port-hero h1 em {
  display: block;
  margin-top: 0.22em;
  color: var(--menthe);
  font-family: var(--ff-e);
  font-size: 0.86em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
  text-transform: none;
}

.kh-port-hero__bottom {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(245, 242, 234, 0.2);
  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.kh-port-hero__bottom p {
  margin: 0;
  color: rgba(245, 242, 234, 0.74);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  font-weight: 300;
  line-height: 1.75;
}

.kh-port-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--menthe);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.kh-port-scroll::after {
  content: "↓";
  font-size: 1rem;
  animation: khPortScroll 1.8s ease-in-out infinite;
}

@keyframes khPortScroll {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

/* ---------- SHOWREEL ---------- */

.kh-port-showreel {
  background: var(--creme);
  color: var(--foret);
  padding: clamp(5rem, 9vw, 9rem) var(--px);
}

.kh-port-showreel__inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.kh-port-showreel__copy h2 {
  max-width: 560px;
  margin: 1rem 0 0;
  color: var(--foret);
  font-size: clamp(3.1rem, 6.5vw, 6.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.kh-port-showreel__copy p {
  max-width: 520px;
  margin: 1.8rem 0 0;
  color: rgba(28, 58, 42, 0.72);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.kh-port-play-button {
  margin-top: 2.2rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border: 1px solid var(--foret);
  background: transparent;
  color: var(--foret);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.kh-port-play-button::before {
  content: "▶";
  font-size: 0.7rem;
}

.kh-port-play-button:hover,
.kh-port-play-button:focus-visible {
  background: var(--foret);
  color: var(--creme);
  transform: translateY(-2px);
}

.kh-port-showreel__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-radius: clamp(1.4rem, 2.4vw, 2.4rem);
  padding: 0;
  background: var(--nuit);
  cursor: pointer;
  box-shadow: 0 36px 100px rgba(14, 14, 12, 0.2);
}

.kh-port-showreel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.kh-port-showreel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14, 14, 12, 0.65), transparent 62%),
    linear-gradient(to right, rgba(14, 14, 12, 0.28), transparent);
}

.kh-port-showreel__media:hover img {
  transform: scale(1.07);
  filter: brightness(0.78);
}

.kh-port-showreel__play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(245, 242, 234, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  transition: transform 0.3s ease, background 0.3s ease;
}

.kh-port-showreel__play::before {
  content: "";
  position: absolute;
  left: 43%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid var(--foret);
}

.kh-port-showreel__media:hover .kh-port-showreel__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--menthe);
}

/* ---------- GALERIE FILTRABLE ---------- */

.kh-port-gallery {
  background: var(--nuit);
  color: var(--creme);
  padding: clamp(5rem, 9vw, 9rem) var(--px);
}

.kh-port-gallery__inner {
  width: min(100%, var(--max-w));
  margin: 0 auto;
}

.kh-port-gallery__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
}

.kh-port-gallery__head h2 {
  max-width: 800px;
  margin: 1rem 0 0;
  color: var(--creme);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.kh-port-gallery__intro {
  margin: 0;
  color: rgba(245, 242, 234, 0.68);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

.kh-port-filterbar {
  margin: clamp(2.2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kh-port-filterbar::-webkit-scrollbar {
  display: none;
}

.kh-port-filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(245, 242, 234, 0.74);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.kh-port-filter:hover,
.kh-port-filter:focus-visible,
.kh-port-filter.is-active {
  border-color: var(--menthe);
  background: var(--menthe);
  color: var(--foret);
}

.kh-port-filter-count {
  margin-left: auto;
  flex: 0 0 auto;
  color: rgba(245, 242, 234, 0.42);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kh-port-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 94px;
  grid-auto-flow: dense;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.kh-port-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 4;
  min-width: 0;
  overflow: hidden;
  border-radius: clamp(1.1rem, 2vw, 2rem);
  background: rgba(245, 242, 234, 0.06);
  isolation: isolate;
  animation: khPortCardIn 0.42s ease both;
}

.kh-port-card--wide {
  grid-column: span 8;
  grid-row: span 5;
}

.kh-port-card--tall {
  grid-column: span 4;
  grid-row: span 6;
}

.kh-port-card--large {
  grid-column: span 7;
  grid-row: span 6;
}

.kh-port-card--portrait {
  grid-column: span 5;
  grid-row: span 6;
}

.kh-port-card[hidden] {
  display: none !important;
}

@keyframes khPortCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kh-port-card__button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--nuit);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.kh-port-card__button img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.kh-port-card__button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(14, 14, 12, 0.9), rgba(14, 14, 12, 0.05) 63%),
    linear-gradient(to right, rgba(14, 14, 12, 0.3), transparent);
}

.kh-port-card:hover .kh-port-card__button img {
  transform: scale(1.085);
  filter: brightness(0.74);
}

.kh-port-card__play {
  position: absolute;
  z-index: 3;
  top: 1.15rem;
  right: 1.15rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 242, 234, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.kh-port-card__play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--foret);
}

.kh-port-card:hover .kh-port-card__play {
  transform: scale(1.08);
  background: var(--menthe);
}

.kh-port-card__content {
  position: absolute;
  z-index: 4;
  left: clamp(1.15rem, 2vw, 1.8rem);
  right: clamp(1.15rem, 2vw, 1.8rem);
  bottom: clamp(1.15rem, 2vw, 1.8rem);
  pointer-events: none;
}

.kh-port-card__category {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--menthe);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kh-port-card__content h3 {
  max-width: 640px;
  margin: 0;
  color: var(--creme);
  font-family: var(--ff-e);
  font-size: clamp(1.55rem, 2.8vw, 3.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.kh-port-card--wide .kh-port-card__content h3,
.kh-port-card--large .kh-port-card__content h3 {
  font-size: clamp(2rem, 3.8vw, 4rem);
}

.kh-port-gallery__footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 242, 234, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.kh-port-gallery__footer p {
  margin: 0;
  color: rgba(245, 242, 234, 0.62);
  font-size: 0.95rem;
  line-height: 1.6;
}

.kh-port-project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.2rem;
  border: 1px solid rgba(245, 242, 234, 0.32);
  color: var(--creme);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.kh-port-project-link:hover,
.kh-port-project-link:focus-visible {
  border-color: var(--creme);
  background: var(--creme);
  color: var(--foret);
}

/* ---------- CTA FINAL ---------- */

.kh-port-final {
  position: relative;
  overflow: hidden;
  background: var(--foret);
  color: var(--creme);
  padding: clamp(5rem, 10vw, 10rem) var(--px);
}

.kh-port-final::before,
.kh-port-final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.kh-port-final::before {
  width: clamp(280px, 38vw, 620px);
  height: clamp(280px, 38vw, 620px);
  right: -16%;
  top: -38%;
  border: 1px solid rgba(119, 189, 154, 0.22);
}

.kh-port-final::after {
  width: clamp(220px, 28vw, 460px);
  height: clamp(220px, 28vw, 460px);
  left: -10%;
  bottom: -42%;
  background: rgba(119, 189, 154, 0.07);
}

.kh-port-final__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.kh-port-final h2 {
  margin: 1rem auto 0;
  color: var(--creme);
  font-size: clamp(3rem, 7.2vw, 7rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.kh-port-final h2 em {
  display: block;
  margin-top: 0.2em;
  color: var(--menthe);
  font-family: var(--ff-e);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}

.kh-port-final p {
  max-width: 620px;
  margin: 1.8rem auto 0;
  color: rgba(245, 242, 234, 0.72);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
}

.kh-port-final__actions {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- LIGHTBOX ---------- */

body.kh-port-video-open {
  overflow: hidden !important;
}

.kh-port-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(14, 14, 12, 0.95);
  backdrop-filter: blur(16px);
}

.kh-port-lightbox.is-open {
  display: flex;
}

.kh-port-lightbox__inner {
  width: min(94vw, 1380px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.64);
}

.kh-port-lightbox__inner video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.kh-port-lightbox__close {
  position: fixed;
  z-index: 100001;
  top: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(245, 242, 234, 0.28);
  border-radius: 50%;
  background: rgba(245, 242, 234, 0.08);
  color: var(--creme);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.kh-port-lightbox__close:hover,
.kh-port-lightbox__close:focus-visible {
  border-color: var(--menthe);
  background: var(--menthe);
  color: var(--foret);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
  .kh-port-showreel__inner,
  .kh-port-gallery__head {
    grid-template-columns: 1fr;
  }

  .kh-port-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 104px;
  }

  .kh-port-card,
  .kh-port-card--wide,
  .kh-port-card--tall,
  .kh-port-card--large,
  .kh-port-card--portrait {
    grid-column: span 3;
    grid-row: span 4;
  }

  .kh-port-card--wide,
  .kh-port-card--large {
    grid-column: span 6;
    grid-row: span 4;
  }
}

@media (max-width: 767px) {
  .kh-port-hero {
    min-height: calc(100svh - var(--nav-h));
  }

  .kh-port-hero__inner {
    padding: 5.5rem 1.25rem 2rem;
  }

  .kh-port-hero h1 {
    font-size: clamp(3.35rem, 18vw, 5.6rem);
    line-height: 0.84;
  }

  .kh-port-hero__bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.35rem;
  }

  .kh-port-scroll {
    display: none;
  }

  .kh-port-showreel,
  .kh-port-gallery,
  .kh-port-final {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .kh-port-showreel__copy h2,
  .kh-port-gallery__head h2,
  .kh-port-final h2 {
    font-size: clamp(2.85rem, 14vw, 4.6rem);
  }

  .kh-port-play-button {
    width: 100%;
  }

  .kh-port-showreel__media {
    aspect-ratio: 4 / 3;
    border-radius: 1.3rem;
  }

  .kh-port-filterbar {
    margin-right: -1.25rem;
    padding-right: 1.25rem;
  }

  .kh-port-filter-count {
    display: none;
  }

  .kh-port-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .kh-port-card,
  .kh-port-card--wide,
  .kh-port-card--tall,
  .kh-port-card--large,
  .kh-port-card--portrait {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: 1.3rem;
  }

  .kh-port-card__content h3,
  .kh-port-card--wide .kh-port-card__content h3,
  .kh-port-card--large .kh-port-card__content h3 {
    max-width: calc(100% - 3rem);
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .kh-port-card__play {
    width: 46px;
    height: 46px;
    top: 0.9rem;
    right: 0.9rem;
  }

  .kh-port-card__play::before {
    left: 19px;
    top: 14px;
  }

  .kh-port-gallery__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .kh-port-project-link {
    width: 100%;
  }

  .kh-port-final__actions {
    width: 100%;
    flex-direction: column;
  }

  .kh-port-final__actions .kh-btn {
    width: 100% !important;
  }

  .kh-port-lightbox {
    padding: 0.75rem;
  }

  .kh-port-lightbox__inner {
    width: 100%;
  }

  .kh-port-lightbox__close {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 390px) {
  .kh-port-hero__inner,
  .kh-port-showreel,
  .kh-port-gallery,
  .kh-port-final {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .kh-port-filterbar {
    margin-right: -1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kh-port-scroll::after {
    animation: none;
  }

  .kh-port-card,
  .kh-port-card__button img,
  .kh-port-showreel__media img {
    animation: none !important;
    transition: none !important;
  }
}

/* Local media only - no external player dependency. */
.kh-port-hero__media video {
  object-fit: cover;
}
.kh-port-lightbox__inner video {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#0E0E0C;
}

/* ==========================================================================\n   KH Studio 1.13.14 — Portfolio grand écran\n   Organisation éditoriale du masonry uniquement au-delà de 1500px.\n   Les filtres reviennent au placement dense automatique afin d'éviter les trous.\n   ========================================================================== */
@media (min-width: 1500px) {
  .kh-port-gallery__inner {
    width: min(calc(100vw - 7rem), 1480px);
  }

  .kh-port-grid {
    grid-auto-rows: clamp(82px, 4.8vw, 96px);
    gap: clamp(1rem, 1.15vw, 1.35rem);
  }

  /* Vue "Tous" : composition stable et équilibrée sur 27 pouces. */
  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(1) {
    grid-column: 1 / 9;
    grid-row: 1 / span 5;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(2) {
    grid-column: 9 / 13;
    grid-row: 1 / span 5;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(3) {
    grid-column: 1 / 5;
    grid-row: 6 / span 4;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(4) {
    grid-column: 5 / 9;
    grid-row: 6 / span 4;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(7) {
    grid-column: 9 / 13;
    grid-row: 6 / span 4;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(5) {
    grid-column: 1 / 8;
    grid-row: 10 / span 6;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(6) {
    grid-column: 8 / 13;
    grid-row: 10 / span 6;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(8) {
    grid-column: 1 / 9;
    grid-row: 16 / span 5;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(9) {
    grid-column: 9 / 13;
    grid-row: 16 / span 5;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(10) {
    grid-column: 1 / 5;
    grid-row: 21 / span 6;
  }

  .kh-port-gallery:not(.is-filtered) .kh-port-card:nth-child(11) {
    grid-column: 5 / 13;
    grid-row: 21 / span 6;
  }

  /* Un filtre actif doit recomposer librement les cartes visibles. */
  .kh-port-gallery.is-filtered .kh-port-card {
    grid-column: span 4;
    grid-row: span 4;
  }

  .kh-port-gallery.is-filtered .kh-port-card--wide {
    grid-column: span 8;
    grid-row: span 5;
  }

  .kh-port-gallery.is-filtered .kh-port-card--tall {
    grid-column: span 4;
    grid-row: span 6;
  }

  .kh-port-gallery.is-filtered .kh-port-card--large {
    grid-column: span 7;
    grid-row: span 6;
  }

  .kh-port-gallery.is-filtered .kh-port-card--portrait {
    grid-column: span 5;
    grid-row: span 6;
  }

  .kh-port-card__content h3 {
    font-size: clamp(1.6rem, 2vw, 2.55rem);
  }

  .kh-port-card--wide .kh-port-card__content h3,
  .kh-port-card--large .kh-port-card__content h3 {
    font-size: clamp(2rem, 2.65vw, 3.35rem);
  }
}

/* ==========================================================================\n   KH Studio 1.13.15 — Showreel grand écran\n   Empêche le H2 de passer sous le média sur les écrans 27 pouces.\n   ========================================================================== */
@media (min-width: 1280px) {
  .kh-port-showreel__inner {
    grid-template-columns: minmax(430px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(4rem, 6vw, 6.5rem);
  }

  .kh-port-showreel__copy {
    min-width: 0;
    position: relative;
    z-index: 2;
  }

  .kh-port-showreel__copy h2 {
    width: 100%;
    max-width: 520px;
    font-size: clamp(3.8rem, 4.35vw, 5.15rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
  }

  .kh-port-showreel__media {
    min-width: 0;
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 1800px) {
  .kh-port-showreel__inner {
    grid-template-columns: minmax(470px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(5rem, 5.5vw, 7rem);
  }

  .kh-port-showreel__copy h2 {
    max-width: 540px;
    font-size: clamp(4.2rem, 4.1vw, 5.35rem);
  }
}
