/* VARIABLES GLOBALES */
:root {
  --bg: #efefef;
  --bg-strong: #3333ff;
  --text: #181819;
  --accent: #fff769;
  --border: #181819;
  --radius: 20px;
  --transition-fast: 0.25s cubic-bezier(.2,.8,.2,1);
  --transition-slow: 0.6s cubic-bezier(.2,.8,.2,1);
}

/* FONT */
@font-face {
  font-family: 'helvetica_neuelight';
  src: url('../font/helveticaneuelight-webfont.woff2') format('woff2'),
       url('../font/helveticaneuelight-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'geist_monoregular';
  src: url('../font/geistmono-variablefont_wght-webfont.woff2') format('woff2'),
        url('../font/geistmono-variablefont_wght-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* RESET DE BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
}

html, body {
  height: 100%;
  font-family: "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.body-no-scroll {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(22px, 2vw, 34px);
  margin-bottom: 16px;
}

h3 {
  color: #666;
  margin-top: 28px;
  margin-bottom: 18px;
}

button {
  font: inherit;
  background: none;
  border: none;
}

/* CURSEUR CUSTOM */
.cursor-circle {
  position: fixed;
  width: 25px;
  height: 25px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: background 0.5s ease;
}

.cursor-circle.hover-link,
.cursor-circle.hover-header-right {
  background: var(--bg-strong) !important;
  transition: background 0.5s ease;
}

/* LAYOUT GLOBAL */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 8px;
}

.frame {
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 16px);
  position: relative;
}

/* HEADER STICKY */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg);
  border-radius: 0 0 32px 32px;
  transition: opacity 0.3s ease;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-meta {
  font-size: 12px;
  font-weight: 600;
}

/* LOGO */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 80px;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* MENU BURGER */
.burger {
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: none;
  background: none;
}

.burger-text {
  margin-left: 15px;
  font-size: 17px;
  font-weight: bold;
  color: var(--text);
  opacity: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger:hover .burger-text {
  color: var(--bg-strong);
  transform: translateX(5px);
}

.burger-line {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 35%;
  transform-origin: center;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    width var(--transition-fast);
}

.burger:hover .burger-line:nth-child(1) {
  width: 60%;
}

.burger:hover .burger-line:nth-child(3) {
  width: 75%;
}

.burger.is-open .burger-line:nth-child(1),
.burger.is-open .burger-line:nth-child(2),
.burger.is-open .burger-line:nth-child(3) {
  opacity: 0;
}

@media (max-width: 960px) {
  .burger-text {
    opacity: 0;
    position: absolute;
  }
}

@media (min-width: 961px) {
  .burger-line {
    opacity: 0;
    height: 0;
    margin: 0;
  }
  .burger-text {
    position: relative;
  }
}

/* MAIN / VUES */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view {
  display: none;
  min-height: calc(100vh - 56px - 140px);
  position: relative;
  bottom: 32px;
}

.view--active {
  display: block;
}

/* ── WORKS BANNER ─────────────────────────────────────── */
.works-banner {
    background: var(--bg-strong);
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    bottom: 32px;
}

.works-banner__sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
}

/* Image centrale */
.works-banner__img-wrap {
    width: 280px;
    height: 380px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    flex-shrink: 0;
}

.works-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.works-banner__img.fade-out {
    opacity: 0;
}

/* Ticker texte défilant */
.works-banner__ticker-wrap {
    position: absolute;
    bottom: unset;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    padding: 12px 0;
}

.works-banner__ticker {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: works-ticker 12s linear infinite;
    font-size: 6em;
    color: var(--text);
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    font-family: 'Times New Roman', Times, serif;
}

.works-banner__sep {
    opacity: 0.4;
}

@keyframes works-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* SECTIONS VISUELS */
.visuels-section {
  background: var(--bg);
  padding: 0 0 48px 0;
}

.visuels-inner {
  padding: 32px 24px 60px;
}

