@charset "UTF-8";

/*===============================
Font
===============================*/

@font-face {
    font-family: 'Inter';
    src: url("/assets/InterVariable-884c49a1.woff2") format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/*===============================
Custom properties
===============================*/

/* Temp - Debug Containers */
/*body, section, main, div, header, footer {*/
   /*outline: 1px solid red;*/
/*}*/

:root {
    --color-white: white;
    --color-black: black;
    --color-blue: blue;
    --color-red: #eb0000;
    --color-gray: rgba(117,117,117,1.00);
    --color-gray-dark: rgba(35,35,35,1.00);
    --color-gray-darker: rgba(37,37,37,1.00);
    --color-accent: var(--color-blue);
    --columnize-gap: 2.5rem;
    /* later try to get rid of xxs, xs and l by using a global @media query to adjust for very small screens */
    --fs-xxs: .75rem;   /* 12px */
    --fs-xs: .875rem;   /* 14px */
    --fs-s: 1rem;       /* 16px */
    --fs-m: 1.125rem;   /* 18px */
    --fs-base: 1.25rem; /* 20px */
    --fs-l: 1.625rem;   /* 26px */
    --fs-xl: 1.875rem;  /* 30px */
    --body-margin: clamp(0.375rem, -0.1667rem + 2.4074vw, 2rem);
    --header-height: 50px;
}

html {
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0 var(--body-margin);
    padding: 0;
    font-size: var(--fs-base);
    font-weight: 320;
    letter-spacing: 0.01em;
}

main {
    padding-bottom: 70px;
}

/*===============================
Base and reset styles
===============================*/

*:focus-visible {
    outline-color: 2px solid var(--color-accent);
}

*:focus {
    outline: 2px solid var(--color-accent);
    border-radius: 2px;
}

svg {
    pointer-events: none;
}

fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

legend {
    padding: 0;
}

h1, h2, h3 {
    font-size: var(--fs-base);
    font-weight: 430;
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
    margin-bottom: 0.5rem;
}

/* General Settings and Typo */
/* Typo general */
b, bold, strong {
    font-weight: 430;
}

ul, ul li {
    padding-inline-start: 0;
    list-style: none;
}

figcaption {
    font-size: var(--fs-s);
    font-style: italic;
}


p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*===============================
General helpers
===============================*/

.visually-hidden:not(:focus):not(:active) {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/*===============================
Further pages – "trix-content"
===============================*/

.trix-content {
    padding-top: 50px;
    padding-bottom: 50px;
}

@media (max-width: 768px) {
    .trix-content {
        padding-bottom: 70px;
    }
    .trix-content figure {
        margin: 0;
    }
    .trix-content a {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .trix-content  a[href^="mailto:"] {
        white-space: nowrap;
        word-break: keep-all;
    }
}

.trix-content {
    width: 60%;
}

.trix-content p {
    margin-block-end: 1em;
}

@media (max-width: 1200px) {
    .trix-content {
        width: 75%;
    }
}

@media (max-width: 1024px) {
    .trix-content {
        width: 100%;
    }
}


/*===============================
Header & Nav
===============================*/

header {
    position: sticky;
    z-index: 20;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: var(--header-height);
    margin-left: calc(var(--body-margin) * -1);
    padding-block-start: 10px;
    padding-block-end: 5px;
    padding-inline: var(--body-margin);
    background: rgb(255, 255, 255);
}

.main-menu {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 20px;
}

.main-menu a,
.main-menu a:active,
.main-menu a:visited {
    color: var(--color-black);
    text-decoration: none;
}

.main-menu a:hover {
    color: var(--color-gray);
    text-decoration: none;
}

/* #site-nav: popup menu */
#site-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 50dvh;
    width: 200px;
    margin: 0;
    padding: 10px 15px 15px 15px;
    background-color: var(--color-white);
    border: 1px solid red;
}

@media screen and (max-width: 850px) {
    #site-nav {
        box-sizing: border-box;
        height: 100dvh;
        width: 100%;
        border: 0px;
    }
}

#site-nav li:first-child {
    padding-top: 4px;
    padding-bottom: 16px;
}

#site-nav li {
    padding-block: 8px;
    font-size: 18px;
}

/* popover menu button */
#menu-button {
    position: relative;
    z-index: 1000;
    background: var(--color-white);
    border: 0;
    cursor: pointer;
    margin-top: 2px;
    padding: 0;
}

.menu-toggle-open, .menu-toggle-close {
    display: none;
}

