/* html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
} */


/* Frame emulation */
:root {
	--vh: 1vh;

	--black: 			hsl(0, 0%, 0%);
	--dark: 			hsl(43, 0%, 29%);
	--medium-dark:		hsl(51, 0%, 50%);
	--medium: 			hsl(51, 0%, 88%);
	--light:		 	hsl(20, 0%, 97%);
	--mainAccentDark: 	hsl(116, 49%, 35%);
	--mainAccentLight: 	hsl(116, 35%, 50%);
	--accent1VeryDark: 	hsl(from var(--mainAccentDark) h s 18%);
	--accent1Dark: 		var(--mainAccentDark);
	--accent1Light: 	var(--mainAccentLight);
	--accent2Dark: 		hsl(328, 100%, 26%);
	--accent2Light: 	hsl(315, 40%, 38%);
	--accent3Dark: 		hsl(347, 94%, 36%);
	--accent3Light: 	hsl(26, 81%, 44%);
	--accent4Dark: 		hsl(48, 88%, 47%);
	--accent4Light: 	hsl(51, 93%, 56%);
	--accent5Dark: 		hsl(70, 28%, 38%);
	--accent6Light: 	hsl(64, 35%, 50%);
	--mainAccentDark_hsb: 	hsl(199, 100%, 28%);
	--mainAccentLight_hsb: 	hsl(200, 66%, 57%);

	--ink:        #0F1D18;
    --ink-raised: #142720;
    --hairline:   rgba(236, 230, 216, 0.14);

    --bone:       var(--medium);
    --sage:       var(--mainAccentDark);
    --amber:      var(--mainAccentLight);

    --serif: 'Fraunces', serif;
    --sans:  'Inter', sans-serif;
    --mono:  'IBM Plex Mono', monospace;

    --slide-w: min(640px, 82vw);
    --gap: 24px;
	--font-size-inline-header: 1.15em;
}

body, html
{
    margin: 0;
    padding: 0;
    /* display: flex; */
	/* flex-direction: column; */
	/* justify-content: space-between; */
    /* overflow-y: scroll; */
	/* overflow-x: clip; */
    font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
    font-size: 11pt;
	color: #000;
	min-height: 100vh; /* braucht den sticky header*/
	width: 100%;
	background: #fff;
	/* min-width: 400px; */
	overflow-x: hidden;
	
	-webkit-overflow-scrolling: touch;
}

html
{
	/* height: calc(var(--vh, 1vh) * 100); /* braucht den sticky header*/
	--vh: 1vh;
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
	height: 100%;
	display: flex;
	flex-direction: column;
	scrollbar-gutter: stable;
}

h1 
{
    margin-left:1%;
    margin-right:1%;
    font-size:1.8em;
	font-variant-caps: petite-caps;
	text-align: center;
}
h2 
{
    margin-left:1%;
    margin-right:1%;
    font-size:1.4em;
	font-variant-caps: petite-caps;
	text-align: center;
}
h3 
{
    margin-left:1%;
    font-size:1.2em;
}

a{
	color: #011E52;
}

ul {
	margin-left: -30px;
}

#horizontal_menu{	
	background:#011E52; 
	height:19px; 
	line-height: 17px;
}

#horizontal_menu a{
	text-decoration: none; 
	color: White;
	font-size: 10pt;
	font-weight: bold;
	margin: 0 15px;
}

#menu{
	width: 0px; 
	background:#E9E9E9; 
	font-size: large;
	border-style:none; 
	border-bottom-style:solid; 
	border-right-style:solid; 
	border-left-style:solid; 
	border-color: #bbbbbb; 
	border-width: 1px;
	visibility: hidden;
    height: fit-content;
	font-weight: bold;
}

img {
	border: 0;
	max-width: 100%;
}
video {
	border: 0;
	max-width: 100%;
}

