/*##################################################### */
/*#region CSSVariables                                     */
:root {
  --font-family: "Open Sans Normal", sans-serif;
  --font-height: 1.2;
  --font-size: 16px;
}
@media screen and (max-width: 400px) {
  :root {
    --font-size: 12px;
  }
}
:root {
  --h1fontsize: calc(var(--font-size) * 1.90);
  --h2fontsize: calc(var(--font-size) * 1.75);
  --h3fontsize: calc(var(--font-size) * 1.50);
  --h4fontsize: calc(var(--font-size) * 1.25);
  --h5fontsize: calc(var(--font-size) * 1.00);
  --h6fontsize: calc(var(--font-size) * 0.88);
  font-size: var(--font-size);
}

h1 {
  font-size: var(--h1fontsize);
}

h2 {
  font-size: var(--h2fontsize);
}

h3 {
  font-size: var(--h3fontsize);
}

h4 {
  font-size: var(--h4fontsize);
}

h5 {
  font-size: var(--h5fontsize);
}

h6 {
  font-size: var(--h6fontsize);
}

/*#endregion CSSVariables                                  */
/*##################################################### */
.document-gallery.document-gallery {
  --columns: 5;
}
.document-gallery.document-gallery.mode-single {
  --columns: 1;
}
.document-gallery.document-gallery .document-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75em 1em;
}
.document-gallery.document-gallery .document-icon-row .document-icon, .document-gallery.document-gallery .document-icon-row .document-image-icon {
  border-radius: 4px;
  padding: 10px;
  width: clamp(100px, 100% / var(--columns) - 5px, 20em);
  box-shadow: 1px 2px 4px rgba(17, 17, 17, 0.2);
  position: relative;
  max-width: unset;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-image, .document-gallery.document-gallery .document-icon-row .document-image-icon .document-image {
  position: relative;
  overflow: hidden;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-image .description, .document-gallery.document-gallery .document-icon-row .document-image-icon .document-image .description {
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  color: #f1f1f1;
  font-size: clamp(10px, 1vw, 16px);
  line-height: 1;
  opacity: 0;
  padding: 5px;
  position: absolute;
  text-align: center;
  transition: opacity 0.5s ease, translate 0.3s ease, background-color 0.8s ease;
  translate: 0 100%;
  width: 100%;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-image:hover .description, .document-gallery.document-gallery .document-icon-row .document-image-icon .document-image:hover .description {
  opacity: 1;
  translate: 0 0;
  background: rgba(0, 0, 0, 0.8);
}
.document-gallery.document-gallery .document-icon-row .document-icon {
  background-color: var(--col-fainter);
  border-radius: 4px;
  padding: 10px;
  width: clamp(100px, 100% / var(--columns) - 5px, 20em);
  box-shadow: 1px 2px 4px rgba(17, 17, 17, 0.2);
  position: relative;
  max-width: unset;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-icon-content {
  display: grid;
  gap: 5px;
  grid-template-rows: min-content 1fr;
  height: 100%;
  padding: 0 !important;
}
.document-gallery.document-gallery .document-icon-row .document-icon.plain .document-name .name {
  white-space: normal;
  word-break: break-all;
  line-break: loose;
}
.document-gallery.document-gallery .document-icon-row .document-icon:not(.single) .document-name {
  height: 100%;
  font-size: 1rem;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name {
  color: var(--col-base);
  display: grid;
  grid-template-rows: 1fr auto;
  line-height: 1;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name:has(.date) {
  grid-template-rows: auto 1fr;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name sup {
  bottom: 0 !important;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name .date {
  order: 1;
  color: #999;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name .name {
  order: 2;
  align-self: top;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name .order {
  position: absolute;
  top: 10px;
  border-radius: 50%;
  border: solid 0.2ch currentColor;
  font-weight: bold;
  font-size: 1.6rem;
  padding: 2px;
  rotate: -10deg;
  display: flex;
  height: 1.8rem;
  width: 1.8rem;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  white-space: nowrap;
  text-shadow: calc(0.15ch) calc(0ch) 0 white, calc(0.1471177921ch) calc(0.0292635483ch) 0 white, calc(0.1385819299ch) calc(0.0574025149ch) 0 white, calc(0.1247204418ch) calc(0.083335535ch) 0 white, calc(0.1060660172ch) calc(0.1060660172ch) 0 white, calc(0.083335535ch) calc(0.1247204418ch) 0 white, calc(0.0574025149ch) calc(0.1385819299ch) 0 white, calc(0.0292635483ch) calc(0.1471177921ch) 0 white, calc(0ch) calc(0.15ch) 0 white, calc(-0.0292635483ch) calc(0.1471177921ch) 0 white, calc(-0.0574025149ch) calc(0.1385819299ch) 0 white, calc(-0.083335535ch) calc(0.1247204418ch) 0 white, calc(-0.1060660172ch) calc(0.1060660172ch) 0 white, calc(-0.1247204418ch) calc(0.083335535ch) 0 white, calc(-0.1385819299ch) calc(0.0574025149ch) 0 white, calc(-0.1471177921ch) calc(0.0292635483ch) 0 white, calc(-0.15ch) calc(0ch) 0 white, calc(-0.1471177921ch) calc(-0.0292635483ch) 0 white, calc(-0.1385819299ch) calc(-0.0574025149ch) 0 white, calc(-0.1247204418ch) calc(-0.083335535ch) 0 white, calc(-0.1060660172ch) calc(-0.1060660172ch) 0 white, calc(-0.083335535ch) calc(-0.1247204418ch) 0 white, calc(-0.0574025149ch) calc(-0.1385819299ch) 0 white, calc(-0.0292635483ch) calc(-0.1471177921ch) 0 white, calc(0ch) calc(-0.15ch) 0 white, calc(0.0292635483ch) calc(-0.1471177921ch) 0 white, calc(0.0574025149ch) calc(-0.1385819299ch) 0 white, calc(0.083335535ch) calc(-0.1247204418ch) 0 white, calc(0.1060660172ch) calc(-0.1060660172ch) 0 white, calc(0.1247204418ch) calc(-0.083335535ch) 0 white, calc(0.1385819299ch) calc(-0.0574025149ch) 0 white, calc(0.1471177921ch) calc(-0.0292635483ch) 0 white;
  box-shadow: 0 0 0 0.15ch white, inset 0 0 0 0.15ch white; /* Set the inner and outer outlines */
  paint-order: stroke fill;
}
.document-gallery.document-gallery .document-icon-row .document-icon .document-name .order firstletter + text {
  font-size: 70%;
  height: 100%;
}
.document-gallery.document-gallery .document-icon-row .document-icon img {
  width: 100%;
  display: block;
}
.document-gallery.document-gallery .document-icon-row .document-icon a {
  grid-template-rows: auto;
}
.document-gallery.document-gallery .document-icon-row .document-icon a > :last-child {
  margin-bottom: auto;
}
.document-gallery.document-gallery .document-icon-row .document-image-icon {
  width: auto;
}
.document-gallery.document-gallery .document-icon-row .document-image-icon img {
  width: auto;
  height: 20em;
}
.document-gallery.document-gallery.accordion {
  margin-bottom: 20px;
}
.document-gallery.document-gallery.accordion sup {
  font-size: 75%;
}
.document-gallery.document-gallery.accordion .document-icon-row-header {
  display: flex;
}
.document-gallery.document-gallery.accordion .document-icon-row-header .year .num {
  display: inline-block;
  width: 4ch;
}
.document-gallery.document-gallery.accordion .document-icon-row-header .volume {
  font-weight: normal;
  font-style: italic;
  font-size: 80%;
  line-height: 1;
}
.document-gallery.document-gallery.accordion .document-icon-row-header sup {
  font-weight: normal;
}
.document-gallery.document-gallery.accordion .document-icon-row-content {
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 1ch;
}
.document-gallery.document-gallery.accordion .document-icon-row-content[data-mode=publications] .document-icon-row .document-icon .document-name time {
  padding-bottom: 0;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon {
  border-radius: 6px;
  width: 15%;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon.active, .document-gallery.document-gallery.accordion .document-icon-row-content .document-icon:hover {
  background-color: #FFCCCC;
  transition: background-color 0.2s;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon.active img, .document-gallery.document-gallery.accordion .document-icon-row-content .document-icon:hover img {
  scale: 1.05;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon.active .document-name, .document-gallery.document-gallery.accordion .document-icon-row-content .document-icon:hover .document-name {
  font-weight: 600;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon .document-icon-content {
  display: flex;
  flex-direction: column;
  gap: 1.5ch;
  height: 100%;
  justify-content: start;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon img {
  aspect-ratio: 8.5/11;
  border-radius: 4px;
  object-fit: cover;
  scale: 1;
  transition: scale 0.2s;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon .document-name {
  font-size: initial;
  line-height: 1.1;
  text-align: center;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon .document-name time {
  display: block;
  padding-bottom: 5px;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon .document-name .date {
  overflow: visible;
}
.document-gallery.document-gallery.accordion .document-icon-row-content .document-icon .document-name .date sup {
  position: static;
  bottom: 0;
  font-size: 80%;
}
.document-gallery.document-gallery .document-icon.url .document-name {
  grid-template-rows: auto 1fr !important;
}
.document-gallery.document-gallery .document-icon.url .name {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  align-items: center;
  align-content: center;
}
.document-gallery.document-gallery .document-icon.url .name:only-child {
  grid-row: span 2;
}
.document-gallery.document-gallery .document-icon.url .name .category {
  grid-row: 2;
  font-weight: bold;
  font-size: small;
}
.document-gallery.document-gallery .document-icon.url img {
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: top;
}
