/* Project Campaign Materials grid — based on campaign_materials_css_grid_desktop.html */

.lan-project-materials {
  --section-radius: 44px;
  --tile-radius: 22px;
  --gap: clamp(14px, 1.15vw, 18px);
  --mint-border: rgba(98, 211, 191, 0.34);
  --shadow-soft: 0 22px 70px rgba(31, 56, 66, 0.08);
  width: 100%;
  border: 1.3px solid var(--mint-border);
  border-radius: var(--section-radius);
  padding: clamp(48px, 4.4vw, 64px) clamp(52px, 4.2vw, 60px) clamp(28px, 3vw, 38px);
  background:
    radial-gradient(circle at 16% 10%, rgba(213, 253, 246, 0.78), transparent 34%),
    radial-gradient(circle at 90% 82%, rgba(255, 225, 214, 0.78), transparent 36%),
    linear-gradient(145deg, #f2fffc 0%, #fbfffe 48%, #fff7f1 100%);
  box-shadow: var(--shadow-soft);
}



.lan-project-materials .materials-grid {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 313fr) minmax(0, 342fr) minmax(0, 491fr) minmax(0, 278fr);
  grid-template-rows: clamp(180px, 13.5vw, 216px) clamp(118px, 9.1vw, 145px) clamp(166px, 12.5vw, 200px);
  gap: var(--gap);
}

.lan-project-materials .tile {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--tile-radius);
  border: 1px solid rgba(13, 47, 54, 0.06);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(18, 40, 55, 0.045);
}

.lan-project-materials figure.tile {
  margin: 0;
}

.lan-project-materials .tile a,
.lan-project-materials .tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.lan-project-materials .tile img {
  object-fit: cover;
  transition: transform .5s ease;
}

.lan-project-materials .tile a:hover img {
  transform: scale(1.045);
}