.visuels-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin: 18px 0;
  margin-left: 18px;
  opacity: 0.7;
  font-family: "helvetica_neuelight";
}

/* pour les pages sans banniere */
.no-hero{ 
  margin-top: 110px;
  margin-bottom: 10px;
}

.visuels-grid {
  display: grid;
}

/* VARIANTES GRID */

.grid2 {
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: flex-start;
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

/* Effet hover cartes (page home) */
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 2;
  overflow: hidden;
}

.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-img img:nth-child(2) {
  opacity: 0;
  transform: scale(1.05);
}

.card:hover .card-img img:nth-child(1) {
  opacity: 0;
  transform: scale(1.05);
}

.card:hover .card-img img:nth-child(2) {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 900px) {
  .grid3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}

/* GRID 1 */
.grid1 .visuel-image {
  height: 100%;
  overflow: hidden;
}

/* GRID 6 (3x2) */
.grid6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 80px;
  column-gap: 30px;
  justify-items: center;
  margin: 80px;
}

.grid6 .visuel-card,
.grid6 article {
  border: none;
  background: transparent;
}

.grid6 .visuel-image {
  max-width: 360px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.grid6 .visuel-placeholder {
  width: 100%;
  height: 100%;
}

.grid6 .visuel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PAS DE PADDING POUR CAPTION COLLÉE */
.nopadding-caption {
  padding-bottom: 0;
}

/* CARTES VISUELS */
.visuel-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visuel-image {
  max-height: 800px;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* padding: 40px 0 0 0; */
}

.object-pos-bottom {
  object-position: bottom;
}

.visuel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visuel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #555;
}

.visuel-caption {
  padding: 8px 10px 10px;
  display: flex;
  justify-content: space-between;
}

.visuel-caption h2 {
  color: var(--text);
  text-align: left;
  margin-bottom: 0;
}

.visuel-caption,
.visuel-caption button {
  font-size: 12px;
}

.visuel-caption button:hover,
.visuel-caption span:hover {
  color: var(--bg-strong);
}

.visuel-caption span:last-of-type {
  text-align: right;
}

@media (max-width: 900px) {
  .visuel-image {
    max-height: 600px;
    aspect-ratio: 1 / 1.2;
  }

  .visuels-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .grid3 {
    grid-template-columns: 1fr;
  }

  .grid6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
    column-gap: 30px;
    margin: 30px;
  }

  .visuel-caption.display-none {
    display: none;
  }
}

/* BLOC TEXTE PROJETS */
.project-text-block {
  max-width: 90%;
  padding: 40px 40px 60px;
  text-align: justify;
}

.project-box-title {
  display: flex;
  justify-content: space-between;
  width: fit-content;
  margin-bottom: 18px;
  align-items: baseline;
  gap: 24px;
  position: relative;
}

.project-text-title {
  font-size: clamp(3em, 8vw, 4em);
  line-height: 0.85;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  width: 100%;
}

.project-text-meta {
  font-family: 'geist_monoregular';
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--bg-strong);
  margin-bottom: 24px;
}

.project-text-meta p{
  margin-bottom: 8px;
}

.project-text-year {
  font-family: 'geist_monoregular';
  display: inline-block;
  padding: 3px 12px 0px 12px;
  margin-bottom: 10px;
  margin-left: 18px;
  border: 1px solid #000000;
  border-radius: 999px;
  font-size: clamp(1em, 8vw, 1.2em);
  color: #000000;
  background: var(--bg);
}

.project-text-body {
  line-height: 1.6;
  color: #111111;
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .project-text-block {
    max-width: 100%;
    padding: 24px 20px 40px;
  }
}

.switch_projet {
  display: flex;
  justify-content: space-between;
  font-size: clamp(3em, 8vw, 4.5em);
  margin-top: 72px;
  padding: 18px;
}

/* PAGE WORKSHOP */
.full-bleed {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px - 80px);
  color: #ffffff;
}

