*,
*::before,
*::after {
    box-sizing: border-box;
    font-size: 100%;
}

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    min-height: 100.1%;
}


img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button {
    cursor: pointer;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

p,
h1,
h2,
h3,
h4{
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

.vs {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #DDE3E9;
    font:
        normal 10px system-ui,
        sans-serif;
    text-size-adjust: none;
    text-rendering: optimizeLegibility;
  }

:root {
    --junkers-blau: #003366;
    --schrift: #111;
    --schmuck: #b52a35;
    --schmuck-dunkel:#ac1420;
    --schmuck3: #fa858d;
    --focus: #00b4d8;
    --dunkelgrau: #223;
    --mittelgrau: #585555;
    --hintergrund: #f5f7fa;
    --hellgrau: rgba(1, 1, 1, 0.1);
}

:focus {
    outline: 0;
}

:focus-visible,
input:focus-visible {
    outline: 5px solid var(--focus);
    border-radius: 3px;
    outline-offset: -4px;
}

.vs:focus-visible {
    font-size: 2em;
    display: inline-block;
    width: 9em;
    height: auto;
    margin: auto;
    position: absolute;
    z-index: 100;
    padding: 0.5em;
    top: 2em;
    left: calc(50% - 4.5em);
    clip: auto;
    background: #fff;
    color: #111;
    text-align: center;
}

.page {
    width: 100%;
    max-width: 768px;
    min-height: 100vh;
    background: var(--hintergrund);
    position: relative;
    overflow: hidden;
}

.main {
    padding: 2em;
    margin-top: 8em;
    float: right;
}

#crumb + .main {
    margin-top: -1.3em;
}

#header {
    margin-bottom: -1em;
    border-bottom: 2px solid #fff;
    padding: 1.2em 0;

    background: var(--junkers-blau);
    z-index: 7;
    position: fixed;
    width: 100%;
}

#h1 {
    width: min-content;
    text-align: center;
    margin: 0 auto;
    display: block;
}

#header_a {
    margin: 0 0 0 1em;
    width: 15em;
    height: 4.78em;
    display: block;
    outline-offset: 3px;
}
#header_logo {
    width: 100%;
    height: auto;
}

.icon {
  
  border-radius: 50%; /* rund machen */
  padding: 4px; /* falls du Abstand zum Icon willst */
  box-sizing: content-box; /* wichtig bei padding */
    background-color: aliceblue;
}


#navtoggle {
    position: fixed;
    top: 1.6em;
    right: 1.3em;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 12;
    border-radius: 50%;
  background-color: #fff;
  background-image: url('/client/grafik/sprite.svg?v=1#burger');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  display: inline-block;

}

#navtoggle:hover {
    background-image: url('/client/grafik/sprite.svg?v=1#burger-hover');
    background-color: var(--junkers-blau);
}


 #navtoggle.aktiv {
     background-image: url('/client/grafik/sprite.svg?v=1#close');
    background-color: var(--junkers-blau);
}

#navtoggle.aktiv:hover {
    background-image: url('/client/grafik/sprite.svg?v=1#close-hover');
    background-color:#fff;
}


/*
#navtoggle:after {
  font-size: 4em;
  color: var(--junkers-blau);
 
  display: block;
  font-weight: 300;

  content: "≡";
  position: absolute;
  top: -6px;
 left: 8px;
}

#navtoggle.aktiv:after {
    content: "x";
}*/



.navisuche {
    padding: 0 0 2em 2em;
    width: 100%;
}

.search {
    padding: 0.1em;
    font-size: 1.5em;
    border: 1px solid var(--schrift);
    border-radius: 5px;
    width: 11em;
}

.search:focus-within {
    outline-offset: 3px;
  outline: 5px solid var(--focus);
  border-radius:10px;
}

.navisuche button {
    position: absolute;
    right: 1.3em;
    border: none;
    cursor: pointer;
    margin-top: -.2em;
    width: 30px;
    height: 30px;
    xxxbackground: url("/client/grafik/suche.svg") #ddd no-repeat center / 24px;
      background: url('/client/grafik/sprite.svg?v=1#lupe')  #ddd no-repeat center / 24px ; 
    border-radius: 50px;
    
}