.lan-project-materials .hero-portrait {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.lan-project-materials .white-portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.lan-project-materials .store-landscape {
  grid-column: 3;
  grid-row: 1;
}

.lan-project-materials .tiktok-card {
  grid-column: 4;
  grid-row: 1;
}

.lan-project-materials .keyword-pair {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.lan-project-materials .combo-card {
  grid-column: 4;
  grid-row: 2 / span 2;
}

.lan-project-materials .bottom-strip {
  grid-column: 2 / span 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 225fr) minmax(0, 421fr) minmax(0, 164fr);
  gap: var(--gap);
  min-width: 0;
}

.lan-project-materials .lan-material-popup-link--hidden {
  display: none !important;
}

.lan-project-materials .button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.lan-project-materials .view-button {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  min-width: 300px;
  height: 56px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  font-size: 18px;
  font-weight: 540;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lan-project-materials .view-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}





.lan-project-materials .materials-mobile-grid {
  display: none;
}

.lan-project-materials .materials-mobile-grid,
.lan-project-materials .materials-mobile-grid .top-grid,
.lan-project-materials .materials-mobile-grid .mixed-grid,
.lan-project-materials .materials-mobile-grid .keyword-grid {
  width: 100%;
  min-width: 0;
}

.lan-project-materials .materials-mobile-grid .top-grid,
.lan-project-materials .materials-mobile-grid .mixed-grid,
.lan-project-materials .materials-mobile-grid .keyword-grid {
  display: grid;
  gap: var(--gap);
}

.lan-project-materials .materials-mobile-grid .top-grid,
.lan-project-materials .materials-mobile-grid .keyword-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lan-project-materials .materials-mobile-grid .mixed-grid {
  grid-template-columns: 1.2fr 1.86fr;
  align-items: stretch;
}

.lan-project-materials .materials-mobile-grid .card {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--tile-radius);
  border: 1px solid rgba(13, 41, 35, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.lan-project-materials .materials-mobile-grid .media-card {
  position: relative;
  background: #fff;
}

.lan-project-materials .materials-mobile-grid .media-card a,
.lan-project-materials .materials-mobile-grid .media-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 10px !important;
}

.lan-project-materials .materials-mobile-grid .media-card img {
  object-fit: cover;
}

.lan-project-materials .materials-mobile-grid .portrait-card {
  aspect-ratio: 4 / 5;
}

.lan-project-materials .materials-mobile-grid .landscape-card {
  aspect-ratio: 3.28 / 1;
}

.lan-project-materials .materials-mobile-grid .square-card {
  aspect-ratio: 1.2 / 1;
}

.lan-project-materials .materials-mobile-grid .landscape-small-card {
  aspect-ratio: 1.86 / 1;
}

.lan-project-materials .materials-mobile-grid .keyword-image-card {
  aspect-ratio: 2.1 / 1;
}

@media (max-width: 1024px) {
  .lan-project-materials {
    --section-radius: 28px;
    --tile-radius: 17px;
    --gap: 20px;
    padding: 30px 24px 24px;
    overflow: hidden;
  }

  .lan-project-materials .materials-grid--desktop {
    display: none;
  }

  .lan-project-materials .materials-mobile-grid {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    gap: var(--gap);
  }
}

@media (max-width: 390px) {
  .lan-project-materials {
    --gap: 10px;
    --tile-radius: 15px;
    padding: 26px 18px 22px;
    border-radius: 24px;
  }

  .lan-project-materials .materials-mobile-grid .keyword-image-card {
    aspect-ratio: 2.1 / 1;
  }

  .lan-project-materials .view-button {
    width: 236px;
    max-width: 100%;
    height: 50px;
    font-size: 17px;
  }
}



/* Tablet/mobile material grid containment fix */
@media (max-width: 1024px) {
  .lan-project-materials .materials-mobile-grid {
    max-width: 100%;
  }

  .lan-project-materials .materials-mobile-grid,
  .lan-project-materials .materials-mobile-grid > *,
  .lan-project-materials .materials-mobile-grid .top-grid,
  .lan-project-materials .materials-mobile-grid .mixed-grid,
  .lan-project-materials .materials-mobile-grid .keyword-grid {
    min-width: 0;
    max-width: 100%;
  }

  .lan-project-materials .materials-mobile-grid .top-grid,
  .lan-project-materials .materials-mobile-grid .keyword-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lan-project-materials .materials-mobile-grid .mixed-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.86fr);
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .tile,
  .lan-project-materials .materials-mobile-grid .mixed-grid > .tile,
  .lan-project-materials .materials-mobile-grid .keyword-grid > .tile,
  .lan-project-materials .materials-mobile-grid > .tile {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
  }

  .lan-project-materials .materials-mobile-grid .media-card {
    position: relative;
    display: block;
  }

  .lan-project-materials .materials-mobile-grid .media-card > a.lan-material-popup-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .lan-project-materials .materials-mobile-grid .media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* Tablet/mobile material image cover + first-row radius fix */
@media (max-width: 1024px) {
  .lan-project-materials .materials-mobile-grid .tile,
  .lan-project-materials .materials-mobile-grid .tile > a,
  .lan-project-materials .materials-mobile-grid .tile img {
    overflow: hidden;
  }

  .lan-project-materials .materials-mobile-grid .tile img,
  .lan-project-materials .materials-mobile-grid .media-card img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover !important;
    object-position: center !important;
  }

  .lan-project-materials .materials-mobile-grid .top-grid {
    align-items: start;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .portrait-card {
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .portrait-card > a,
  .lan-project-materials .materials-mobile-grid .top-grid > .portrait-card img {
    border-radius: inherit;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .mobile-cell-1 {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 0;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .mobile-cell-2 {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 20px;
  }
}

@media (max-width: 390px) {
  .lan-project-materials .materials-mobile-grid .top-grid > .portrait-card {
    border-radius: 18px;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .mobile-cell-1 {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 0;
  }

  .lan-project-materials .materials-mobile-grid .top-grid > .mobile-cell-2 {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 18px;
  }
}


/* Editable text/color boxes inside Lan Project Visual Grid */
.lan-project-materials .material-info-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2vw, 28px);
  color: #111;
  text-align: center;
}

.lan-project-materials .material-info-card__text {
  display: block;
  max-width: 100%;
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 760;
}

.lan-project-materials .keyword-pair .material-info-card__text,
.lan-project-materials .bottom-strip .material-info-card__text {
  font-size: clamp(17px, 1.55vw, 25px);
}

@media (max-width: 1024px) {
  .lan-project-materials .materials-mobile-grid .material-info-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #111;
  }

  .lan-project-materials .materials-mobile-grid .material-info-card__text {
    font-size: clamp(17px, 4.2vw, 24px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 760;
  }

  .lan-project-materials .materials-mobile-grid .square-card .material-info-card__text,
  .lan-project-materials .materials-mobile-grid .landscape-small-card .material-info-card__text,
  .lan-project-materials .materials-mobile-grid .keyword-image-card .material-info-card__text {
    font-size: clamp(15px, 3.8vw, 21px);
  }
}

/* Magnific Popup must sit above the fixed/sticky global header and mobile drawer. */
.mfp-bg {
  z-index: 1000000;
}

.mfp-wrap {
  z-index: 1000001;
}

.mfp-container,
.mfp-content {
  z-index: 1000002;
}

.lan-materials-mfp .mfp-close,
.lan-materials-mfp .mfp-arrow {
  z-index: 1000003;
}
