.site-single-page #header {
  justify-content: flex-start;
}

.site-single-page #header h1 {
  padding-left: 0.9em;
}

.publication-wrapper {
  background: #ffffff;
  padding: 2em;
  border: 1px solid rgba(160, 160, 160, 0.3);
  margin: 0 0 3em 0;
}

.content-container {
  position: relative;
  margin-bottom: 4.35em;
}

.content-container::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin: 1em 0;
  background-color: rgba(188, 170, 153, 0.5);
}

.content-right {
  position: relative;
  z-index: 1;
}

.abstract-text {
  max-height: 3.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.6s ease;
}

.abstract-text.expanded {
  max-height: 30em;
  white-space: normal;
}

.expand-btn {
  position: relative;
  display: block;
  float: right;
  box-shadow: none;
  font-size: 0.65em;
}

.custom-bold {
  color: #975a79;
  font-weight: 600;
}

.remark {
  display: flex;
  max-width: 100%;
  margin-top: -1.5em;
  margin-right: 1em;
  margin-bottom: 1.5em;
  overflow: hidden;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-logo {
  display: block;
  width: 2.75em;
  height: 2.75em;
  margin: 0 0 0 0.75em;
  object-fit: contain;
  flex: 0 0 auto;
}

.biography {
  max-width: 40em;
  margin: 0 auto;
}

::selection {
  color: #504050;
  background-color: #bcaa99;
}

.publication-links {
  font-size: 1.3em;
}

.publication-teaser {
  position: relative;
  z-index: 10;
  display: block;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

.publication-teaser img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-teaser__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.publication-teaser:hover .publication-teaser__overlay,
.publication-teaser:focus-visible .publication-teaser__overlay {
  opacity: 1;
}

.publication-teaser__play {
  display: flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #111;
  font-size: 28px;
  line-height: 1;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.demo-modal.is-open {
  display: block;
}

.demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.demo-modal__dialog {
  position: relative;
  width: min(900px, calc(100vw - 40px));
  height: min(860px, calc(100vh - 40px));
  margin: 20px auto;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.demo-modal__header {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.demo-modal__header h3 {
  margin: 0;
  font-size: 1rem;
}

.demo-modal__close {
  min-width: 0;
  height: 36px;
  padding: 0 0.85em;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.demo-modal__close:hover,
.demo-modal__close:focus-visible {
  color: #975a79;
}

.demo-modal__body {
  height: calc(100% - 56px);
}

.demo-modal__body iframe {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

@media screen and (max-width: 736px) {
  .site-single-page #header h1 {
    padding-left: 0.75em;
  }

  .header-logo {
    width: 2.35em;
    height: 2.35em;
    margin-left: 0.5em;
  }
}
