/**
 * Archive v5: reserve space for late-loading embeds/images so sticky
 * anchor scroll does not undershoot when layout expands above the target.
 * Loaded only by page-education-archive-5.php.
 */

/*
 * ht-info-img FAQ: collapse before the component stylesheet/JS run
 * (those are often printed late via wp_enqueue in the component).
 */
.page-template-page-education-archive-5 .ht-info-img-right-info-item .faq-content:not(.faq-open) {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
}

/* Flowbox UGC: empty #js-flowbox-flow-tags grows after async init. */
.page-template-page-education-archive-5 #js-flowbox-flow-tags {
  min-height: 520px;
}

@media (max-width: 767px) {
  .page-template-page-education-archive-5 #js-flowbox-flow-tags {
    min-height: 360px;
  }
}

/*
 * Image slots: keep ratio before decode when width/height attrs are present
 * on the <img>, and as a fallback when the container is empty briefly.
 */
.page-template-page-education-archive-5 .ht-info-img-left img,
.page-template-page-education-archive-5 .ht-edu-img-right img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}
