*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: inherit;
}

p {
    margin: 0;
}

img {
    display: block;
}

.imageColumn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.itemImages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.itemImages figure {
    margin: 0;
    padding: 0;
    width: 100%;
}

.itemImages img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.25rem;
    background: #f3f4f6;
}

html,
body {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

header {
    height: 3rem;
    flex-shrink: 0;
    background-color: white;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header div {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
    display: flex;
    align-items: center;
}

header .subtitle {
    font-size: 0.875rem;
    font-weight: 400;
    color: #718096;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    padding-left: 0.5rem;
}

#menu-button {
    display: block;
    color: #1e3a8a;
    font-size: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#main-menu {
    display: none;
    color: #1e3a8a;
    font-weight: 500;
}

#main-menu a {
    margin-left: 1rem;
}

#main-menu a:first-child {
    margin-left: 0;
}

#main-menu a:hover {
    text-decoration: underline;
}

#main-menu input {
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
}


#mobile-menu {
    display: none;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
}

#mobile-menu>*+* {
    margin-top: 0.5rem;
}


#mobile-menu a {
    display: block;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    color: #1a365d;
}

#mobile-menu input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

main.homepage {
    display: flex;
    flex: none;
    height: calc(100dvh - 6rem);
}

#map {
    flex: 1;
    min-height: 300px;
}

.highlights-column {
    width: 100%;
    height: 100%;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    background: white;
}


.highlights-content {
    padding: 0 0.5rem 0.5rem 0.5rem;
}

.highlights-scroll {
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.highlights-scroll h2 {
    margin-top: 0;
}

#selectionbox-content {
    padding: 0.5rem;
}


h1 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: 0.5rem;
    color: #1e3a8a;
}

h2 {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 0;
    color: #1e3a8a;
}
h3 {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #1e3a8a;
    margin-bottom: 0;
    margin-top: 0;
}

strong {
    color: #1e3a8a;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.font-semibold {
    font-weight: 600;
}

.text-white {
    color: white;
}

.underline {
    text-decoration: underline;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}


.highlight-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.centered-flex {
    display: flex;
    align-items: center;
}

.highlight-image {
    width: 100%;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.selection-overlay {
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
}

.selection-overlay-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
    color: white;
}

.selection-no-image {
    background-color: #374151;
    padding: 0.75rem;
    border-radius: 0.25rem;
}

.empty-message {
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.highlight-box {
    background-color: #f3f4f6;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.highlight-info {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
}

footer {
    font-size: 0.875rem;
    color: #718096;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.footerbox {
    border-top: 1px solid rgb(209, 213, 219);
    padding-top: 0.25rem;
}

#footerhead {
    text-align: center;
    font-weight: 600;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.footercontent {
    margin-top: 0.5rem;
}

.footerline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-logolink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.languageselector {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-text a {
    text-decoration: underline;
}

@media (min-width: 768px) {
    #menu-button {
        display: none;
    }

    #main-menu {
        display: flex;
        align-items: center;
    }

    #mobile-menu {
        display: none !important;
    }

    .highlights-column {
        width: 25%;
    }

    #selectionbox-content {
        padding-top: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
        height: auto;
    }

    #map {
        max-height: 350px;
    }
}

.marker-icon {
    background-image: url('/images/markers.png');
    background-size: auto;
    width: 32px;
    height: 37px;
    display: inline-block;
    background-position: 0 0;
}

.marker-icon[data-icon-type="1"] {
    background-position-x: -0px;
}

.marker-icon[data-icon-type="2"] {
    background-position-x: -32px;
}

.marker-icon[data-icon-type="3"] {
    background-position-x: -64px;
}

.marker-icon[data-icon-type="4"] {
    background-position-x: -96px;
}

.marker-icon[data-icon-type="5"] {
    background-position-x: -128px;
}

.marker-icon[data-icon-type="6"] {
    background-position-x: -160px;
}

.marker-icon[data-icon-type="7"] {
    background-position-x: -192px;
}

.marker-icon[data-icon-type="8"] {
    background-position-x: -224px;
}

.marker-icon[data-icon-type="9"] {
    background-position-x: -256px;
}

.marker-icon[data-icon-type="10"] {
    background-position-x: -288px;
}

.marker-icon[data-icon-type="11"] {
    background-position-x: -320px;
}

.marker-icon[data-icon-type="12"] {
    background-position-x: -352px;
}

.marker-icon[data-icon-type="13"] {
    background-position-x: -384px;
}

.marker-icon[data-icon-type="14"] {
    background-position-x: -416px;
}

.marker-icon[data-icon-type="15"] {
    background-position-x: -448px;
}

.marker-icon[data-icon-type="16"] {
    background-position-x: -480px;
}

.marker-icon[data-icon-type="17"] {
    background-position-x: -512px;
}

.marker-icon[data-icon-type="18"] {
    background-position-x: -544px;
}

.marker-icon[data-icon-type="19"] {
    background-position-x: -576px;
}

.marker-icon[data-icon-type="20"] {
    background-position-x: -608px;
}

.marker-icon[data-icon-type="21"] {
    background-position-x: -640px;
}

.marker-icon[data-icon-type="22"] {
    background-position-x: -672px;
}

.marker-icon[data-icon-type="23"] {
    background-position-x: -704px;
}

.marker-icon[data-icon-type="24"] {
    background-position-x: -736px;
}

.marker-icon[data-icon-type="25"] {
    background-position-x: -768px;
}

.sitelist {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

.sitelist ul {
    list-style: none;
    margin-left: 0;
    margin-top: 0.5rem;
    padding-left: 0;
}
.sitelist li {
    margin-bottom: 0.5rem;
}

.sitelist a {
    color: #1e3a8a;
    font-weight: 600;
    text-decoration: none;
}

.pswp__dynamic-caption a:hover,
.sitelist a:hover {
    text-decoration: underline;
}

.marker-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5em;
}

.marker-text {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    word-break: break-word;
    display: inline-block;
    vertical-align: top;
}

figure {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    border-radius: 0.25rem;
}

#my-gallery a img {
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.2s;
    cursor: zoom-in;
}

#my-gallery a:hover img,
#my-gallery a:focus img {
    transform: scale(1.1); 
    /* box-shadow: 0 2px 12px rgba(0,0,0,0.10);  */
    z-index: 2;
}

.hr {
    height: 1px;
    background: #ccc;
    width: 100%;
}

main.margin {
    margin: 1.5rem;
}