#menu-button[aria-expanded=false] > .menu-toggle-open,
#menu-button[aria-expanded=true] > .menu-toggle-close,
#menu-button[aria-expanded=true] + #site-nav {
    display: block;
}

/* language switch */
/* no need for styles inside .main-menu */

/* #header-link: when on IPG, links to objects, and reverse */
#header-link .title-mobile {
    display: none;
}

.header-title,
.header-link .title-desktop {
    align-content: center;
    padding: 0;
    margin: 0;
    font-weight: 430;
}

#header-link .title-desktop {
    text-transform: uppercase;
    display: block;
}

@media (max-width: 850px) {
   #header-link .title-mobile {
        display: block;
    }
    #header-link .title-desktop,
    #header-link .title-subline {
        display: none;
    }
    #alphabet g g path:nth-child(n + 4) {
    display: none;
  }
}

/* Details and Header Title */

/* #main-h1 == .header-title on index pages */
/* #main-h1 == .details-title on show pages */
/* .title-image only used in header */


.header-title span,
.header-link span,
.details-title span {
    display: block;
}

#main-h1 {
    width: 100%;
    max-width: 55%;
}

.header-title {
    flex: auto;
}

.details-title {
    max-width: 60%;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--fs-xl);
    font-weight: 430;
}

@media screen and (max-width: 767px) {
    .details-title {
        font-size: var(--fs-l);
    }
}

.title-superline,
.title-subline {
    font-size: var(--fs-base);
    font-weight: 320;
}

.title-superline {
    font-style: italic;
}

.header-title .title-main {
    text-transform: uppercase;
}

.header-title .title-subline {
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .title-main, 
    .title-subline {
        max-width: 94%;
    }
}

.title-image {
    padding-block-end: 5px;
}

.title-image svg {
    height: 16px;
}

/*===============================
Footer
===============================*/

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 2 * var(--body-margin));
    height: auto;
    padding-inline: var(--body-margin);
    padding-block: 8px;
    background: var(--color-white);
    font-size: var(--fs-m);
    letter-spacing: 0;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.logo {
    height: 15px;
    width: auto;
}

.footer-0 {
    display: flex;
}

.footer-1 {
    display: flex;
    align-items: center;
    /* gap: 20px;  Abstand zwischen Logo und Text */
    margin-left: 25px;
}

.footer-2 {
    align-items: center;
    margin-left: 30px;
    display: none;
}

.footer-3 {
    margin-left: auto;
    text-align: right;
}
.footer-4 {
    display: none;
    margin-left: auto;
    text-align: right;
}

.under-construction,
.under-construction:hover,
.under-construction:active {
    color: var(--color-red);
    text-decoration: none;
}

.footer-logo,
.footer-logo:hover,
.footer-logo:active {
    color: var(--color-black);
    text-decoration: none;
}

@media screen and (min-width: 1175px) {
    .footer-2 {
        display: flex;
    }
}

@media screen and (max-width: 767px) {
    .footer-1 {
        margin-left: 20px
    }
    .footer-3 {
        display: none;
    }
    .footer-4 {
        display: flex;
        letter-spacing: -0.035em;
    }
    .footer {
        font-size: var(--fs-s);
    }
}

@media screen and (max-width: 400px) {
    .footer-1 {
        margin-left: 10px
    }
    .footer-4 {
        display: flex;
        letter-spacing: -0.035em;
    }
    .footer {
        font-size: var(--fs-xs);
    }
}

@media screen and (max-width: 300px) {
    .footer-4 {
        display: none;
    }
}

/*===============================
Tables
===============================*/

/* general */

table {
    letter-spacing: 0;
    width: 100%;
}
th, td {
    padding: 9px 11px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}

.detail-page td {
    padding: 5px 11px;
}

.table-cell-numbers {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    letter-spacing: -0.02em;
}

.table-years-events tr td:nth-child(2) {
    padding-left: 0;
}

.table-years-events tr td:first-child {
    padding-right: 5px;
}

td span {
    display: block;
}

 td:first-of-type {
    padding-left: 0;
 }

 .pagination  {
    font-size: var(--fs-s);
}

.pagination form {
    display: inline-block;
}

.pagination button {
    color: var(--color-gray-dark);
    border: none;
    background: none;
    text-decoration: underline;
    cursor: pointer;
}

.pagination button:hover, .pagination button:active {
    color: var(--color-gray);
}

