@import "dropdown-css.css";
@import "../scripts/fore/fore.css";
@import "fore-custom.css";

:root {
    --ratio: 1.5;
    --s-5: calc(var(--s-4) / var(--ratio));
    --s-4: calc(var(--s-3) / var(--ratio));
    --s-3: calc(var(--s-2) / var(--ratio));
    --s-2: calc(var(--s-1) / var(--ratio));
    --s-1: calc(var(--s0) / var(--ratio));
    --s0: 1rem;
    --s1: calc(var(--s0) * var(--ratio));
    --s2: calc(var(--s1) * var(--ratio));
    --s3: calc(var(--s2) * var(--ratio));
    --s4: calc(var(--s3) * var(--ratio));
    --s5: calc(var(--s4) * var(--ratio));

    --gf-primary-color: #007A53; /* placeName, places box homepage */
    --gf-color-highlight: #DB6B30; /* personGrp */

    --gf-journey-color-1: #ADDC91;
    --gf-journey-color-2: #47A23F;
    --gf-journey-color-3: #007A53;
    --gf-journey-color-4: #003E51;
    --gf-journey-color-5: #00629B;
    --gf-journey-color-6: #00A3E0;
    --gf-journey-color-7: #9BCBEB;

    --gf-black:        black;
    --gf-footer-color: #303030;
    --gf-dark-gray:    #414141;
    --gf-gray-3:       #8D8D8D;
    --gf-light-gray:   #A7A7A7;
    --gf-lighter-gray: #F2F4F0;

    /* font-sizes */
    --gf-font-size-base: 1.125rem; /* 18px */
    --gf-font-size-slightly-smaller: 0.9375rem; /* 15px */
    --gf-font-size-small: 0.875rem; /* 14px */
    --gf-font-size-smallest: .75em; /* 13px */

    /* font-weights */
    --gf-font-weight-normal: 300;
    --gf-font-weight-medium: 600;
    --gf-font-weight-bold: 900;

    --gf-max-text-width: 65rem;
    --gf-height-with-toolbar: calc(100vh - 128px);
    --gf-header-height: 5.5rem;
    --gf-footer-height: 4.5rem;

    --gf-section-spacing: 6rem;
    --large-margin: 6.25rem;

    --pb-link-color: var(--gf-black);
    --pb-color-inverse: #F0F0F0;
    --pb-color-primary: #303030;
    --pb-color-lighter: var(--gf-dark-gray);
    --pb-color-focus: #f6a623;
    --pb-menubar-background-color: #fff;
    --pb-lang-label-color: var(--gf-black);
    --pb-menubar-color: var(--gf-dark-gray);
    --pb-color-focus: var(--gf-color-highlight);
    --pb-toolbar-background-color: var(--pb-color-inverse);
    --pb-toolbar-color: var(--pb-color-primary);
    --pb-lang-input-color: var(--pb-color-primary);
    --jinn-lightbox-bg:#000;
    --jinn-caption-bg:#000;
    --jinn-caption-color:#fff;
    --jinn-title-bg:#000;
    --jinn-title-color:#fff;

    --pb-base-font-family: 'DINNextforGFW05', sans-serif;
    --pb-base-line-height: 1.42857143;
    --pb-base-font-weight: var(--gf-font-weight-normal);
    --pb-base-font: var(--pb-base-font-weight) var(--pb-base-font-size)/var(--pb-base-line-height) var(--pb-base-font-family);

    --pb-heading-font-family: var(--pb-base-font-family);
    --pb-heading-font-weight: var(--gf-font-weight-bold);

    --pb-serif-font-family: 'DINNextforGFW05', serif;

    --pb-content-font-family: var(--pb-base-font-family);
    --pb-content-font-weight: var(--gf-font-weight-normal);
     
    --pb-footnote-font-size: var(--gf-font-size-smallest);
    --pb-footnote-font-family: var(--pb-content-font-family);

    --pb-link-font-family: var(--pb-base-font-family);
    --pb-logo-image-width: 240px;
    
    --pb-popover-persistent: true;
    --pb-popover-touch: true;


    --jinn-lightbox-image-max-height: calc(80vh - 128px);
    --jinn-lightbox-z-index: 1500;
}