.navisuche button.aktiv,
.navisuche button:focus-within,
.navisuche button:focus-visible
 {
    background-color: var(--junkers-blau) !important;
    outline-offset:2px;
    
}

.nav {
    position: fixed;
    top: 74px;
    right: -24em;
    z-index: 7;
    float: right;
    overflow-x: hidden;
    padding: 2em 0 0 0;
    width: 24em;
    height: 100%;
    white-space: nowrap;
    content-visibility: hidden;
    transition: transform 0.6s ease-in-out;
    background: #fff;
}

.nav.aktiv {
    transform: translate3d(-24em, 0, 0);
    display: block;
    filter: opacity(92%);
    content-visibility: visible;
}



.nav ul {
    list-style: none;
    padding-left: 0;
}

.nav ul ul {
    display: none;
}

.nav ul ul.aktiv {
    display: block;
    padding-left: 0;
    font-weight: 300;
}

.nav li {
    border-top: 1px solid #ddd;
}

.nav > ul > li:first-child {
    border-top: 0;
}


.nav a,
.nav span {
    font-size: 1.9em;
    border: 0;
    background: none;
    text-decoration: none;
     display: inline-block;
    text-align: left;
    padding: 0.3em 0.8em;
    border-left: 10px solid #fff;
    font-weight: inherit;
    color: var(--schrift);

  width: 185px;
}

.nav ul ul a {
    width: 100%;
}

.nav li {
    position: relative;
}

.navibutton {
    position: absolute;
    width: 25px;
    height: 25px;
    background:  url('/client/grafik/sprite.svg?v=1#chevron') no-repeat center center;
    background-size: 75%; 
    border: none;
    margin: 2px 6px 0 0;
    float: right;
    padding: 0;
    overflow: hidden;
    transform: rotate(90deg);
   top: 2px;
    right:0
}

.navibutton.aktiv {
     transform: rotate(-90deg);
} 

.nav ul > li:has(ul > li > .aktiv) > .navibutton:not(.aktiv) {
    transform: rotate(0deg);
}
.navibutton:hover {
  border-radius:50%;
    border: 1px solid var(--mittelgrau);
}


.nav ul ul a,
.nav ul ul span {
    padding-left: 1.5em;
}

.nav a:hover,
.nav a:focus,
.nav a:active {
    color: var(--schrift);
    background: #fff;
    border-left-color: var(--schmuck) !important;
}

.nav a.aktiv,
.nav span {
    color: var(--schrift);
    background: #fff;
    border-left-color: var(--junkers-blau);
}
/* .nav ul > li:has(ul > li > .aktiv) > a */
.nav ul > li:has(ul > li > .aktiv) > a  {
    border-left-color: #fff;
}








.nav ul a span[lang="en"], .nav ul span span[lang="en"] {
    font-size: inherit !important;
}



.nav ul a span[lang="en"], .nav ul span span[lang="en"] {
    padding: 0;
    border-left: 0;
    font-size: inherit;
}

.nav span[lang="en"]:after {
    content: " [en]";
  font-size: 0.8em;
}


.nav ul ul a:hover,
.nav ul ul a:focus,
.nav ul ul a:active {
    color: var(--schrift);
    background: #fff;
    border-left-color: var(--schmuck);
}



#crumb {
    float: left;
  width: 100%;
  max-width: 60em;
  margin: 8em 0 0;
    padding: 0 2em;
    position: relative;
  z-index: 5;
}

#crumb ol {
   
  list-style: none;
  font-size: 1.4em;
    font-weight:300;
}

#crumb li {
   display: inline;  
    margin-right: -3px;
}

#crumb li::after {
  content: "›";
  padding: 0 .4em;
  font-size: 1.3em;
  font-weight: 200;
  color: var(--mittelgrau);
}