/* index-tables*/
#institutions-table tr {
    display: grid;
    grid-template-columns: 5fr 2fr 2fr 3fr;
}

#persons-table tr {
    display: grid;
    grid-template-columns: 3fr 3fr 3fr;
}

#object-table tr {
    display: grid;
    grid-template-columns: 7fr 3fr 80px 8fr;
}

#object-table td:nth-child(4) {
    padding-right: 0;
}

@media (max-width: 1023px) {
    #object-table td,  #institutions-table td,  #persons-table td {
        padding: 7px 9px;
        font-size: var(--fs-s);
    }

     #object-table tr td:first-child,  #institutions-table tr td:first-child,  #persons-table tr td:first-child {
        padding-left: 2px;
        font-size: var(--fs-s);
    }

    #object-table tr td:last-child,  #institutions-table tr td:last-child,  #persons-table tr td:last-child {
        padding-right: 2px;
    }

    #object-table tr td:nth-child(4) {
        display: none;
    }

    #object-table tr {
        grid-template-columns: 13fr 7fr 70px;
    }

    #object-table tr td:nth-child(3),  #institutions-table tr td:nth-child(3), #persons-table tr td:nth-child(3) {
        text-align: right;
    }

    #institutions-table tr td:nth-child(4) {
    display: none;
    }

    #institutions-table tr {
    grid-template-columns: 4fr 3fr 3fr;
    }
}


@media (max-width: 668px) {

      #object-table tr td:nth-child(3),  #institutions-table tr td:nth-child(2),  #persons-table tr td:nth-child(2) {
        padding-right: 2px;
    }

    #object-table tr td:nth-child(2), #institutions-table tr td:nth-child(3),  #persons-table tr td:nth-child(3)  {
        display: none;
    }
    #object-table tr {
        grid-template-columns: 1fr 70px;
    }

    #institutions-table tr, #persons-table tr {
    grid-template-columns: 4fr 3fr;
    }

     #institutions-table tr td:nth-child(2) {
        text-align: right;
    }
}

/* object-table list of attached exhibitions/events*/
#object-table .exhibitions  {
    margin: 0;
}

#object-table .exhibitions li {
    display: none;
    margin-block-end: 3px;
}

#object-table .exhibitions li:nth-child(-n+10) {
    display: block;
}

#object-table .exhibitions li:nth-child(10):after {
    content: '\a' '...';
    white-space: pre;
    color: var(--color-gray-darker);
}

/* objects-table (is different from object-table - should probably renamed */
#objects-table td:nth-child(3) {
    text-align: right;
}

/*===============================
Search

Search with filter (objects index)
Search (reduced, e.g. persons index)
Filter (ipg details)
===============================*/

/* General styles buttons, inputs and svgs */

select {
    font-family: Inter;
    font-size: var(--fs-s);
    font-weight: 320;
    border: 0px;
    background-color: var(--color-white);
    color: var(--color-black);
}

.button-search--submit,
.sort {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* section#search */
/* search#search-box */

#search {
    padding-block: 1rem;
    background: var(--color-white);
}

input[name=q] {
    width: 100%;
    font-size: var(--fs-base);
    text-indent: 10px;
    padding: 12px 50px 12px 16px;
    box-shadow: rgba(207, 207, 207, 0.75) 0px 0px 14px 5px inset;
    border-radius: 42px;
    border-color: transparent;
}

@media (max-width: 823px) {
    input[name=q] {
        padding: 7px 50px 7px 16px;
        box-shadow: rgba(207, 207, 207, 0.75) 0px 0px 10px 5px inset;
        font-size: var(--fs-s);
        text-indent: 0px;
    }
}

@media (min-width: 824px) {
    input[name=q] {
        /* use fixed width for easier absolute positioning the submit button in reduced version */
        /* 50rem = 800px */
        width: 50rem; 
    }
}

.button-search--submit svg {
    width: 32px;
    height: 28px;
    fill: #666;
}

@media (max-width: 823px) {
    .button-search--submit svg {
        width: 27px;
        height: 24px;
    }
}

/*===============================
Startpage / objects index: 
reduced search
===============================*/

.search-box--reduced {
    position: relative;
}
.search-box--reduced .button-search--submit {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 823px) {
    .search-box--reduced .button-search--submit {
        right: 12px;
    }
}

@media (min-width: 824px) {
    
    .search-box--reduced .button-search--submit {
        left: 752px;
    }
}

