/** Version 5.0.21: requested selector and popup layout repairs. */

/* Teaching Portfolio: the UTU section now intentionally contains only Publicum;
 * Metropolia receives one full-width authentic campus image before its text. */
.had-institution-gallery.had-institution-gallery-single{
  grid-template-columns:minmax(0,1fr)!important;
}
.had-institution-gallery.had-institution-gallery-single .had-institution-figure{
  width:100%!important;
  max-width:none!important;
}
.had-institution-gallery-metropolia{
  margin:10px 0 18px!important;
}
.had-institution-gallery-metropolia .had-institution-photo{
  width:100%!important;
  max-height:330px!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
}

/* Career & Education right-hand index: the current markup has one visible panel
 * at a time, so it must occupy the complete sidebar rather than the first row of
 * the old three-row dashboard grid. This exposes all six Education records. */
.had-experience-v502 .had-career-dashboard{
  grid-template-rows:minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.had-experience-v502 .had-career-index-lists{
  grid-template-rows:minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.had-experience-v502 .had-career-record-index:not([hidden]){
  display:grid!important;
  grid-template-rows:auto auto minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.had-experience-v502 .had-career-record-index .had-record-index-scroll{
  min-height:0!important;
  max-height:none!important;
  height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.had-experience-v502 .had-career-record-index [data-had-selector-row][hidden]{
  display:none!important;
}

/* Conference presentation popups use the same fixed-left reader as journals. */
.had-detail-drawer.is-conference-presentation-record .had-drawer-body{
  grid-template-columns:minmax(300px,390px) minmax(0,1fr)!important;
  gap:clamp(24px,3vw,44px)!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
.had-detail-drawer.is-conference-presentation-record .had-record-cover{
  position:sticky!important;
  top:0!important;
  align-self:start!important;
  width:100%!important;
  height:clamp(390px,62vh,590px)!important;
  margin:0!important;
  padding:clamp(14px,1.5vw,22px)!important;
  display:grid!important;
  place-items:center!important;
  background:#fff!important;
  overflow:hidden!important;
}
.had-detail-drawer.is-conference-presentation-record .had-record-cover img{
  position:static!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#fff!important;
  filter:none!important;
  transform:none!important;
}
.had-detail-drawer.is-conference-presentation-record .had-record-copy{
  min-width:0!important;
  min-height:0!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  padding-right:10px!important;
  scrollbar-width:thin;
  scrollbar-color:#13899a #dce8eb;
}
.had-detail-drawer.is-conference-presentation-record .had-rich-content,
.had-detail-drawer.is-conference-presentation-record .had-tag-row,
.had-detail-drawer.is-conference-presentation-record [data-had-detail-description]{
  display:none!important;
}
.had-conference-facts[hidden]{display:none!important}
.had-conference-facts{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:14px 0 18px;
}
.had-conference-facts>div{
  min-width:0;
  padding:11px 12px;
  border:1px solid #c5d8de;
  background:#eef5f7;
}
.had-conference-facts small,.had-conference-facts b{display:block}
.had-conference-facts small{
  color:#66828d;
  font:700 8px/1.25 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.09em;
}
.had-conference-facts b{
  margin-top:5px;
  color:#183f4b;
  font-size:11px;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.had-detail-drawer.is-conference-presentation-record [data-had-detail-permalink]{display:none!important}

@media(max-width:900px){
  .had-detail-drawer.is-conference-presentation-record .had-drawer-body{display:block!important;overflow:auto!important}
  .had-detail-drawer.is-conference-presentation-record .had-record-cover{position:relative!important;width:min(100%,390px)!important;height:min(520px,58vh)!important;margin:0 auto 22px!important}
  .had-detail-drawer.is-conference-presentation-record .had-record-copy{max-height:none!important;overflow:visible!important;padding-right:0!important}
}
@media(max-width:600px){
  .had-conference-facts{grid-template-columns:1fr!important}
}
.had-detail-drawer.is-conference-presentation-record [data-had-detail-abstract]{white-space:pre-line}