#crumb li:last-child::after {
  content: "";
}

#crumb a {
    color: var(--schrift);
    text-decoration-color: var(--mittelgrau);
}


body:has(.nav.aktiv) .main,
body:has(.nav.aktiv) .footer,
body:has(.nav.aktiv) .wettertoggle,
body:has(.nav.aktiv) #crumb,
body:has(.wetter.aktiv) .main,
body:has(.wetter.aktiv) .footer,
body:has(.wetter.aktiv) #navtoggle,
body:has(.wetter.aktiv) .nav,
body:has(.wetter.aktiv) #crumb,
.popup .page{
    filter: blur(5px) opacity(50%);
}


.wetter {
    position: fixed;
    top: 74px;
    left: -310px; 
    width: 310px;
    height: 100%;
    background: #fff;
    padding: 1em;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
}

.wetter.aktiv {
    left: 0;
}

.wetter_div {
    background: #fff;
    color: var(--schrift);
    padding: 1.2em 1.8em 2em .5em;
    height: 220px;
    content-visibility: hidden;
    transition:
        content-visibility 0s step-end,
        opacity 0.3s ease-in-out;
    opacity: 0;
    font-size: 1.2em;
      font-variant-numeric: proportional-nums;
}

.wetter.aktiv .wetter_div {
    content-visibility: visible;
    opacity: 1;
}

.wetter_h1 {
    font-size: 1.5em;
    font-weight: 400;
    margin-bottom: 15.6px;
    text-align: center;
}

.wetter h2 {
    display: none;
}

.wetter p {
    font-size: 1.3em;
    width: 100%;
    line-height: 1.2;
    text-align: right;
    margin-bottom: 0.5em;
    float: left;
    white-space: nowrap;
}

.wetter_daten .icon {
    width: 20px;
    height: 20px;
    float: left;
    margin-right: 1em;
    margin-right: -0.8em;
}

span.sr-only {
    float: left;
    margin-left: 1em;
}

#wettertoggle {
      
     position: fixed;
    top: 1.4em;
    left: 1.4em;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 1000;
    border-radius: 50%;
  background-color: #fff;
  background-image: url('/client/grafik/sprite.svg?v=1#wetter');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  display: inline-block;
    
}



#wettertoggle:hover, #wettertoggle:focus, #wettertoggle.aktiv {
    background-image: url('/client/grafik/sprite.svg?v=1#wetter-close');
    background-color: var(--junkers-blau);
}




.main h1 {
    color: var(--junkers-blau);
    text-wrap: balance;
    line-height: 1.15;
    padding: 0 0 0.2em;
    font-weight: 500;
    font-size: 2em;
    font-feature-settings: "kern";
    font-kerning: normal;
}

.main h1 + article {
    margin-top: -1em;
}

.galImg {
    max-width: 726px;
    width: 100%;
    height: auto;
}

.main p,
.main ul,
.main ol,
.main dl,
#popup p {
    font-size: 1.6em;
    line-height: 1.6;
    hyphens: auto;
    font-weight: 300;
    margin-bottom: 0.4em;
}

.published {
  color: var(--dunkelgrau);
 
  font-size: 1.4em;
  margin: .4em 0;
  display: block;
}





.main .hgroup-p {
    background: var(--schmuck);
    width: max-content;
    color: #fff;
    font-weight: 500 !important;
    padding: 0 0.6em;
    border-radius: 0 0 6px 6px;
    text-transform: uppercase;
    font-size: 1.3em;
    letter-spacing: 1px;
}


h1 + .published {
    margin: .3em 0;
}

.main hgroup h1 {
    padding-top: 0;
}

.main .archiv {
    border-top: 1px solid var(--schmuck);
    border-bottom: 1px solid var(--schmuck);
    background: #fff;
  padding: 0 1em;
}

article.newsteaser:has(+ article.archiv) {
    border-bottom: 0;
}

.teaser p {
    margin-bottom: 0;
}

.main ul,
.main ol {
    margin-left: 1.15em;
}