html {
    font-size: var(--pb-base-font-size);
}

@font-face {
    font-family: 'DINNextforGFW05';
    src:
    url('../fonts/DINNextforGFW05-Bold.woff2') format('woff2'),
    url('../fonts/DINNextforGFW05-Bold.woff') format('woff');
    /* Legacy iOS */
    font-style: bold;
    font-weight: 900;
    font-display: swap;
}
@font-face {
    font-family: 'DINNextforGFW05';
    src:
    url('../fonts/DINNextforGFW05-Md.woff2') format('woff2'),
    url('../fonts/DINNextforGFW05-Md.woff') format('woff');
    /* Legacy iOS */
    font-style: bold;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'DINNextforGFW05';
    src:
    url('../fonts/DINNextforGFW05-Regular.woff2') format('woff2'),
    url('../fonts/DINNextforGFW05-Regular.woff') format('woff');
    /* Legacy iOS */
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'GlyphaforGFW05';
    src:
    url('../fonts/GlyphaforGFW05-Bold.woff2') format('woff2'),
    url('../fonts/GlyphaforGFW05-Bold.woff') format('woff');
    /* Legacy iOS */
    font-style: bold;
    font-weight: 900;
    font-display: swap;
}

pb-page[unresolved]~.splash {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 300ms;
}

.splash {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    visibility: hidden;
    opacity: 0;
    background-color: #ffffff;
    background-position: center center;
    background-size: var(--pb-splash-image-size);
    background-repeat: no-repeat;
    transition: visibility 0s linear 300ms, opacity 300ms;
}

*:focus {
    outline: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pb-heading-font-family);
    font-weight: var(--pb-heading-font-weight);
    line-height: var(--pb-heading-line-height);
}

/* gf specifics */

.splash {
    background-image: url("../images/Johann_Conrad_Fischer-transp.gif");
}


body {
    --pb-base-font-size: var(--gf-font-size-base);
    --pb-content-font-size: var(--gf-font-size-base);       
    margin: var(--gf-header-height) 0 0 0;
    padding: 0;
    hyphens: auto;
}

.center-l {
    box-sizing: content-box;
    max-width: 78rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--s0);
    padding-right: var(--s0);
}

main {
    margin-top: 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
    min-height: calc(100vh - 21.75rem);
}

p {
    font-size: var(--pb-base-font-size);
    font-family: var(--pb-content-font-family);
    color: var(--gf-dark-gray);
}

li {
    font-size: var(--pb-base-font-size);
    font-family: var(--pb-content-font-family);
    color: var(--gf-dark-gray);
}

a,
a:link,
a:visited,
a:hover {
    color: var(--gf-primary-color);
    text-decoration: none;
    font-size: var(--pb-base-font-size);
    font-family: var(--pb-content-font-family);
}

fieldset {
    border: none;
    padding: 0;
    margin-top: var(--s0);
    margin-bottom: var(--s0);
}

fieldset label {
    color: var(--gf-black);
    font-size: var(--gf-font-size-small);
    font-family: var(--pb-content-font-family);
    display: block;
}

.desktop:last-child{
    justify-self: end;
    flex: 2;
}

.mobile {
    width:100%;
    display: flex;
    justify-content: end;
}

.mobile-menu [icon="close"]{
    display: none;
}
.mobile-menu[open] [icon='menu']{
    display: none;
}
.mobile-menu[open] [icon="close"]{
    display: block;
}
[icon="menu"], [icon="close"]{
    align-self: center;
    justify-self: end;
    cursor:pointer;
    position: absolute;
    right:1rem;
    top:2rem;
    z-index: 10;
}
[icon="menu"]:hover,
[icon="close"]:hover
{
    background:#ddd;
    /*
    transform:scale(1.5);
    transition: 0.4s;
    */
}