.vert_menu li{
	padding: 0 0; 
	margin: 5px 0 5px 2px; 
	list-style: none;
	font-weight: bold;
}

.vert_menu li a{
	font-weight: bold;
	text-decoration: none;
	color: #000f;
	color: var(--dark);
}

select{
	font-size: 11pt;
}


main {
	flex: 1;
	position: relative; 
	/* width: 100%;  */
	margin: 0 auto;
	margin-left: env(safe-area-inset-left);
	margin-right: env(safe-area-inset-right);	
}

#banner {
	width:100%;
}

#banner_galery{
	width:175px; 
	height:90px; 
	float: left;
}

#banner_contact{
	width:181px; 
	height:86px; 
	float: right;
	font-size: 9pt;
	font-family: "Times New Roman", Times, serif;
	text-align: right;
	margin: 2px;
}

#banner_emblem {
	height: 90px; 
	margin:0 185px 0 175px; 
	text-align: center; 
}

#printed_page{
	width:175px; 
	height:90px; 
	float: left;
}

#printed_banner_contact{
	width:181px; 
	height:86px; 
	float: right;
	font-size: 9pt;
	font-family: "Times New Roman", Times, serif;
	text-align: right;
	margin: 2px;
}

#printed_banner_emblem{
	height: 90px; 
	margin:0 185px 0 350px; 
	text-align: center; 
}

#printed_page{
	width:350px; 
	height:90px; 
	float: left;
}

#main_page{
	display: flex;
    width: 100%;
	max-width: 1800px;
	margin: 1em auto 0 auto;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
}


/* Tooltip at navigation bar*/
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 50px;
	background-color: #ddd;
    color: #011E52;
    text-align: center;
    border-radius: 0;
	margin-top: 7px;
    padding: 5px 0;
    
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -25px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}



/* Dennis' edits and additions*/
.lazyImage {
	opacity: 0;
	width: 100%;
}

.lazyImage.loaded {
	animation: fadeIn .5s ease forwards;
}

.scroll-x {
	overflow-x: auto;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.lazyImageContainer {
	/* aspect-ratio: 1; */
	align-content: center;
	width: min(200px, 30vw);
	height: calc(0.75*min(200px, 30vw));
}

.lazyImageContainer.loading {
	background: #ededed;
	border-radius: 20px;
	aspect-ratio: 1;
	animation: pulsating 2.5s infinite;
}

@keyframes pulsating {
	0% {
		opacity: 0.2;
	}
	50% {
		opacity: 0.4;
	}
	100% {
		opacity: 0.2;
	}
}

.lazyImageOuterContainer {
	max-height:200px; 
	max-width:150px; 
	height:200px; 
	width:200px; 
	align-content:center; 
	text-align:-webkit-center;
}

.lazyImageContainer.loaded {
	background: #FFFFFF;
}

.flex-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-start;
    padding-top: clamp(4mm, 5vh, 0.25rem);
    padding-bottom: clamp(4mm, 5vh, 0.25rem);
}

.img200-container {
	max-height:200px; 
	height: calc(0.75*min(200px, 30vw)); 
	align-content:center; 
	text-align:-webkit-center;
	margin-right: 10px;
	margin-top: 0px;
	margin-bottom: 10px;
    max-width: 200px;
    width: 40%;

	border: 0.05em solid #ddd;
	border-radius: 1em;
    padding: 5px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
}

.img200-container img {
	max-width: min(200px, 30vw);
	max-height: calc(0.75*min(200px, 30vw));
	width: auto;
}

.img200-container:hover {
	transform: scale(1.02);
	border-color: var(--mainAccentDark);
}

.res-fig-container {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    background: #ffffff;
    border: 0.05em solid #ddd; 
    border-radius: 4px;
    padding: 20px;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  */
    text-align: center;
	box-sizing: border-box;
}

.res-fig-container img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.res-fig-container .caption {
    margin: 0;
    padding: 10px 0 0 0;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9em;
    color: #444;
	letter-spacing: 0.5px;
	font-style: italic;
}