.main ul {
    list-style-type: disc;
}
.main ul li::marker {
    color: var(--junkers-blau);
}

.main li li {
  margin-left: -1.1em;
  font-size: initial;
}

.inl dt {
    float: left;
    margin-right: 0.4em;
    font-weight: 500;
    color: var(--dunkelgrau);
}

.inl dt::after {
    content: ":";
}

.vorstand {
    float: left;
    width: 100%;
}

.vorstand dt {
    font-weight: 500;
    width: 100%;
    float: left;
    color: var(--dunkelgrau);
}

.vorstand dd {
   overflow: hidden;
   width: 100%;
   float: left;
}

.main .termin {
    position: relative;
    margin-bottom: 0.5em;
 line-height: 1.3;
    padding-bottom: 1em;
}

.termin:has(+ h2) {
   
       xxborder-bottom: 1px solid var(--hellgrau);
}


.termin_dt span {
    font-size: 1.1em;
    color: var(--junkers-blau);
    font-weight: 600;
}

.termin dd {
    text-indent:-7px;
}

.t-toggle {
    position: absolute;
    right: 0;
    top:0;
}

.t-detail {
    display: none;
}

.t-detail.aktiv {
    display: block;
    text-indent: 0;
}

.t-detail p,
.t-detail dl,
.t-detail ul {
    font-size: revert;
}

.t-detail h3 {
font-size: inherit;
  float: none;
}

table {
    margin-bottom: 0.6em;
    width: 100%;
    font-size: 1.6em;
    border-spacing: 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;

}


thead {
    border-bottom: 1px solid rgba(67, 68, 71, 0.5);
    background: var(--junkers-blau);
    color:#fff;
 
}

tbody tr:nth-child(2n + 1) {
    background: #fff;
}

th,
td {
    padding: 0.2em 0.3em;
    text-align: left;
    line-height: 1.4;
}

thead th {
    font-weight:600;
}

table th[scope="rowgroup"] {
    background:#0033664f;
    color:#111;
    font-weight: 500;
    text-align: center;
 
}

table th[scope="rowgroup"]:first-of-type {
    border-top: 1px solid #fff;
}

.teaser,
.newsteaser {
    float: left;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--hellgrau);
    margin-bottom: 0.5em;
}

.teaser:last-of-type,
.newsteaser:last-of-type {
    border-bottom: 0;
}

.new-content {
    border-top: 1px solid var(--hellgrau);
    float: right;
}

strong,
b {
    font-weight: 500;
    color: var(--dunkelgrau);
}

h2 {
    font-size: 1.8em;
    line-height: 1.2;
    margin: 0.6em 0 0 0;
    text-wrap: balance;
    color: var(--dunkelgrau);
    font-weight: 700;
}

.search-results p, .search-results h2 {
    font-size:inherit;
}
.events h2{
color: var(--schmuck-dunkel);
  letter-spacing: 1px;
  font-variant:
all-petite-caps;
  font-weight: 500;
  font-size: 1.7em;
}

ol.search-results {
    list-style:none;
    margin-left: 0;
}

h3 {
float: left;
  font-size: 1.6em;
  line-height: 1.6;
  margin-right: .4em;
  font-weight: 700;
  color: var(--mittelgrau);
}

.main, footer {
  font-variant-numeric: oldstyle-nums;
}

.main abbr {
    text-decoration-color: var(--mittelgrau);
}

.main a, #navds a, #popup a {
    font-weight: 500;
    color: var(--junkers-blau);
    outline-offset: 3px;
}

.main a:link,
#navds a:visited,
#popup a:visited{
    color: var(--junkers-blau);
}


.main a:hover,
.main a:focus,
#navds a:hover,
#navds a:focus,
#popup a:hover,
#popup a:focus
{
    text-decoration: underline;
    color: var(--schmuck);
    text-decoration-thickness: 2px;
}

.main a.mehr {
    float: right;
    margin-left: 10px;
    hyphens: none;
}

.main h2 a {
    font-weight: inherit;
}