.mobile-menu summary{
    list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-menu section{
    position: fixed;
    right: 0;
    top:0   ;
    width:16rem;
    height:100vh;
    background: white;
    border-left:thin solid #ddd;
    z-index:5;
    padding-left:1rem;
}
.mobile-menu header{
    height:5.5rem;
    border-bottom: thin solid #ddd;
    font-size:2rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
    color:#554;
}
.mobile-menu section div{
    overflow:auto;
    height:calc(100% - 2.5rem);
}
.mobile-menu li{
    list-style: none;
    padding: 0.125em 0;
}
.menubar .mobile-menu .lang-selector{
    height: auto;
    width:auto;
    justify-content: left;
    margin:0;
    align-items: center;
    gap:0.5em;
    margin-bottom: 1em;
}

.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1500; /* elevate over map */
    background-color: var(--pb-menubar-background-color);
    border:thin solid lightgray;
}

.menubar .menubar-left {
    margin-left: var(--s0);
    margin-right: var(--s0);
}

.menubar .lang-selector {
    margin-left: 1rem;
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 4rem;
    color: var(--gf-black);
}

.menubar .lang-selector a,
.menubar .lang-selector a:link,
.menubar .lang-selector a:visited,
.menubar .lang-selector a:active {
    margin-left: 0;
    margin-right: 0;
}

.menubar .lang-selector a.active {
    color: var(--gf-dark-gray);
}

.menubar {
    display: flex;
    height: var(--gf-header-height);
    justify-content: start;
    background-color: var(--pb-menubar-background-color);
    color: var(--pb-menubar-color);
    font-size: var(--pb-base-font-size);
    font-family: var(--pb-content-font-family);
    --pb-search-suggestions-color: var(--pb-menubar-color);
    --pb-search-suggestions-background: var(--pb-menubar-background-color);
}

.menubar a,
.menubar a:link,
.menubar a:hover {
    text-decoration: none;
    font-size: var(--pb-base-font-size);
    color: var(--gf-black);
    align-self: center;
    margin-left: var(--s-2);
    margin-right: var(--s-2);
    white-space: nowrap;
}
.menubar a:focus{
    text-decoration: underline;
}

.menubar .dropdown-menu a{
    margin:0;
}
.menubar .dropdown-menu a:hover{
    background: #ddd;
}

.menubar .dropdown-menu {
    font-size: var(--pb-base-font-size);
    color: var(--gf-black);
    margin-left: var(--s-2);
    margin-right: var(--s-2);
}

.menubar details a {
    border-bottom: thin lightgray solid;
    margin: auto .25rem;
    display: block;
}

.menubar details.mobile-menu a,
.menubar details.mobile-menu p{
    font-size: 1.4rem;
    line-height: 1.5;
}
.menubar details.mobile-menu p{
    border-bottom: thin solid #ddd;
}
.menubar details.mobile-menu a{
    border:none;
    margin: 0;
}
.menubar details.mobile-menu a:hover{
    text-decoration: underline;
}

.menu-right.dropdown-menu{
    justify-content: end;
    flex-grow: 3;
}

.breadcrumbs {
    box-sizing: content-box;
    height: 1rem;
    font-size: var(--gf-font-size-smallest);
    color: var(--gf-gray-3);
    font-family: var(--pb-base-font-family);
    padding-top: .25rem;
}
.breadcrumbs a,
.breadcrumbs a:link,
.breadcrumbs a:hover,
.breadcrumbs a:visited,
.breadcrumbs a:active {
    font-size: inherit;
    color: var(--gf-gray-3);
    font-family: var(--pb-base-font-family);
}
.breadcrumbs a pb-view {
    display: inline-block;
    margin-top: 0;
    margin-bottom: 0;
    font-size: inherit;
}

.static article {
    max-width: 80ch;
    justify-self: start;
}

.gallery-select {
    margin-block-end: var(--s1);
    display:flex;
    justify-content: flex-start;
    gap: 1vw;
}