.flex-sideText {
	width: 100%;
	text-align: left;
	padding-left: 2em;
}

.inline-Title {
	color: var(--accent1VeryDark);
	text-decoration: none;
	font-size: var(--font-size-inline-header);
	line-height: 1.3;
}
.inline-Title a {
	color: var(--accent1VeryDark);
	text-decoration: none;
}
.inline-Title a:hover {
	color: var(--accent1VeryDark);
	text-decoration: underline;
}

.inline-Subtitle {
	margin-top: 0.5rem;
    /* line-height: 1.5; */
    color: var(--dark);
}
.inline-Subtitle a {
    color: var(--dark);
}
.inline-Meta {
	color: var(--medium-dark);
	font-size: small;
    margin-top: 0.5rem;
}


footer {
	display: inline-flex;
	align-content: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
    flex-direction: row;
	background-color: #f0f0f0;
	padding: 20px 0;
	margin-top: 20px;
	text-align: center;
	align-content: center;
	width: 100%;
}
footer a {
	margin: 0 10px;
}
footer div {
	width: 100%;
	max-width: 1400px;
	display: inline-flex;
	align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
}

header {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 10;
	/* From https://css.glass */
	background: hsl(from var(--mainAccentLight) h 66% 57% / 0.4);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(9.8px);
	-webkit-backdrop-filter: blur(9.8px);
	width: 100%;
	height: 100%;
	overflow-y: clip;
}

#bottomHeader {
	display: flex;
    flex-wrap: nowrap;
	margin: 0 auto;
	justify-content: center;
	text-align: center;
}
#bottomHeader img {
	margin: 8px 20px;
}

#mainNav {
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

#mainNav a{
	margin-left: 2ex;
    margin-right: 2ex;
	font-size: large;
    color: var(--accent1VeryDark);
    text-decoration: none;
    font-weight: bold;
}



#topHeader {
	display: flex;
    flex-wrap: nowrap;
	background: linear-gradient(0deg, transparent, #ffffff80 10%);
}

#secondaryNav {
	display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
	width: 100%;
	margin-right: 20px;
    margin-top: 10px;
	margin-bottom: 10px;
}

#secondaryNav a{
	margin-left: 2ex;
    margin-right: 2ex;
	font-size: medium;
    color: #000000;
    text-decoration: none;
    font-weight: normal;
}

.bar {
	width: 25px;
    height: 5px;
    background: #000000;
    margin-top: 3px;
    margin-bottom: 3px;
    border-radius: 40px;
}

div#hamburger-menu-button {
    align-content: center;
}
div#hamburger-menu-icon {
	padding-right: 25px;
    padding-left: 25px;
}


#content {
	flex: 1;
	/* min-width: 300px; */
	width: 100%;
	max-width: 1200px;
    margin: 0 auto;
	padding: 0 15px;
	/* overflow-x: auto; */
	overflow-y: visible;
	box-sizing: border-box;
}

#content p {
    text-align: justify;
    hyphens: auto;           /* Aktiviert Silbentrennung */
    -webkit-hyphens: auto;   /* Für Safari/iOS */
    line-height: 1.6;        /* Macht den Text bei Blocksatz lesbarer */
    margin-bottom: 1.2em;    /* Schöner Abstand zwischen Absätzen */
}

@media only screen and (max-width: 980px) {
	#mainNav {
		visibility: hidden;
		width: 0;
	}
	#bottomHeader {
		justify-content: space-between;
	}
	#topHeader {
		visibility: hidden;
		height: 0;
	}
	header {
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 1000;
		max-height: 150px;
		overflow: hidden
	}
	html {	
		scroll-padding-top: 150px;
	}
	main {
		margin-top: 150px;
		padding: 10px;
		overflow: visible;
	}
	#content {
		overflow-y: visible;
		overflow-x: auto;
	}
	#content table {
		width:100%;
	}
	.scroll-x {
	overflow-x: auto;
	}
}