#startpage #search, 
#objects-index #search { /* Fixed search section */
    position: sticky;
    /* header height plus header padding */
    top: calc(var(--header-height) + 15px);
    left: 0;
    width: 100%;
    margin-left: calc(var(--body-margin) * -1);
    padding-inline: var(--body-margin);
    background-color: var(--color-white);
    z-index: 18;
}

#objects-index input[name=q] {
    padding-right: 20px;
}

/*===============================
Filterbar
===============================*/

/* #filter: object index */
/* .filter: detail pages */

#filter, .filter {
    font-size:var(--fs-m);
    font-weight: 430;
}


#filter {
    display: flex;
    column-gap: 60px;
    row-gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
    width: 97vw;
    margin: 0;
    background-color: var(--color-white);
    padding-bottom: 6px;
    padding-top: 8px;
}

.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 1rem;
    row-gap: 0.5rem;
}

@media (max-width: 865px) {
    #filter {
        font-size: var(--fs-s);
    }
}


/* ================================================= */
/* group layouts */


.group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.group-inputs {
    display: flex;
    flex-wrap: wrap;
    column-gap: 60px;
    row-gap: 8px;
}

.filter-actions {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    column-gap: 20px;
    row-gap: 8px;
}

/* reorder onjects-index input groups */
@media (max-width: 1475px) {

    #objects-index .group-right {
        order: 1;
        flex-basis: 100%;
    }
    #objects-index .group-left, #objects-index .group-center {
        order: 2;
    }
    .filter-actions {
        flex-direction: column;
        align-items: flex-end;
    }
    .group-filter-reset {
        order: 1;
    }
}

@media (max-width: 820px) {
    #objects-index .group-right {
        order: 1;
    }
    #objects-index .group-left {
        order: 2;
    }
    #objects-index .group-center {
        order: 3;
    }
}

@media (max-width: 650px) {
    #filter,
    .filter {
        flex-wrap: wrap;
        position: relative;
    }
    #objects-index .group-right {
        flex-basis: auto;
        width: 90%;
    }
    /* needs 90% width on both the group and the select */
    .group-right select {
        width: 90%;
    }
    .filter-actions {
        flex-shrink: 1;
        text-align: right;
    }
    .group-arrow {
        position: absolute;
        top: 8px;
        right: 0;
    }
}
@media (max-width: 375px) {
    #objects-index #filter {
        display: none;
    }
}

/* search filter fieldset: .group--year
due to implementation bug in browsers, float is the only way to layout a fieldset into one line
flex-shrink: 0 prevents accidental line break
*/
.group.group--year {
    clear: left;
    display: block;
    flex-shrink: 0;
}

.group--year > * {
    float: left;
}
.group--year > *:not(:first-child) {
    margin-left: 10px;
}

/* ================================================= */
/* action buttons */

.group-filter-reset a,
.group-filter-reset a:hover,
.group-filter-reset a:active,
.group-filter-reset a:visited {
    color: var(--color-red);
    letter-spacing: -0.025rem;
    text-decoration: none;
}

/* ================================================= */
/* filter inputs */
/* year from to */
input[inputmode="numeric"] {
    width: 50px;
    height: fit-content;
    font-size: var(--fs-s);
    font-family: 'Inter';
    text-align: center;
    border: none;
    border-bottom: 1px solid #333;
    border-radius: 0;
    background: transparent;
    padding: 2px 4px;
}

@media (max-width: 520px) {
    #objects-index select {
        font-size: var(--fs-xs);
    }
}

.holding-label {
    text-transform: uppercase;
}

/*===============================
Rolodex (the letters register)
===============================*/

.rolodex-letters ul li, .rolodex-leads ul li, .rolodex-ipgs ul li {
    display: inline-block;
    margin: 0.2rem 0.5rem;
}

@media(max-width: 767px) {
.rolodex-ipgs ul li {
    display: block;
    margin: 0.6rem 0.2rem;
}
}

/*===============================
Details page
columnized content
===============================*/

/* Changed the padding of the picture here, did not delete, as i do not exactly know why this was here anyway */
.details-section figure {
    margin: 0;
    /*padding: 3rem 0 0 0;*/
    padding: 0 0 0 0;
}

.details-section  {
    margin-top: 1rem;
}

.details-section:first-of-type {
    margin-top: 0;
}

#basics span {
    display: block;
}

@media screen and (max-width: 1023px) {

    #object-detail section, 
    #object-detail #basics, 
    #object-detail #exhibitions {
        max-width: 100%;
    }

    #basics {
        max-width: 75%;
    }
}
/*===============================
Columnize
===============================*/