.gallery-select .gallery-selector {
    box-sizing: content-box;
    font-weight: var(--gf-font-weight-normal);
    font-size: var(--pb-base-font-size);
    color: var(--gf-lighter-gray);
    padding: .4rem .6rem .3rem;
    border-radius: .2rem;
    display: inline-block;
    background-color: var(--gf-lighter-gray);
    color: var(--gf-black);
}

.gallery-select .gallery-selector__selected {
    color: white;
    text-shadow: 0 0 1px rgba(10, 10, 10, 0.6);
}

.journeys h1 {
    margin-top: 0;
}

.journey {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
}

.journey .icon {
    font-size: var(--gf-font-size-base);
}

.journey a,
.journey a:link,
.journey a:hover,
.journey a:visited,
.journey a:active
{
    color: var(--gf-black);
    background-color: var(--gf-lighter-gray);
    font-size: var(--gf-font-size-base);
    padding: .5rem 1rem;
}

.register-list {
    display: grid;
    --pb-categorized-list-columns: 1;
}

.register-list iron-icon {
    --iron-icon-height: 22px;
    --iron-icon-fill-color: var(--gf-light-gray);
    --iron-icon-stroke-color: transparent;
    /* float:left; */
}

.register-list pb-custom-form {
    justify-self: start;
    width: 100%;
}

.register {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 5rem;
    /* grid-template-columns: 1fr 30vw; */
    /* width: 100vw; */

}

.register figure {
    margin:0;
    position: relative;
    max-width: 400px;
    max-height: 250px;
}
.register figure figcaption {
    position:absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%);
    z-index: 1;
    color: white;
    font-size: 2rem;
    font-weight: var(--gf-font-weight-bold);
    font-family: var(--pb-base-font-family);
}

.journey-metadata pb-leaflet-map {
    margin-top: 5rem;
    width: 100%;
    height: 50vh;
}

[slot=controls] {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

pb-split-list {
    min-height: 50vh;
}

pb-split-list::part(items),
pb-split-list::part(category),
pb-split-list::part(active-category) {
    font-family: var(--pb-base-font-family);
}

/* Q: how to narrow space between header items?
pb-split-list::part(category),
pb-split-list::part(active-category) {
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 1rem;
    background: green;
} */

pb-split-list::part(category) {
    color: var(--gf-gray-3);
}

pb-split-list::part(active-category) {
    color: var(--gf-black);
}

pb-split-list::part(items) {
    margin-top: 1em;
}

.itemList,
.personList,
.orgList,
pb-split-list .place {
    width: 100%;
    white-space: nowrap;
}

.register__places pb-leaflet-map{
    height: 70vh;
    /* position: fixed;
    right: 1vw;
    width: 30vw; */
}
.detail-place pb-leaflet-map{
    height: 30vh;
    width: 100%;
}

.toc-title {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.toc {
    --pb-link-color: var(--gf-black);
}

.toc li {
    margin-bottom: 0;
}

.toc li > pb-link {
    margin: 0;
    padding-left: 0;
}

.toc h3 {
    font-weight: bold;
}

.detail-journey {
    --pb-view-max-width: 40rem;
}

.detail-journey {
    position: relative;
    display: grid;
    grid-template-columns: 4fr 2fr;
    column-gap: 5.125rem;
}

.detail-journey #toc ul {
    list-style: none;
    margin-block-start: 0;
    margin-inline-start: 0;
    padding-inline-start: 0;
}

.detail-journey #toc ul a,
.detail-journey #toc ul a:link,
.detail-journey #toc ul a:visited,
.detail-journey #toc ul a:active {
    font-size: var(--gf-font-size-slightly-smaller);
}

.detail-journey pb-view {
    margin: 0;
}

.detail-journey .text-view {
    grid-column: 2;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: calc(100vh - 21.25rem);
}

.detail-journey .text-view #view1 {
    overflow: auto;
}

.detail-journey .text-view #view1::part(content) {
    hyphens: auto;
    margin-right: 100px;
}