@media only screen and (min-width: 980px) {
	div#hamburger-menu-button {
		visibility: hidden;
		width: 0;
	}
	#menu {
		/* width: 230px; */
		visibility: visible;
		/* min-width: 145px; */
		/* margin-right: -4%; */

		width: 250px;
		background: #fdfdfd;      /* Fast weißer, sehr edler Hintergrund */
		border: 1px solid #eaeaea; /* Ganz feine Begrenzung */
		border-radius: 12px;       /* Sanfte Abrundung des Kastens */
		padding: 20px 15px;        /* Mehr Platz für den Inhalt */
		box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Kaum sichtbarer Schatten für Tiefe */
		margin-right: 30px;        /* Abstand zum Hauptcontent */
		align-self: flex-start;
	}
	#menu span {
		font-weight: bold;
		color: #333;
		text-transform: uppercase;
		font-size: 0.8em;
		letter-spacing: 1px;
		display: block;
		margin-bottom: 10px;
		padding-bottom: 1em;
	}
	.vert_menu {
		list-style: none;
		padding: 0;
		margin: 10px 0;
		border-left: 2px solid #eee; /* Dezente vertikale Linie */
	}
	.vert_menu ul {
		font-size: smaller;
		margin-left: 10px;
	}
	.vert_menu a {
		display: block;
		padding-top: 8px;
		padding-bottom: 8px;
		padding-right: 15px;
		padding-left: 15px;
		color: #555;
		text-decoration: none;
		font-size: 0.95em;
		border-radius: 0 20px 20px 0; /* Abgerundete Kanten rechts */
		transition: all 0.2s ease;
	}
	.vert_menu a:hover {
		background-color: hsl(from var(--mainAccentLight) h 66% 57% / 0.2);
		color: var(--accent1VeryDark);
		padding-left: 20px; /* Kleiner Slide-Effekt */
		padding-right: 10px;
	}
	.vert_menu a.active-link{
		color: var(--accent1VeryDark);
		font-weight: bold;
		background-color: hsl(from var(--mainAccentLight) h 66% 57% / 0.4);
		border-left: 3px solid var(--accent1VeryDark);
		margin-left: -2px; /* Deckt die graue Linie ab */
	}
	#content {
		margin-left:  5%;
		margin-right: 5%;
	}
	header {
		position: fixed;
		height: 150px;
	}
	html {	
		scroll-padding-top: 150px;
	}
	main {
		margin-top: 150px;
	}
	.scroll-x {
	overflow-x: unset;
	}
}

/* Busieness Cards */
.business-card-container {
	display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    align-items: flex-end;
	flex-direction: row;
	max-width: 1100px;
	margin: 0 auto;
}
.business-card-container a {
	text-decoration: none;
    color: black;
}
.business-card {
	width: 100%;
	max-width: 351px;
    border: 3px solid;
    border-color: var(--medium);
    background: var(--light);
    border-radius: 10px;
    margin: 2px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
	box-shadow: 4px 3px 20px 0px rgba(0, 0, 0, 0.1);
}
.business-card-short {
	width: 261px;
	margin: 6px;
	height: 110px;
	position: relative;
	justify-content: right;
}
.business-card-shortB {
	min-width: 381px;
	margin: 6px 0;
	height: 75px;
	position: relative;
	justify-content: right;
}
.business-card img {
	max-width: 100px;
	max-height: 120px;
	border-radius: 10px;
	vertical-align: top;
}
.business-card-image {
	margin: 0.25em;
	height: 120px;
	align-content: center;
}
.business-card-image-short {
	margin: 0.25em;
	height: 60px;
	border-radius: 0;
	position: absolute;
	opacity: 0.2;
}
.business-card-image-short img{
	max-height: 100%;
}
.business-card-text-block{
	margin: 0.5em;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: space-between;
	text-align: right;
	/* height: -webkit-fill-available; */
}
.business-card-title{
	color: var(--mainAccentDark);
    font-size: medium;
	text-align: end;
}
.business-card-name{
	font-size: large;
	text-align: end;
}
.business-card-description{
	text-align: end;
}
.business-card-affiliation{
	font-size: smaller;
    color: var(--dark);
	text-align: end;
}