.full-bleed img,
.full-bleed-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.full-bleed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
}

.workshop-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px;
}

@media (max-width: 800px) {
  .workshop-inner {
    padding: 60px 24px;
  }
}

.workshop-title {
  font-size: clamp(40px, 7vw, 72px);
  color: var(--accent);
  margin-bottom: 32px;
}

.workshop-text {
  max-width: 640px;
  line-height: 1.5;
  font-weight: 600;
}

/* PAGE PRINCIPE 
.responsabilite {
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: calc(100vh - 56px - 80px);
  background: var(--bg-strong);
  color: #ffffff;
  display: flex;
  align-items: center;
}*/

.responsabilite {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  background: var(--bg-strong);
  color: #ffffff;
}

.responsabilite .menu-location2{
  display: flex;
  justify-content: space-around;
  width: 80%;
}

@media (max-width: 800px) {
  .responsabilite-inner {
    padding: 60px 24px;
  }
}

.location-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 500px;
  overflow: hidden;
  color: #fff;

}

.location-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  background-image: var(--bg-random, none) !important;
}

.location-item:nth-of-type(1)::before { 
  background-image: url('../img/exp-1.webp'); 
}
.location-item:nth-of-type(2)::before { 
  background-image: url('../img/exp-2.webp'); 
}
.location-item:nth-of-type(3)::before { 
  background-image: url('../img/exp-3.webp'); 
}

.location-item:hover::before {
  opacity: 1;
}

.location-item:hover {
  text-shadow: 
    2px 2px 4px rgba(0, 0, 0, 0.7),
    -2px -2px 4px rgba(0, 0, 0, 0.7),
    2px -2px 4px rgba(0, 0, 0, 0.7),
    -2px 2px 4px rgba(0, 0, 0, 0.7);
}

.location-item #clock-bt,
.location-item #clock-bh,
.location-item #clock-paris {
  z-index: 10;
}

/* PAGE ABOUT */
.about-intro-h1 {
  font-size: 1.2em;
  margin-bottom: 18px;
}

.about-subtitle {
  margin-top: 18px;
  font-size: 0.8em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
}

.visuel-about{
  margin: 18px;
}

/* RUBAN EXPÉRIENCES (Contact) */
.exp-ribbon {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.exp-track {
  display: flex;
  width: max-content;
  animation: exp-scroll 24s linear infinite;
}

.exp-slide {
  height: 480px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

@keyframes exp-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* PAGE CONTACT */
.contact {
  min-height: calc(100vh - 56px - 80px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  padding: 80px;
  gap: 40px;
}

.contact-meta-block {
  margin-top: 24px;
  line-height: 1.5;
}

.contact-meta-block a {
  border-bottom: 1px solid #111111;
}

@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    padding: 48px 24px 64px;
  }
}

.contact-col p {
  margin-bottom: 8px;
}

.contact-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid #000;
}

.contact-col--meta {
  align-self: center;
}

.contact-icons {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  justify-content: flex-start;
}

.contact-icon {
  width: 128px;
  height: 128px;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
}

.contact-icon:first-child:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.contact-icon:last-child:hover {
  background: var(--bg-strong);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-icons {
    justify-content: center;
  }
}

/* MENU OVERLAY */
.menu-overlay {
  position: fixed;
  inset: 8px;
  border-radius: var(--radius);
  background: var(--bg-strong);
  color: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
  z-index: 50;
}

.menu-overlay--open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-top,
.menu-bottom {
  padding: 24px 40px;
  font-size: 14px;
}

.menu-top {
  position: absolute;
  top: 24px;
  right: 12px;
  left: auto;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
}

.menu-label {
  position: relative;
  width: 22px;
  height: 22px;
  border: none;
  background: none;
}

.menu-label::before,
.menu-label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transform-origin: center;
  transition: transform 0.25s ease;
}

