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

:root {
    --primary-color: #f86f00;
    --text-color: black;
}

@font-face {
    font-family: myFont;
    src: url(/font/aggy-Regular_v3.woff2);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: helvetica, sans-serif;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.3em;
    /* padding: 15px; */
    height: 100vh;
    overflow: hidden;
}

/* /////////////// SEO /////////////// */

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

/* /////////////// debugging /////////////// */

/* div {
    border: 1px solid red;
}

.debug {
    border: 1px solid blue;
} */

/* /////////////// testing /////////////// */

img, .no-select, .aggy {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

body, html {
  user-select: none;          /* Standard */
  -webkit-user-select: none;  /* Safari/Chrome */
  -ms-user-select: none;      /* IE/Edge */
}

.wrapper {
  user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
}


/* /////////////// logo /////////////// */


#logo-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.logo-container {
    width: 100%;
    height: auto;
    /* padding: 60px 60px; */
    z-index: -10000;
    /* background-color: red; */
}

.logo {
    margin-top: 55px;
    margin-left: 50px;
    width: calc(30% - 25px);
    height: auto;
}

/* /////////////// adress etc. /////////////// */

.aggy {
    font-family: myFont;
    font-size: 0.9em;
}

address.toolong {
    word-break: break-word;
}

span.aggy {
    margin-right: 10px;
    display: inline-block;
}

a.email {
    line-height: 1.3em;
    /* cursor: pointer; */
    white-space: nowrap;
    color: var(--text-color);
    text-decoration: none;
    }

a.email:hover {
    color: var(--primary-color) !important; 
    text-decoration: underline;
}

a.email:active {
    text-decoration: none;
} 


a.email:visited {
    color: var(--text-color);
    text-decoration: none;
}

address {
    display: inline-block;
    text-decoration: none;
    font-style: normal;
    font-size: 0.9em;
    vertical-align: top;
}

/* /////////////// body styling /////////////// */

.row {
    position: fixed;
    display: flex;
    margin-left: 50px;
    top: 0;
    height: 100vh;
    gap: 50px;
    width: 60%;
}

.column {
    padding-top: 50vh;
    flex: 1;
    overflow-y: auto;
    height: auto;
    flex-direction: column;

    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.column::-webkit-scrollbar {
    width: 0;
    height: 0;
}

h2 {
    padding-top: 0.7em;
    padding-bottom: 1em;
    font-family: helvetica;
    font-size: 1em;
    font-weight: bolder;
    color: var(--text-color);
    text-align: center;
    line-height: 1.4em;
}

p:first-of-type {
    padding-top: 0.7em;
}

.item:last-child {
    padding-bottom: 500px;
}

.toolong {
    hyphens: auto;
}

.item {
    border-top: 1px solid var(--text-color);
    padding-top: 0.5em;
    margin-bottom: 20px;
}

    /* JS will dynamically set height */

.spacer {
    height: 0;
    min-height: 10px;
    /* background-color: red; */
    margin-bottom: 20px;
}

/* copyright padding last div */

.b>div:last-child {
    padding-top: 0.9em;
    /* background-color: red; */
}

/* /////////////// image gallry etc. /////////////// */


#imageContainer {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    height: 100dvh;
    width: 100%;

    overflow: hidden;
    z-index: 1000;

    /* iOS flicker prevention */
    transform: translateZ(0);

}

/* When screensaver is shrunk, let pointer events pass through */
#imageContainer.shrunk {
    pointer-events: none;
}

/* Keep images themselves clickable */
#imageContainer.shrunk .Image {
    pointer-events: auto;
    cursor: pointer;
}

/* Hidden state (optional fade-out) */
#imageContainer.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.6s ease;
}

/* /////////////// images /////////////// */

.Image {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    height: 90%;
    width: auto;
    max-width: 80%;
    max-height: auto;

    object-fit: cover;

    opacity: 0;
    transition: opacity 1s;

    /* iOS Safari fix */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

            /* border: 1px green solid; */
}

.Image.active {
    opacity: 1;
}

/* Small gallery size */

.Image.small-size {
    height: 100px !important;
    width: auto !important;
    max-width: none;
    position: fixed !important;

    transform: translateX(50%) !important;

    /* old setup */
        /* top: 90% !important;
        left: 90% !important; */
        /* transform: translate(-50%, -50%) !important; */
    /* old setup */

    top: auto !important;
    left: auto !important;
    bottom: 70px !important;
    right: 200px !important;

    z-index: 10;

    pointer-events: auto;
    /* still clickable */
}


a.my-links {
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.3em;
    cursor: pointer;
    white-space: nowrap;
}

.my-links:hover {
    text-decoration: underline;
}

.no-link:hover {
    color: rgb(204, 204, 204) !important;
    text-decoration: line-through;
}

.no-link:active {
}

.my-links:focus {
 font-weight: bold;
}

.my-links:active {
    /* color: #000000; */
    text-decoration: none;
}

.my-links:visited {
    /* color: inherit; */
}

/* Container to allow line breaks at commas */

.csv-links-container {
    white-space: normal;
}

.my-links.hovered {
    color: var(--primary-color);
    /* text-decoration: underline; */
}


/* Mobile: single column */
@media (max-width: 768px) {


.Image.small-size {
/* top: 90% !important;
left: 70% !important;
transform: translate(-50%, -50%) !important; */

bottom: 5% !important;
right: 29% !important;
}

body {
margin: 0;
/* height: auto; */
font-size: 1.2em;
padding: 0;
}

address {
font-size: 0.95em;
}


html,
body {
    overflow: visible;
    /* allow page scroll on mobile */
    height: auto;
    /* let content define height */
}

.row {
    position: relative;
    display: block;
    width: 100%;
    margin: 50vh 0 auto 0;
    padding: 0 25px 50px 25px;
    /* start halfway down viewport */
    gap: 0;
    height: auto;
}

a.my-links {
  white-space: normal;
}

.column {
    padding-top: 0;
    padding-bottom: 0px;
    overflow: visible;
    flex: none;
    width: 100%;
}

.item:last-child {
    padding-bottom: 0px;
}

.toolong {
    hyphens: auto;
}

.logo-container {
    width: 100%;
    height: auto;
    padding: 40px 25px;
}

.logo {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    
}

.Image {
    height: auto;
   width: 80%;
  /* width: 120vw;
    max-width: 80%; */
    max-height: auto;
}

.column {
    /* or 'scroll' if you want scrollbars visible */
    scrollbar-width: auto;
    -webkit-overflow-scrolling: auto;
}

.column::-webkit-scrollbar {
    width: initial;
    height: initial;
}

.spacer {
    display: none;
}

}