/* mobile Nav */
#mobileNav {
	display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
	text-align: end;
}

#mobileNav a{
    margin: 0.5em;
    margin-left: 2em;
    margin-right: 3vh;
    font-size: x-large;
    color: var(--accent1VeryDark);
    text-decoration: none;
    font-weight: bold;
}

.mobile-menu-open-bg {
	position: fixed;
	overflow-x: clip;
	overflow-y: scroll;
	animation: openMenu 0.5s ease forwards;
}
.mobile-menu-closed-bg {
	position: fixed;
	overflow-x: clip;
	overflow-y: clip;
	animation: closeMenu 0.5s ease forwards;
}
.mobile-menu-sublayer1 {
	font-size: large !important;
    margin-top: 0.1em !important;
    color: var(--dark) !important;
}

.mobile-menu-sublayer2 {
	font-size: large !important;
    font-weight: normal !important;
    margin-top: 0em !important;
    color: var(--dark) !important;
}

.mobile-menu-sublayer3 {
	font-size: medium !important;
    font-weight: normal !important;
    margin-top: 0em !important;
    color: var(--dark) !important;
}

@keyframes openMenu {
	0% {
		max-height: 150px;
		background: hsl(from var(--mainAccentLight) h 66% 57% / 0.4);
		backdrop-filter: blur(9.8px);
    	-webkit-backdrop-filter: blur(9.8px);
	}
	100% {
		max-height: 100%;
		background: hsl(from var(--mainAccentLight) h 66% 80% / 0.8);
		backdrop-filter: blur(12px);
    	-webkit-backdrop-filter: blur(12px);
	}
}
@keyframes closeMenu {
	0% {
		max-height: 100%;
		background: hsl(from var(--mainAccentLight) h 66% 80% / 0.8);
		backdrop-filter: blur(12px);
    	-webkit-backdrop-filter: blur(12px);
	}
	100% {
		max-height: 150px;
		background: hsl(from var(--mainAccentLight) h 66% 57% / 0.4);
		backdrop-filter: blur(9.8px);
    	-webkit-backdrop-filter: blur(9.8px);
	}
}

.content:has(div.publication-list) {
	max-width: max-content;
}

.article-links p {
    margin-bottom: 10px;
    text-align: left; /* Bei Links ist Blocksatz oft unschön, daher hier linksbündig */
}

.article-links a {
    font-weight: 500;
    text-decoration: none;
}

.article-links a:hover {
    text-decoration: underline;
}

msqrt > * {
  padding-top: 0.25ex;
}


