/* NAKAJP AI placeholder image slots — scoped to the four mapped Ads LPs. */

.ads-content-image-slot.ads-content-image-slot--shared {
  width: 100%;
  min-width: 0;
  max-width: 500px;
  margin: 0;
  justify-self: end;
  align-self: center;
}

.ads-content-image-slot.ads-content-image-slot--shared img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
  background: #eee8df;
  box-shadow: 0 12px 30px rgba(51, 38, 28, 0.10);
}

.ads-content-image-slot.ads-content-image-slot--shared figcaption {
  width: 100%;
  margin: 10px 0 0;
  box-sizing: border-box;
  color: #5f574f;
  font-size: 14px;
  line-height: 1.5;
}

.image-caption-main {
  display: block;
}

.image-caption-note {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.68;
}

@media (min-width: 769px) {
  .ads-ai-image-section .ads-content-head-split {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(300px, 42fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
    margin-bottom: clamp(24px, 3vw, 40px);
  }

  .ads-ai-image-section .ads-ai-content-head-split {
    margin-bottom: clamp(24px, 3vw, 36px);
  }
}

@media (max-width: 768px) {
  .ads-ai-image-section {
    display: flex;
    flex-direction: column;
  }

  body .ads-ai-image-section.ads-ai-image-section--after-copy > .desktop-copy,
  body .ads-ai-image-section.ads-ai-image-section--before-copy > .desktop-copy {
    display: block !important;
    width: 100%;
  }

  .ads-ai-image-section > .desktop-copy > * {
    display: none !important;
  }

  .ads-ai-image-section > .desktop-copy > .ads-content-head-split {
    display: block !important;
  }

  .ads-ai-image-section .ads-content-head-split > *:not(.ads-content-image-slot--shared) {
    display: none !important;
  }

  .ads-ai-image-section .ads-content-image-slot.ads-content-image-slot--shared {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 18px 0 24px;
  }

  .ads-ai-image-section .ads-content-image-slot.ads-content-image-slot--shared figcaption {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .ads-ai-image-section--after-copy > .mobile-copy {
    order: 1;
  }

  .ads-ai-image-section--after-copy > .desktop-copy {
    order: 2;
  }

  .ads-ai-image-section--before-copy > .desktop-copy {
    order: 1;
  }

  .ads-ai-image-section--before-copy > .mobile-copy {
    order: 2;
  }
}
