/* v26: final gallery height balancing for detail pages 04 and 06,
   plus non-cropping right poster handling for detail page 05. */
@media (min-width: 768px) {
  /* project-detail-04 — SEVEN BEFORE: lower sketch and laptop image same outer height. */
  body.project-sevenbefore-v26 .section-detail .div-block-11.femizide {
    display: grid !important;
    grid-template-columns: minmax(0, 0.565fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
  body.project-sevenbefore-v26 .section-detail .div-block-11.femizide > .div-block-13 {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  body.project-sevenbefore-v26 .section-detail .div-block-11.femizide > .div-block-13 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
  }

  /* project-detail-06 — Power defines freedom: left image height matches the two right items combined. */
  body.project-power-v26 .section-detail .div-block-11.freedom {
    display: grid !important;
    grid-template-columns: minmax(0, 1.396fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-13,
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-12 {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-13 {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-12 {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 24px !important;
    align-content: stretch !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom .div-block-19,
  body.project-power-v26 .section-detail .div-block-11.freedom .div-block-20 {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-13 img,
  body.project-power-v26 .section-detail .div-block-11.freedom .div-block-19 img,
  body.project-power-v26 .section-detail .div-block-11.freedom .div-block-20 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    aspect-ratio: auto !important;
  }

  /* project-detail-05 — Barrieren behindern: same outer height, no cropped poster. */
  body.barrieren-gallery-v22 .section-detail .div-block-11 {
    align-items: stretch !important;
  }
  body.barrieren-gallery-v22 .section-detail .div-block-11 > .div-block-13 {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    min-height: 0 !important;
  }
  body.barrieren-gallery-v22 .section-detail .div-block-11 > .div-block-13 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 767px) {
  body.project-sevenbefore-v26 .section-detail .div-block-11.femizide,
  body.project-power-v26 .section-detail .div-block-11.freedom {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.project-power-v26 .section-detail .div-block-11.freedom > .div-block-12 {
    gap: 16px !important;
  }
  body.project-sevenbefore-v26 .section-detail .div-block-11.femizide > .div-block-13 img,
  body.project-power-v26 .section-detail .div-block-11.freedom img,
  body.barrieren-gallery-v22 .section-detail .div-block-11 > .div-block-13 img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