/* Sliding Gallery */

  .sr-only{
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }

  .gallery{
    position: relative;
    width: 100%;
    max-width: 1040px;
    --slide-w: min(640px, 82vw);
    --gap: 24px;
  }

  .gallery-label{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hairline);
  }
  .gallery-label h2{
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 0.01em;
  }
  .gallery-label span{
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--sage);
  }

  /* track-shell is the non-scrolling wrapper the arrows are
     positioned against, so they stay put while .track-window
     scrolls inside it — an absolutely-positioned child of the
     element that actually scrolls would scroll away with it. */
  .track-shell{
    position: relative;
  }

  /* -----------------------------------------------------------
     SCROLLER — native overflow-x gives touch/trackpad momentum
     scrolling for free; script.js adds mouse-drag on top and
     drives the dim/focus effect and snapping-to-center via
     scrollLeft, never via page navigation.
  ----------------------------------------------------------- */
  .track-window{
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right,
      transparent 0, black 90px,
      black calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0, black 90px,
      black calc(100% - 90px), transparent 100%);
    scrollbar-width: none;
  }
  .track-window::-webkit-scrollbar{ display: none; }
  .track-window:active{ cursor: grabbing; }
  .track-window:focus-visible{
    outline: 2px solid var(--amber);
    outline-offset: 4px;
  }

  .track{
    list-style: none;
    margin: 0;
    display: flex;
    gap: var(--gap);
  }

  /* Real flex items, not padding, reserve the centering space
     before the first slide and after the last one. Browsers
     commonly drop a flex container's trailing padding from the
     scrollable area once its content overflows — so with padding
     alone, the last slide's centered scroll position is
     physically unreachable and it never finishes un-blurring, no
     matter how correct the JS math is. A real spacer box doesn't
     have this problem. */
  .spacer{
    flex: 0 0 calc((100% - var(--slide-w)) / 2);
  }

  .slide{
    --p: 0; /* 0 = centered/sharp, 1 = fully receded; set live by JS */
    flex: 0 0 var(--slide-w);
    width: var(--slide-w);
    scroll-snap-align: center;
    filter: blur(calc(var(--p) * 3px));
    opacity: calc(1 - var(--p) * 0.6);
    transform: scale(calc(1 - var(--p) * 0.08));
    cursor: pointer;
  }
  @media (prefers-reduced-motion: reduce){
    .slide{ transition: none; }
  }

  .frame{
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid var(--hairline);
    background: var(--ink-raised);
    pointer-events: none; /* clicks/drag are handled on .track-window */
	color: var(--light);
  }
  .frame img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .plate-index{
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    background: rgba(15, 29, 24, 0.72);
    color: var(--bone);
    padding: 4px 8px;
    border: 1px solid var(--hairline);
  }

  /* one shared prev/next pair per gallery, not one per slide.
     Positioned against .track-shell (see above), so they never
     move as the track scrolls. Vertical centering is computed
     against the image's own height (--slide-w at the frame's
     3:2 aspect ratio) rather than 50% of the whole card, which
     would land inside the caption text instead of the photo. */
  .arrow{
    position: absolute;
    top: calc((var(--slide-w) * 2 / 3) / 2);
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bone);
    background: rgba(15, 29, 24, 0.65);
    border: 1px solid var(--hairline);
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .arrow:hover{ background: rgba(15, 29, 24, 0.9); border-color: var(--amber); }
  .arrow:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }
  .arrow.prev{ left: 8px; }
  .arrow.next{ right: 8px; }

  figcaption{
    padding: 20px 2px 0;
  }
  .meta{
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
  }
  .meta h3{
    font-family: var(--serif);
    font-weight: 560;
    font-size: 1.35rem;
    margin: 0 0 4px;
  }
  .meta .region{
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--sage);
    font-size: 0.95rem;
  }
  .meta .coords{
    margin: 0;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--sage);
    white-space: nowrap;
  }
  .meta .copyright{
    margin: 0;
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--sage);
    /* white-space: nowrap; */
    text-align: right !important;
  }
  .desc{
    margin: 12px 0 0;
    max-width: 58ch;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark);
    opacity: 0.88;
  }

  /* dots are generated by script.js — one <button> per slide */
  .dots{
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 26px;
  }
  .dots button{
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hairline);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .dots button:hover{ background: var(--sage); }
  .dots button[aria-current="true"]{
    background: var(--amber);
    transform: scale(1.25);
  }
  .dots button:focus-visible{
    outline: 2px solid var(--amber);
    outline-offset: 3px;
  }

  @media (max-width: 480px){
    .gallery{ --slide-w: 100%; }
    .meta{ flex-direction: column; gap: 2px; }
    .arrow{ width: 32px; height: 32px; font-size: 1rem; }
    .track-window{ mask-image: none; -webkit-mask-image: none; }
  }