/* Application imagery for the localized agriculture, personal-care and coatings developer pages. */
.v520-dev-hero.dbc-developer-hero-with-image .v520-dev-hero__grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.dbc-developer-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(14px, 2.2vw, 26px);
  box-shadow: 0 18px 42px rgba(7, 23, 28, .24);
}

.v520-dev-hero.dbc-developer-hero-with-image .v520-dev-brief {
  grid-column: 1 / -1;
  max-width: none;
  padding: clamp(18px, 2vw, 28px);
  border-color: rgba(35, 61, 51, .16);
  background: #f3f5ef;
  backdrop-filter: none;
}

.dbc-developer-hero-with-image .v520-dev-brief h2 {
  margin-block-end: 12px;
}

.dbc-developer-hero-with-image .v520-dev-brief dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(12px, 2vw, 28px);
}

.dbc-developer-hero-with-image .v520-dev-brief dl > div {
  display: block;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(35, 61, 51, .16);
}

.dbc-developer-hero-with-image .v520-dev-brief dt {
  color: #4f675b;
  font-weight: 650;
}

.dbc-developer-hero-with-image .v520-dev-brief dd {
  margin-top: 5px;
  color: #253d35;
}

.dbc-developer-scenes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 16px);
  margin-block-end: clamp(16px, 2vw, 28px);
}

.dbc-developer-scenes img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

#input .dbc-developer-scenes + .v520-dev-input-grid {
  grid-template-columns: minmax(0, 1fr);
}

#input .dbc-developer-scenes + .v520-dev-input-grid > .v520-dev-input {
  grid-column: auto;
  min-height: 0;
}

@media (max-width: 600px) {
  .dbc-developer-scenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dbc-developer-scenes img:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 641px) {
  #input .dbc-developer-scenes + .v520-dev-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 981px) {
  .v520-dev-hero.dbc-developer-hero-with-image .v520-dev-hero__grid {
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  }
}

@media (min-width: 1024px) {
  .dbc-developer-hero-with-image .v520-dev-brief dl,
  #input .dbc-developer-scenes + .v520-dev-input-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Project output cards use wide photos on the lead card and paired photo and copy on the side cards. */
#output .dbc-developer-output-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(170px, auto));
  gap: 16px;
}

#output .dbc-developer-output-grid > .v520-dev-output {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-content: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#output .dbc-developer-output-grid > .v520-dev-output:first-child {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
}

.dbc-developer-output-photo {
  position: relative;
  min-height: 146px;
  background: #e9ebe7;
}

.dbc-developer-output-grid > :first-child .dbc-developer-output-photo {
  aspect-ratio: 2.05;
}

.dbc-developer-output-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dbc-developer-output-copy {
  align-self: center;
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  overflow-wrap: anywhere;
}

.dbc-developer-output-grid .v520-dev-output h3 {
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.28;
}

.dbc-developer-output-grid .v520-dev-output p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  #output .dbc-developer-output-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  #output .dbc-developer-output-grid > .v520-dev-output:first-child {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  #output .dbc-developer-output-grid > .v520-dev-output {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  #output .dbc-developer-output-grid .dbc-developer-output-photo {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