.main h2 a:link,
.main h2 a:visited {
    color: var(--dunkelgrau);
    text-decoration: none;
}

.main h2 a:hover,
.main h2 a:focus {
    color: var(--dunkelgrau);
    text-decoration: underline;
    outline-offset: 2px;
}

.main .karte a {
    text-decoration: inherit;
}

.startlink {
    display: flex;
    gap: 7px; 
    justify-content: center; 
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 21em;
    margin: 0.7em auto;
    padding-bottom: 1em;
}

.startlink a {
    text-decoration: none;
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    padding: 9.8px;
    border-radius: 4px;
    box-sizing: border-box;

    background: var(--junkers-blau);
}

.startlink a:link,
.startlink a:visited,
.startlink a:focus {
    font-weight: 400;
    color: #fff;
}

.startlink a:hover,
.startlink a:focus {
    font-weight: 700;
    color: #fff;
}


.new-content.highlight {
  animation: highlightFade 2s ease-in-out;
}

@keyframes highlightFade {
  0% {
    outline: 2px solid var(--focus);
  }
  100% {
    outline: none;
  }
}



.main button, #popup button {
    background: #fff;
    color: var(--schmuck);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 3px 14px;
    border: 1px solid var(--dunkelgrau);
    outline-offset: 0;
}


.main button:hover, #popup button:hover, .main button:focus, #popup button:focus {
    
    
  border-color: var(--schmuck);
  cursor: pointer;
  background: var(--schmuck);
  color: #fff;
}
.vorschaubild {
    width: 100px;
    height: 100px;
    float: right;
    border-radius: 50%;
    shape-outside: circle(50%);
    margin: 7px 10px 0 20px;
    content-visibility: auto;
}

.archiv .vorschaubild {
    margin: 7px 0 0 20px;
}


.hingucker {
    position: relative;
    margin: 2em 0 1em;
   
}

.hingucker + .startlink,  .hingucker + .langswitch {
    float:none;
}

.hingucker + p {
    float:left;
}

.hinguckerImg {
    width: 100%;
    max-width: unset;
    height: auto;
    XXXborder-radius: 7px;
}

.hingucker figcaption {
    font-weight: 400;
    font-size: 1.5em;
    font-style: italic;
    background: rgba(1, 1, 1, 0.02);
    padding: 8px 10px;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(1, 1, 1, 0.1);
    color: var(--schrift);
}

.ratio3_2 {
    aspect-ratio: 3 / 2;
}

.ratio4_3 {
    aspect-ratio: 4 / 3;
}

.ratio16_9 {
    aspect-ratio: 16 / 9;
}

.ratio2_1 {
    aspect-ratio: 2 / 1;
}

.ratio25_10 {
    aspect-ratio: 25 / 10;
}


.video, .karte {
    width: 100%;
    aspect-ratio: 3 / 2;
    background-color: var(--mittelgrau);
    position: relative;
    overflow: hidden;
    margin: 2em 0;
 
    z-index:0;

}

.video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    border: none;
    display: none; 
}

.video iframe.aktiv {
    display: block;
    }

.video-placeholder, .karte-placeholder {
    position: absolute;
    inset: 0;
    background-color: var(--mittelgrau);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
    z-index: 2;
}

.video .video-load-button, .karte-load-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

#map {
    width: 100%;
    height: 100%;
    display: none;
    border: none;
}

#map.aktiv {
    display: block;
    margin-top: 0;
}

.main .galStart {
    position: absolute;
    top: 1em;
    right: 1em;
    XXborder: 1px solid var(--mittelgrau);
}


.footer {
    width: 100%;
    float: left;
    border-top: 1px solid var(--hellgrau);
    padding: 1em 0;
    content-visibility: auto;
    background: var(--hintergrund);
}

.footer_dl, #navds p {
    text-align: center;
  font-size: 1.3em;
  font-weight: 300;
  color: var(--schrift);
  line-height: 1.2;
}