.detail-journey .text-view #view1::part(footnotes) {
    font-size: var(--pb-footnote-font-size);
    font-family: var(--pb-content-font-family);
}

.detail-journey .journey-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-family: var(--pb-heading-font-family);
    color: var(--gf-black);
}

.detail-journey .journey-navigation paper-icon-button {
    padding: 0;
    width: var(--s1);
}

.detail-journey .journey-navigation pb-navigation[disabled] {
    display: inline-block;
    color: var(--gf-light-gray);
    --iron-icon-fill-color: var(--gf-light-gray);
}

.detail-journey .journey-metadata {
    position: sticky;
    top: calc(var(--s3) + var(--gf-header-height));
}

#wrapper ::slotted([slot="header"]){
    z-index:0;
}

/* Image gallery */
.gallery {
    margin: 0 auto 0 auto;
}
.gallery .journey-list {
    display: flex;
}
.image-gallery {
    column-width: 9rem;
    column-gap: 0.5rem;
    text-align: center;
}

.image-gallery::after {
    content: "";
    flex: auto;
}

.image-item {
    /*height: 8rem;*/
}

.image-item jinn-lightbox {
    display: block;
    height: 100%;
}

.image-item jinn-lightbox img {
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    /*display: none;*/
}
.image-item.showImage img{
    display: inline-block;
}
.image-item pb-popover {
    display: block;
}

.popover-grid {
    display: flex;
    column-gap: 10px;
    align-items: center;
    max-width: 40ch;
    grid-template-rows: 100%;
}

.popover-grid img {
    display: block;
    height: fit-content;
    width: fit-content;
    cursor: pointer;
}

.homepage section {
    width:100%;
    margin:var(--gf-section-spacing) 0;
}

.homepage .highlight,
.box,
.box a,
.box a:link,
.box a:visited,
.homepage section a,
.homepage section a:link,
.homepage section a:visited {
    color:white;
    text-decoration: none;
}

#hero {
    color: var(--gf-primary-color);
    height: 20rem;
    background-color:rgba(219, 211, 190,.5);
    margin:0;
    display: flex;
    flex-direction: row;
    align-items: stretch;

}
#hero .center-l {
    display: flex;
    align-items: end;
}

#hero div {
    width: 100%;
    background: url("../images/title-image.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 20rem;
    filter: contrast(1.2) sepia(.1);
}

#hero h1 {
    width: 35rem;
    grid-area: b;
    font-size: 3.45rem;
    font-weight: 900;
}

.homepage h2 {
    font-size: 2rem;
}

.row:last-child {
    margin-bottom: calc(var(--gf-section-spacing) / 2);
}

.section-title {
    color: var(--gf-black);
    font-size: 1.625rem;
    line-height: 2rem;
    margin-top:0;
}

.split-two {
    /*
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap:1em;
    */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.split-two h2,
.split-two p {
    max-width: 30rem;
}

.map h2 {
    padding-top: 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.7);
    margin: 0;
    color: #213943;
}

.homepage .highlight {
    background-color: var(--gf-primary-color);
    display: grid;
    grid-template-columns: 3fr 7fr; 
    height: 20rem;
    overflow: hidden;
}

.homepage .highlight .image {
    display:block;
    align-self:center;
    width: 100%;
    height: 100%;
}

.highlight-teaser {
    margin: 0;
    background: var(--gf-primary-color);
    padding: var(--s2);
    color: white;
}

.highlight-teaser p {
    color: white;
}

.three-boxes {
    display: flex;
    gap: var(--s0);
    justify-content: stretch;
}

.box {
    display: grid;
    position: relative;
    justify-items: center;
    align-items: center;
    margin: 0;
    width: 100%;
}

.box figure {
    min-width: 10rem;
    width: 100%;
}
.box img {
    min-width: 10rem;
    width: 100%;
}

#r-entries figure,
.three-boxes figure {
    margin:0;
    position: relative;
}

.three-boxes figure figcaption {
    position:absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%);
    z-index: 1;
    color: white;
    font-size: 2rem;
    font-weight: var(--gf-font-weight-bold);
}