/* Mobile / default: one column / gap is set to 0 here to avoid producing "empty" spaces */
[data-controller=columnize] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Desktop: two independent flex columns */
[data-controller=columnize].is-desktop {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--columnize-gap);
}

[data-columnize-target=left],
[data-columnize-target=right] {
   display: flex;
    flex-direction: column;
    flex: 1 1 0;
    /* Gap here not neccessary, colum,ns gap is created by parent container */
    /*gap: var(--columnize-gap);*/
    min-width: 0;
}

/* by adding an extra class for all possible elements which could be affected by this special layout feature, we could save some lines hoere*/
@media(min-width: 1024px) {
    [data-columnize-target="right"] #picture,
    [data-columnize-target="right"] #address,
    [data-columnize-target="right"] #links,
    [data-columnize-target="right"] #references,
    [data-columnize-target="right"] #external-resources,
    [data-columnize-target="right"] #memberships {
        padding-left: 4rem;
    }
}

/*===============================
Details pages: link back to index page
===============================*/

[data-x-button-target=link] {
    position: fixed;
    top: 40px;
    right: 37px;
    z-index: 20;
     width: 48px;
    height: 48px;
    background: var(--color-white);
}

@media screen and (max-width: 1023px) {
    [data-x-button-target=link] {
        right: 15px;
    }
}

@media screen and (max-width: 767px) {
    [data-x-button-target=link] {
        right: 5px;
    }
    [data-x-button-target=link] svg {
        width: 32px;
        height: 32px;
    }
}

/*===============================
Object page
===============================*/

/* css für js sticky/scroll */
.sticky-section {
    position: sticky;
    z-index: 4;
    top: calc(var(--header-height) + 15px); /* Abstand  von oben */
    min-width: 100%;
    background: var(--color-white);
    padding-top: 0px;
    padding-bottom: 8px;
}

/* h1 Standardzustand */
.sticky-title {
    color: var(--color-black);
    text-decoration: none;
    cursor: default;
    transition: all 0.3s ease;
}

/* Zustand h1 sticky*/
.sticky-section.is-sticky .sticky-title {
    color: var(--color-blue);
    text-decoration: underline;
    cursor: pointer;
}

#object-detail .sticky-section p {
    margin-top: 0;
}

@media (max-width: 768px) {
    .sticky-section {
        position: unset;
         z-index: 10;
    }
}
/* ENDE sticky/scroll/js */


.detail-page main {
    padding-left: 45px;
    padding-right: 45px;
}

@media screen and (max-width: 1023px) {
    .detail-page main {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 767px) {
    .detail-page main {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.detail-page #objects hgroup p {
    margin-block-start: 0.2rem;

}
.detail-page #objects h2,
.detail-page #exhibitions h2 {
    margin-block-end: 0.35rem;
}

#object-detail section {
    max-width: 50%;
    padding: 0 0 0 0;
    margin-top: 1rem;
    border: 0px;
}

#object-detail #basics {
    max-width: 30%;
    margin-top: 1.8rem;
}

#object-detail #exhibitions {
    margin-block-start: 1.5rem;
    max-width: 75%;
}

#object-detail #modified {
    margin-top: 1.5rem;
}

#object-detail #basics ul {
    margin-block-start: 5px;
    margin-block-end: 5px;
    padding-inline-start: 0;
}

#object-detail #contains ul, #object-detail #contained-in ul {
    margin-block-start: 6px;
    margin-block-end: 5px;
    padding-inline-start: 0;
}

#object-detail #contains ul li, #object-detail #contained-in ul li {
    margin-block-end: 4px;
}

#object-detail #exhibitions ul li {
    margin-block-end: 13px;
}

#object-detail #exhibitions ul {
    margin-block-start: 13px;
}

#object-detail section p {
    margin-block-start: 0;
    margin-block-end: 5px;
    line-height: 1.3;
    z-index: 21;
}

#object-detail #modified p {
    font-size: var(--fs-s);
}

/* BILDER */
#object-detail figure {
    display: inline-block;
}

#object-detail figure img {
    max-width: 100%;
    height: auto;
}

#object-detail figcaption {
    max-width: 210px;
}

#object-detail figcaption .filetype {
    white-space: nowrap;
}

#object-detail figure svg {
    width: 19px;
    height: auto;
    vertical-align: -4px;
    padding-left: 2px;
}