.footer_dl dt {
    font-weight: 500;
    margin-bottom: 0.3em;
    color: var(--dunkelgrau);
}

.footer_dd_last {
    margin-bottom: 0.3em;
}

#navds {
    width: 100%;
  float: right;
  text-align: right;
  padding:2em;
    content-visibility: auto;
    font-size: 1.1em;
}

@media (min-width: 600px) {
    .main h1 {
        font-size: 3em;
    }
}

#pdopage h1 {
    text-transform: uppercase;
  color: var(--schmuck-dunkel);
  font-size: 1.5em;
  letter-spacing: 2px;
    margin-top: .7em;
}


.mark{background:#cddae6;padding:.1em 1em;display:inline-block}


@media (min-width: 768px) {
  #header {
        position: absolute;
        width: inherit;
    }

    #wettertoggle, #navtoggle, .nav, #wetter {
        position: absolute;
    }
    
}

@media (min-width: 600px) {

.vorstand dt {
     width: 155px;
    }
    
.vorstand dd {
   float: right;
   text-overflow: ellipsis;
  white-space: nowrap;
  width: calc(100% - 155px);
}
    
}


@media (min-width: 1024px) {
    
      
    
    .page {
        max-width: initial;
        width: 1012px;
    }

    #navtoggle {
        display: none;
    }

    .nav {
        position: initial;
        display: block;
        transition: none;
        float: right;
        padding: 2em 0 0 0;
        content-visibility: visible;
        margin-top: 7em;
    }
    .nav li {
        font-size:90%;
        font-weight:400;
        
    }
    .main {
        float: left;
        max-width: initial;
        width: calc(100% - 24.5em);
    }
}


.popup-container {
  position: fixed;
  inset: 0;
   display: grid;
  place-items: center;
  z-index: 1000;
    outline: 0;
}

.popup-box {
  background: var(--hell, #f5f8f9);
  border: 2px solid var(--junkers-blau, #213b7b);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
  text-align: center;
    outline: 0;
}

.popup-box h1 {
  color: var(--junkers-blau, #213b7b);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}


.popup-ok:focus-visible{
    outline: 5px solid var(--focus);
    border-radius: 3px;
    outline-offset: -4px;
}

#galerie.aktiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

.galEtage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.galRaum {
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    position: relative;
    /*scroll-padding: 0;  optional, für präzises Einrasten */
    scrollbar-width: none;
    -ms-overflow-style: none; 
    overscroll-behavior-x: contain;
}

.galRaum::-webkit-scrollbar {
    display: none; 
}

.galSection {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.galFigure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    flex-grow: 1;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    font-size: 1.4em;
}

.galImg {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.galCaption {
    margin-top: 1rem;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.4;
}

#galEnd {
    position: fixed;
    top: -.9rem;
    right: .5rem;
    background: transparent;
    border: none;
    padding: .5rem 1rem;
    cursor: pointer;
    z-index: 1100;
    color:#fff;
    font-size: 5em;
    font-stretch: 135%;
    font-width:135%;
    
}

.galPrev,
.galNext {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
      background: transparent;
    border: none;
    padding: 1rem;
    font-size: 5rem;
    cursor: pointer;
    z-index: 1100;
    user-select: none;
    color:#fff;
}

.galPrev {
    left: 1rem;
}

.galNext {
    right: 1rem;
}

@media (pointer: coarse) {
    .galPrev,
    .galNext {
        display: none !important;
    }
}

.galMeter {
    width: 200px;
    height: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: transparent;
    color: #fff; 
    position: absolute;
    top: 20px;
}


.galMeter::-moz-meter-bar {
    background: #fff;
    border-radius: 5px;
}


.galMeter::-webkit-meter-bar {
    background: transparent;
    border: none;
    border-radius: 5px;
    height: 100%; 
    box-shadow: none;
}


.galMeter::-webkit-meter-optimum-value {
    background: #fff;
    border-radius: 5px;
    height: 100%; 
    margin: 0; 
    box-shadow: none;
}


@view-transition {
    navigation: auto;
}