.homepage .map {
    background-image: url("../images/title-map.jpg");
    background-repeat: no-repeat;
    background-position: center; 
    background-size: fill;
    width: 100%;
    height: 22rem;
    display:block;
}

.homepage .teaser {
    line-height: 27px;
    padding: 1rem 0 2rem 0;
}

.homepage > a, .homepage > a:link {
    display: block;
    text-decoration: none;
    color: white;
}

.journeys {
    display: grid;
    grid-gap: 5.125rem;
    grid-template-columns: 2fr 4fr;
}

.detail {
    display: grid;
    grid-gap: 5.125rem;
    grid-template-columns: 4fr 3fr;
}

.search {
    display: grid;
    grid-gap: 5.125rem;
    grid-template-columns: 2fr 4fr;
}

.detail .right {
    max-width: 32rem;
}
.detail .smaller,
.detail .smaller p {
    font-size: var(--gf-font-size-slightly-smaller);
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
}; 

.detail #map {
    margin: var(--s0) 0 var(--s0) 0;
    max-width: 32rem;
    height: 32rem;
}

.detail-image {
    margin: var(--s0) 0 var(--s0) 0;
    padding: 0;
    display:table;
}

.detail-image img {
    max-width: 100%;
    max-height: 70vh;
}

.detail-image figcaption a iron-icon {
    height: 0.9rem;
    width: 1rem;
}

.detail-image figcaption {
    font-family: var(--pb-base-font-family);
    font-size: var(--gf-font-size-slightly-smaller);
    color: var(--gf-dark-gray);
    display: table-caption;
    caption-side: bottom;
    text-align: left;
}

.detail-image figcaption a,
.detail-image figcaption a:visited,
.detail-image figcaption a:link {
    font-size: inherit;
    color: var(--gf-primary-color);
}

.detail summary {
    border-top: thin solid var(--gf-light-gray);
    font-family: var(--pb-base-font-family);
    font-size: var(--gf-font-size-small);
    font-weight: var(--gf-font-weight-medium);
    line-height: 2rem;
    clear: right;
    list-style: none; /* hide standard icon */
}

/* hide standard icon on webkit browsers */
.detail summary::-webkit-details-marker {
    display: none;
}

.detail details summary::after {
    float: right;
    color: var(--gf-black);
    content: '⌃';
    transform: rotate(0deg);
    margin-top: 0.2rem;
    /* transition: transform 0.5s ease; */
}

.detail details[open] summary::after {
    margin-top: -0.3rem;
    transform: rotate(180deg);
}

.detail-place h1 {
    margin-top: var(--s0);
    margin-bottom: var(--s0);
}

.place a,
.place a:link,
.place a:visited,
.orgList a,
.orgList a:link,
.orgList a:visited,
.personList a,
.personList a:link,
.personList a:visited,
.personGrpList a,
.personGrpList a:link,
.personGrpList a:visited,
.itemList a,
.itemList a:link,
.itemList a:visited {
    color:var(--gf-primary-color);
    text-decoration: none;
}

.toolbar a {
    text-decoration: underline;
}