.menu-label::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-label::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-label:hover::before,
.menu-label:hover::after {
  transform: translate(-50%, -50%) scale(1.1) rotate(45deg);
}

.menu-label:hover::after {
  transform: translate(-50%, -50%) scale(1.1) rotate(-45deg);
}

.menu-location {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 50%;
}

.menu-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 40px;
  margin-top: 60px;
}

.menu-item {
  display: flex;
  align-items: center;
  height: 120px;
  text-align: left;
  color: #ffffff;
  font-size: 87pt;
  font-weight: bold;
  /* -webkit-text-stroke: 0.5px #000; */
    text-shadow:
    -0.5px -0.5px 0 #000,
     0.5px -0.5px 0 #000,
    -0.5px  0.5px 0 #000,
     0.5px  0.5px 0 #000;
  border-bottom: 1px solid #006eff;
  padding-bottom: 10px;
}

.menu-item:hover {
  color: var(--accent);
}

.menu-item--active {
  color: var(--accent);
}

.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-contact {
  padding: 8px 20px;
  border-radius: 999px;
  background: #000000;
  border: 2px solid #000;
  font-size: 1.3em;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
}

.menu-contact:hover {
  background: var(--bg-strong);
  color: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

@media (max-width: 900px) {
  .menu-location {
    flex-direction: column;
  }

  .menu-item {
    height: 74px;
    font-size: 48pt;
  }

  .menu-middle {
    padding: 90px 40px;
    margin-top: 0;
  }
}

/* FOOTER */
.footer {
  background: var(--bg-strong);
  color: #ffffff;
  padding: 48px 32px 42px;
  border-radius: 32px 32px 0 0;
  margin: 90px -2px -2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-family: 'helvetica_neuelight';
}

.footer-inner button {
  text-align: center;
  font-family: 'helvetica_neuelight';
  font-size: 0.75em;
  line-height: 1.4;
  font-weight: 100;
  letter-spacing: 0.08em;
  opacity: 0.9;
  color: #fff;
}

.footer-inner button:hover {
  font-weight: bold;
}

.footer-text,
.footer-meta{
  font-size: 0.75em;
  line-height: 1.4;
  font-weight: 100;
  letter-spacing: 0.08em;
  opacity: 0.9;
  color: #fff;
}

.footer-icons {
  margin-top: 20px;
  width: 5%;
  display: flex;
  justify-content: space-around;
}

.footer-icons  .footer-icon {
  width: 20px;
  height: 20px;
}

.footer-icons  .footer-icon img {
  width: 20px;
  height: 20px;
}

.footer-icon:hover {
  transform: translateY(1px);
}

/* PREFOOTER : image au dessus du footer */
.prefooter {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  height: 300px;
  z-index: 1;
  margin-top: 90px;
  background-image: url("../img/prefooter.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  aspect-ratio: 3 / 1;
}

/* ACCESSIBILITÉ FOCUS */
.menu-item:focus-visible,
.menu-contact:focus-visible,
.logo:focus-visible,
.burger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}


@media (max-width: 900px) {
  .footer-icons {
    width: 15%;
  }
}



.grid-custom1 div img,
.grid-custom2 div img ,
.grid-custom3 div img ,
.grid-custom4 div img,
.grid-custom5 div img,
.grid-custom6 div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom 1 */

.grid-custom1 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 200px 200px 1fr; /* Rows 1-2: 400px total */
  grid-column-gap: 28px;
  grid-row-gap: 28px;
  /* margin: 80px auto;
  padding: 0 40px; */
}

.grid-custom1 div:nth-child(1) {
  grid-area: 1 / 1 / 6 / 11;
}

.grid-custom1 div:nth-child(2) {
  grid-area: 6 / 1 / 8 / 4;
  max-height: 450px;
}

.grid-custom1 div:nth-child(3) {
  grid-area: 6 / 4 / 8 / 7;
  max-height: 450px;
}