#object-detail a:active figure svg, #object-detail a figure svg, #object-detail a:hover figure svg {
    fill: blue;
}

#object-detail a:visited figure svg {
    fill: #551A8B;
}

/* top */
#object-detail #media-files-top {
    position: relative;
    float: right;
    margin-top: 0px;
    /*padding-left: 5%;*/
    padding-bottom: 30px;
    background: var(--color-white);
    max-width: 35%;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

#media-files-top figure {
    padding: 0;
    margin: 0;
    flex: 0 1 200px;
}

/* ein figure Element im Container */
#object-detail #media-files-top:has(> a):not(:has(> a + a)) {
    justify-content: center;
}

/* zwei figure Elemente im Container */
#object-detail #media-files-top:has(> a + a):not(:has(> a + a + a)) {
    justify-content: center;
}

/* drei oder mehr figure Elemente im Container */
#object-detail #media-files-top:has(> a + a + a) {
    justify-content: flex-end;
}


@media screen and (max-width: 1023px) {
    #object-detail #media-files-top {
        display: none;
    }
}

/* bottom */
#object-detail #media-files-bottom {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    float: none;
    gap: 20px;
    padding-top: 1rem;
    padding-bottom: .75rem;
    justify-content: space-between;
}

#media-files-bottom figure {
    padding: 0;
    margin: 0;
}

#object-detail #media-files-bottom figure {
    margin-left: 0;
}

@media screen and (min-width: 1024px) {
    #object-detail #media-files-bottom {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    #object-detail #media-files-bottom figcaption {
        max-width: 55%;
    }
}

/* Figures in overlay on object-detail-page*/
dialog {
    position: fixed;
    border: 1px solid lightgrey;
    padding: 0.5rem;
}

button.dialog-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    padding: 0;
    z-index: 9; /* made z-index higher here */
    background: none;
    border: none;
    cursor: pointer;
}

button.dialog-close svg {
    height: 1rem;
    width: 1rem;
}

dialog figure.image-medium {
    margin: 0;
}

/* position image-navigation */ 
turbo-frame#modal {
  display: block;
  position: relative;
}

.image-navigation {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.3rem;
}

.image-medium figcaption {
  padding-right: 70px; /* room for nav arrows */
}


/*===============================
Temp Marquee Startpage
===============================*/

.under-construction-container {
    position: fixed;
    top: 48vh;
    left: var(--body-margin);
    width: 97%;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 0px;
    margin-right: 0px;
    padding-right: 0px;
}

.scrolling {
    animation: uc 25s linear infinite;
    -moz-animation: uc 25s linear infinite;
    -webkit-animation: uc 25s linear infinite;
    display: inline-block;
    font-size: 40px;
    color: var(--color-red);
    letter-spacing: 2px;
}

.mqcss {
    padding-right: 180px;
    padding-left: 20px;
}

@-moz-keyframes uc {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@-webkit-keyframes uc {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes uc {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/*===============================
Scroll to top Button
===============================*/

#scroll-to-top {
    position: fixed;
    left: 50%;
    bottom: 13px;
    transform: translateX(-50%);

    width: 50px;
    height: 50px;
    border-radius: 50%;

    border: 1px solid black;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 999;
}

/* effect when active */
.scroll-to-top:active {
    transform: translateX(-50%) scale(0.96);
}

/* visible */
#scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

/* SVG */
#scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* show only on mobile/tablet */
@media (min-width: 769px) {
    #scroll-to-top {
        display: none;
    }
}

/*===============================
Skiplink
===============================*/

.skiplink-container {
    position: relative;
}

section[id],
.scroll-mt {
    scroll-margin-top: 110px;
}

.skiplink {
    padding: 0.25rem 0.5rem;
    background-color: var(--color-white);
    color: var(--color-black);
    font-size: 0.9em;
    text-decoration: none;
}

.skiplink:focus-visible {
    position: absolute;
    top: 0;
    left: 0;
}

/*===============================
Submission form 
===============================*/
/* moved that to the end, as i do not see it on the website */ 

#submission li.input:has(+ .example) {
    margin-bottom: 0;
}

#submission details p {
    margin: 1rem 0;
}

#submission .inline-hints {
    font-size: smaller;
}

#submission input[type=submit] {
    margin-top: 1rem;
    padding: 0.5rem 4rem;
    font-weight: 400;
}

#submission .footnote {
    margin-top: 4rem;
    font-size: smaller;
}