.menubar a.logo {
    background-image: url("../images/signet-jcf-web-rz.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 3rem;
    height: 3rem;
    margin-left: 0;
    margin-right: var(--s0);
    margin-top: -0.5rem; /* vertical alignment with menu items */
}

.standout {
    background-color: var(--gf-lighter-gray);
    padding: var(--gf-section-spacing) 0;
}

footer {
    background-color: var(--gf-footer-color);
    color: #ffffff;
    height: 9rem;
    margin: 0;
    min-width: 100vw;
    width: 100vw;
    max-width: 100vw;
    font-size:0.9em;
    font-weight: 100;
}

footer section.center-l{
    display: grid;
    grid-template-columns: 8rem auto;
    padding-top: var(--s1);
    position: relative;
}

footer > section > a {
    position: absolute;
    left: -18rem;
}
footer div{
    justify-self: end;
    max-width: 24rem;
    align-self:center;
    font-family: var(--pb-base-font-family);
}
footer nav a,
footer nav a:link,
footer nav a:visited
{
    color:white;
    font-size:0.9em;
    font-weight: 100;
}

footer logo {
    background-image: url("../images/GF_Eisenbibliothek_Logo_Weiss_CMYK.svg");
    background-repeat: no-repeat;
    background-position: center;
    display:inline-block;
    margin: 1rem 0 auto 3rem;
    width: 12rem;
    height: var(--gf-footer-height);
    position: absolute;
}

/* search */
.search fieldset {
    margin-block-start: var(--s0);
    margin-block-end: var(--s0);
    margin-inline-start: 0;
    margin-inline-end: 0;
}
.search legend {
    font-family: var(--pb-base-font-family);
    font-size: var(--gf-font-size-base);
    font-weight: var(--gf-font-weight-medium);
    padding-inline-start: 0;
    padding-inline-end: 0;
    margin-block-start: var(--s-2);
    margin-block-end: var(--s-2);
}

.facet-register legend {
    margin-block-end: 0;
}

.options.travellogs paper-checkbox {
    display: block;
    /* margin-block-start: .4rem; */
    margin-block-end: .4rem;
}

.options.facets > div {
    margin-block-start: var(--s-2);
}

.options.facets pb-combo-box {
    /* margin-block-start: .4rem; */
    margin-block-end: .4rem;
    font-family: var(--pb-base-font-family);
    display: block;
}

.search pb-paginate {
    font-family: var(--pb-base-font-family);
    font-size: var(--gf-font-size-slightly-smaller);
    margin-block-start: var(--s0);
    margin-block-end: var(--s0);
}


/* search result style */
#results .search-result {
    margin-block-start: var(--s0);
    margin-block-end: var(--s0);
    border-block-start: solid thin var(--gf-light-gray);
    padding-block-start: var(--s0);
    padding-block-end: var(--s0);
}

#results .search-result header {
    display:flex;
    flex: 1 4rem;
    flex-direction: row;
    align-items: baseline;
    margin-block-end: var(--s0);
}

#results .search-result-title {
    margin-block-start: .125rem;
    margin-block-end: 0;
    margin-inline-start: var(--s-2);
    font-size: var(--gf-font-size-smallest);
    display: inline-block;
    /* line-height: .5; */
    align-self: center;
}

#results .search-result-tag {
    font-size: var(--gf-font-size-smallest);
    color: white;
    padding: .4rem .6rem .3rem;
    border-radius: .2rem;
    display: inline-block;
    text-shadow: 0 0 1px rgba(10, 10, 10, 0.6);
}

#results .matches {
    padding-inline-start: 0;
    list-style: none;
}

#results .matches li {
    margin-block-start: var(--s-2);
    margin-block-end: var(--s-2);
    font-size: var(--gf-font-size-slightly-smaller);
}

#results .matches li a {
    font-size: var(--gf-font-size-slightly-smaller);
}

.search-result-tag__journal--1 {
    background-color: var(--gf-journey-color-1);
}
.search-result-tag__journal--2 {
    background-color: var(--gf-journey-color-2);
}
.search-result-tag__journal--3 {
    background-color: var(--gf-journey-color-3);
}
.search-result-tag__journal--4 {
    background-color: var(--gf-journey-color-4);
}
.search-result-tag__journal--5 {
    background-color: var(--gf-journey-color-5);
}
.search-result-tag__journal--6 {
    background-color: var(--gf-journey-color-6);
}
.search-result-tag__journal--7 {
    background-color: var(--gf-journey-color-7);
}

.search-result-tag__places,
.search-result-tag__names,
.search-result-tag__keywords {
    background-color: var(--gf-dark-gray);
}

/* responsive */