.grid-custom1 div:nth-child(4) {
  grid-area: 6 / 7 / 8 / 11;
  max-height: 450px;
}

.grid-custom1 div:nth-child(5) {
  grid-area: 8 / 1 / 11 / 5;
  max-height: 650px;
}

.grid-custom1 div:nth-child(6) {
  grid-area: 8 / 5 / 11 / 11;
  max-height: 650px;
}

/* Custom 2 */

.grid-custom2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 28px;
  grid-row-gap: 28px;
}

.grid-custom2 div:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
.grid-custom2 div:nth-child(2) { grid-area: 1 / 3 / 3 / 5; }
.grid-custom2 div:nth-child(3) { grid-area: 3 / 1 / 5 / 3; }
.grid-custom2 div:nth-child(4) { grid-area: 3 / 3 / 4 / 4; }
.grid-custom2 div:nth-child(5) { grid-area: 3 / 4 / 4 / 5; }
.grid-custom2 div:nth-child(6) { grid-area: 4 / 3 / 5 / 4; }
.grid-custom2 div:nth-child(7) { grid-area: 4 / 4 / 5 / 5; }

/* Custom 3 */

.grid-custom3 {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, 1fr);
  grid-auto-rows: auto;
}

.grid-custom3 div:nth-child(1) { grid-area: 1 / 1 / 2 / 2; max-height: 500px;}
.grid-custom3 div:nth-child(2) { grid-area: 2 / 1 / 3 / 2; max-height: 800px;}
.grid-custom3 div:nth-child(3) { grid-area: 3 / 1 / 4 / 2; max-height: 800px;}

/* Custom 4 */

.grid-custom4 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 300px 300px 1fr;
  grid-column-gap: 28px;
  grid-row-gap: 28px;
  grid-auto-rows: minmax(300px, 500px); 
  overflow: hidden;
  align-content: start;
}

.grid-custom4 div:nth-child(1) { grid-area: 1 / 1 / 3 / 6; }
.grid-custom4 div:nth-child(2) { grid-area: 1 / 6 / 3 / 11; }
.grid-custom4 div:nth-child(3) { grid-area: 3 / 1 / 6 / 7; }
.grid-custom4 div:nth-child(4) { grid-area: 3 / 7 / 5 / 11; }
.grid-custom4 div:nth-child(5) { grid-area: 5 / 7 / 6 / 11; }

/* Custom 5 */

.grid-custom5 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 28px;
  grid-row-gap: 28px;
}

.grid-custom5 div:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.grid-custom5 div:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.grid-custom5 div:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }

/* Custom 6 */

.grid-custom6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, 500px);
  grid-column-gap: 28px;
  grid-row-gap: 28px;
}

.grid-custom6 div:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.grid-custom6 div:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.grid-custom6 div:nth-child(3) { grid-area: 1 / 3 / 2 / 4; }

@media (max-width: 900px) {
  .grid-custom1,
  .grid-custom2{
    grid-column-gap: 14px;
    grid-row-gap: 14px;
  }

  .grid-custom1 div:nth-child(2) {
    grid-area: 6 / 1 / 8 / 4;
    max-height: 150px;
  }

  .grid-custom1 div:nth-child(3) {
    grid-area: 6 / 4 / 8 / 7;
    max-height: 150px;
  }

  .grid-custom1 div:nth-child(4) {
    grid-area: 6 / 7 / 8 / 11;
    max-height: 150px;
  }

  .grid-custom1 div:nth-child(5) {
    grid-area: 8 / 1 / 11 / 5;
    max-height: 250px;
  }

  .grid-custom1 div:nth-child(6) {
    grid-area: 8 / 5 / 11 / 11;
    max-height: 250px;
  }

  .grid-custom4 {
    grid-template-rows: 200px 200px 1fr;
    grid-column-gap: 28px;
    grid-row-gap: 28px;
    grid-auto-rows: minmax(150px, 250px); 
    overflow: hidden;
    align-content: start;
  }
}