/* OMU Digital Repository Home Brand + Cover - no crop stable v4 */

/* Hide old homepage image immediately to prevent flash before JS runs */
ds-themed-home-page img:not(.omu-home-cover-img),
ds-home-page img:not(.omu-home-cover-img),
.home-page img:not(.omu-home-cover-img) {
  display: none !important;
}

/* Full cover visible without cropping */
body.omu-home-page-active .omu-home-cover-shell {
  width: min(1120px, calc(100% - 72px));
  margin: 22px auto 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f9fc;
  box-shadow: 0 14px 34px rgba(9, 44, 78, 0.10);
  border: 1px solid rgba(9, 44, 78, 0.08);
}

body.omu-home-page-active .omu-home-cover-shell img {
  display: block !important;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #f7f9fc;
}

/* Header logo */
.omu-header-brand-logo {
  display: block !important;
  width: auto !important;
  max-width: 300px !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

.omu-old-home-logo-hidden {
  display: none !important;
}

@media (max-width: 992px) {
  body.omu-home-page-active .omu-home-cover-shell {
    width: calc(100% - 32px);
    margin: 18px auto 22px;
    border-radius: 16px;
  }

  .omu-header-brand-logo {
    max-width: 235px !important;
    max-height: 60px !important;
  }
}

@media (max-width: 576px) {
  body.omu-home-page-active .omu-home-cover-shell {
    width: calc(100% - 20px);
    margin: 14px auto 18px;
    border-radius: 14px;
  }

  .omu-header-brand-logo {
    max-width: 190px !important;
    max-height: 54px !important;
  }
}