/* general very small displays */
@media screen and (width < 48rem) {
    .desktop {
        display: none;
    }

    .three-boxes {
        flex-direction: column;
    }

    .register-list form {
        display: block;
    }

    .register-list form label {
        margin: 0;
        display: block;
    }
    .detail {
        grid-gap: var(--s0);
        grid-template-columns: auto; /* single column on smaller screens */
        grid-template-rows: max-content max-content;
    }
    .detail-image img {
        min-width: 100%;
        max-width: calc(100vw - var(--s0)*2);
    }
    .detail-journey {
        grid-template-columns: auto;
    }
    .detail-journey aside {
        display: none;
    }
    .detail-journey .text-view #view1::part(content) {
        margin-right: 0;
    }
    
    
    .journey-navigation pb-navigation pb-i18n {
        display:none;
    }
    section .image-gallery-text {
        padding:5px;
    }
    .image-gallery-text .title {
        font-size: 1.2rem;
    }
    .image-gallery-text p {
        display:none;
    }
    footer {
        height: 16rem;
    }
}
@media screen and (width > 48rem) {
    .mobile{
        display: none;
    }
    .three-boxes {
        flex-direction: row;
    }
    .detail-journey .text-view #view1::part(content) {
        margin-right: 100px;
    }
}

@media screen and (width > 64rem) {
    teaser {
        font-size: var(--pb-heading-h4-font-size);
    }
    footer {
        height: 12rem;
    }
}

@media screen and (width < 64rem) {
    .journeys {
        grid-gap: var(--s0);
        grid-template-columns: auto; /* single column on smaller screens */
        grid-template-rows: max-content max-content;
    }
    .journey-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    #map {
        height: 30rem;
    }

    footer {
        height: 16rem;
    }
}

@media screen and (width < 120rem) {
    /* footer {
        height: 12rem;
    } */
    footer section.center-l {
        grid-template-areas: "top top"
                             "left right";
    }
    footer section.center-l logo {
        position: relative;
        grid-area: top;
        left: 0;
        margin: 0;
        padding: 0;
    }
    footer section.center-l > a {
        position: relative;
        left: 0rem;
    }
    footer nav {
        grid-area: left;
    }
    footer section div {
        grid-area: right;
    }
}

@media screen and (width > 120rem) {
    footer {
        height: 9rem;
    }
    /* .detail-image img {
        max-width: 30rem;
    } */
}

#caroussel{
    color:black;
}
#caroussel a,
#caroussel a:link,
#caroussel a:visited{
    color:black;
    display: grid;
    grid-template-columns: 30% 70%;
    position: relative;
}
#caroussel figure fx-trigger {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width:3rem;
    height:3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
#caroussel figure .prev{
    left:1rem;
}
#caroussel figure .next{
    right:1rem;
}

#caroussel figure{
    position: relative;
}
#caroussel img{
    width:100%;
    height:100%;
    object-fit: cover;
    min-height: 20vh;
}
#caroussel img:hover{
    filter:brightness(1.2);
}
.map-caption ul {
    margin: 0.5em 0 0 0;
    padding:0;
}
.map-caption  li {
    list-style-type: none;
    font-size: 0.85em;
    /* display:inline; */ 
}
.map-caption .circle {    
    width: 0.75em;
    height: 0.75em;
    margin-right: 0.5em;
    border-radius: 50%;
    display: inline-block;
}


p#citeas {
    padding-top: 2em;
    font-size: var(--gf-font-size-smallest);
}

p#citeas a {
    font-size: 12px;
}

.journey-color-1 { background-color: var(--gf-journey-color-1); }
.journey-color-2 { background-color: var(--gf-journey-color-2); }
.journey-color-3 { background-color: var(--gf-journey-color-3); }
.journey-color-4 { background-color: var(--gf-journey-color-4); }
.journey-color-5 { background-color: var(--gf-journey-color-5); }
.journey-color-6 { background-color: var(--gf-journey-color-6); }
.journey-color-7 { background-color: var(--gf-journey-color-7); }

@media screen and (width < 48rem){
    #caroussel a,
    #caroussel a:link,
    #caroussel a:visited{
        color:black;
        display: block;
    }
}
