/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
footer {
    margin: 2em 0 1em;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

footer section {
    height: 1em;
    display: flex;
    align-items: center;
}

footer section img {
    height: 1em;
    margin: 0.05em 0 0 0.5em;
}
header {
    display: flex;
    align-items: center;
    height: 4rem;
    z-index: 10;
    padding: 1em;
    background-color: unset;
    position: fixed;
    width: 100%;
    max-width: 1000px;
    transition: background-color 0.2s linear, box-shadow 0.2s linear;
}

header.dark {
    transition: background-color 0.2s linear, box-shadow 0.2s linear;
    background-color: rgba(20, 20, 20, 0.6);
    box-shadow: none;
}

header img {
    height: 100%;
}

.spacer {
    flex-grow: 1;
}

.burger {
    width: 1.75em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    margin: 0 0.5em;
    transform-origin: center;
    will-change: transform;
    transition: transform 0.2s ease;
}

.burger:hover {
    transform: scale(1.075);
    transition: transform 0.2s ease;
}

.burger span {
    will-change: transform;
    display: block;
    height: 2px;
    width: 100%;
    background-color: #74121D;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) ;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

header nav.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s linear, visibility 0.2s linear;
}

header nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s linear, visibility 0.2s linear;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.9);
}

header nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

header nav ul li {
    font-family: "Italiana", serif;
    font-size: 2em;
    transition: color 0.2s ease;
}

header nav ul li:hover {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

header nav a {
    text-decoration: none;
}

header nav a:active {
    text-decoration: underline;
}

header nav a.active {
    text-decoration: underline;
}

header nav ul li.impressum {
    margin: 1rem 0 0 0;
    font-size: 1.25rem;
}
* {
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-family: "Poppins", sans-serif;
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100dvh;
    background-color: black;
    display: flex;
    justify-content: center;
}

#root {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-color: black;
    max-width: 1000px;
    flex: 1 1 auto;
    position: relative;
    align-self: stretch;
}

main {
    background-color: black;
    display: flex;
    flex-direction: column;
    flex: 100% 1 1;
    gap: 1em;
    margin: 4rem 0 0 0;
}

a {
    color: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Italiana", serif;
    text-align: center;
}

label:hover {
    cursor: pointer;
}
.italiana {
    font-family: "Italiana", serif;
}

h1 {
    font-size: 2em;
    font-weight: 500;
    margin: 0.5rem 0;
    letter-spacing: 0.05em;
}

.home-banner {
    height: 100dvh;
    position: relative;
    margin: 0;
    margin-top: -4rem;
}

.home-banner div {
    height: 100dvh;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.home-banner img {
    max-width: 1000px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    filter: brightness(70%);
}

main section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0.5em 2em;
    gap: 1em;
}

main section.socials {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

main section span {
    line-height: 1.10em;
}

main section > ul {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style-type: disc;
    gap: 0.5em;
    margin: 0 0 0 1em;
}

h3 {
    color: #74121D;
    font-size: 1.5em;
    flex-basis: 100%;
    text-align: center;
}

.social-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    font-size: 0.8em;
}

.social-badge ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.social-badge img {
    height: 3em;
}

.profile {
    border-radius: 50%;
    height: 5em;
}
strong {
    font-weight: 600;
}

.impressum {
    padding: 1em;
}
.albums-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.albums {
    display: grid;
    grid-template-columns: max-content;
    justify-content: space-evenly;
    gap: 1em;
    padding: 1em;
}

.albums div {
    width: auto;
    max-width: 8em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 0.5em 0;
}

.albums div:hover {
    cursor: pointer;
}

.albums div span {
    font-family: "Italiana", serif;
    font-size: 1.2em;
}

.albums div img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5em;
}

.albums a {
    text-decoration: none;
}

@media (min-width: 250px) {
    .album-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 100%;
    }

    .albums {
        grid-template-columns: repeat(2, minmax(0, 8em));
    }
}

@media (min-width: 700px) {
    .albums {
        grid-template-columns: repeat(4, minmax(0, 8em));
    }
}
.red {
    color: #74121D;
}

.gallery {
  display: grid;
  gap: 1em;
  padding: 1em;
  box-sizing: border-box;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  user-select: none;
  display: block;
  grid-row-end: span 2;
}

.gallery img.wide {
  aspect-ratio: 3 / 2;
  grid-row-end: span 2;
  display: unset;
}

.gallery .backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    backdrop-filter: blur(10px) brightness(50%);
    display: flex;
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.gallery .backdrop.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.gallery .backdrop img {
    height: auto;
    width: min(90vw, calc(80vh * 2 / 3));
    animation: zoomIn 300ms ease;
    opacity: 0;
    transition: opacity 300ms ease;
}

.gallery .backdrop img.wide {
    width: min(90vw, calc(80vh * 3 / 2));
}

.gallery .backdrop.active img {
    opacity: 1;
    transition: opacity 300ms ease;
}

.gallery .backdrop .close-icon {
    will-change: transform;
    position: absolute;
    top: 1em;
    right: 1em;
    width: 2em;
    aspect-ratio: 1 / 1;
    align-self: flex-start;
    transition: transform 0.2s ease;
}

.gallery .backdrop .close-icon:hover {
    cursor: pointer;
    transition: transform 0.2s ease;
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.96);
    }

    to {
        transform: scale(1);
    }
}

@media (min-width: 250px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img.wide {
      grid-column-end: span 2;
  }
}

@media (min-width: 750px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery img.wide {
    aspect-ratio: 4.1/3;
  }
}
.error-list {
    position: fixed;
    top: 0;
    right: 0;
    max-width: 70%;
    z-index: 9999;
    display: flex;
    height: calc(100% - 2rem);
    overflow-y: scroll;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1rem;
    pointer-events: none;
}

.error-list div {
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.error {
    background-color: #ef3e36;
}

.warning {
    background-color: #ff8600;
}

.info {
    background-color: #0496ff;
}

.success {
    background-color: #72b01d;
}
.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 1em;
}

.login form {
    margin: 2em 0 0 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.login form div {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.login form input {
    background-color: black;
    border: 1px solid grey;
    height: 2.5rem;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    outline: none;
    color: white;
}

.login form button {
    margin: 1em 0 0 0;
    font-size: 1.2em;
    background-color: black;
    height: 3rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid grey;
    color: white;
    font-weight: 600;
    font-family: "Italiana", serif;
}
.dashboard h2 {
    font-size: 1.2em;
}

.dashboard button {
    width: auto;
    margin: 0;
    border-color: white;
}
#loading {
    position: absolute;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100dvw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
    color: white;
}

#loading sub {
    font-family: "Italiana", serif;
}

.dashboard {
    flex: 1 1 auto;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    position: relative;
}

.home-icon {
    position: absolute;
    top: 0.5;
    left: 0.5rem;
    height: 2rem;
    padding: 0.5rem;
    border-radius: 0.3rem;
    backdrop-filter: brightness(50%);
    box-sizing: content-box;
}

.home-icon:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.dashboard-button {
    background-color: transparent;
    border-radius: 0.5rem;
    color: white;
    outline: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgb(78, 78, 78);
    width: max-content;
    margin: 0.5rem;
}

.dashboard-button a {
    text-decoration: none;
}

.dashboard-button:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-button:disabled:hover {
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.1);
}
div.album-selector {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: stretch !important;
}

div.album-selector:hover {
    cursor: pointer;
}

.album-selector span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid lightgrey;
    border-radius: 0.25rem;
}

.album-selector span:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.album-selector span img {
    height: 1.75rem !important;
}

.album-selector .dropdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    background-color: black;
    border: 1px solid white;
    border-radius: 0.25rem;
    padding: 1rem;
    position: absolute;
    top: 2.5rem;
    width: 100%;
}

.album-selector .dropdown li {
    padding: 0.25rem 0;
}

.album-selector .dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.image-browser-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-browser {
    display: grid;
    gap: 1em;
    box-sizing: border-box;
    grid-template-columns: 1fr;
    grid-auto-flow: dense;
}

.image-browser-main h2 {
    flex: 1 1 100%;
    text-align: left;
}

.image-browser .image-container {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    user-select: none;
    display: block;
    grid-row-end: span 2;
    position: relative;
}

.image-browser .image-container.wide {
    aspect-ratio: 3 / 2;
    grid-row-end: span 2;
    display: unset;
}

.image-browser .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-browser .image-container:hover {
    cursor: pointer;
}

.image-browser .image-container div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    backdrop-filter: brightness(50%);
    opacity: 1;
    transition: opacity 200ms ease, backdrop-filter 200ms ease;
}

.image-browser .image-container div img {
    width: 15%;
    height: auto;
}

.image-browser .image-container div img:hover {
   cursor: pointer;
   transform: scale(1.1);
}

.image-browser .image-container div.hidden {
    opacity: 0;
    backdrop-filter: brightness(100%);
    transition: opacity 200ms ease, backdrop-filter 200ms ease;
}

.image-browser .image-container div.hidden img {
    pointer-events: none;
}

.image-browser-main .upload {
    flex: 1 1 100%;
    background-color: black;
    color: white;
    padding: 0.5rem;
    outline: none;
    border: 1px solid lightgrey;
    border-radius: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-browser-main .upload input {
    display: flex;
}

.image-browser-main .upload input:hover {
    cursor: pointer;
}

.image-browser-main .upload button {
    max-width: unset;
    border-radius: 0.25rem;
}

button.delete-mode {
    flex: 1 1 100%;
    border-radius: 0.25rem;
    border: 1px solid white;
    max-width: unset;
    transition: background-color 0.1s ease;
}

.delete-mode.red {
    transition: background-color 0.1s ease;
    background-color: #e63946 !important;
}

.image-browser-main .upload div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 250px) {
    .image-browser {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-browser .image-container.wide {
        width: 100%;
        grid-column-end: span 2;
    }

    .image-browser .image-container div img {
        width: 8dvw;
    }
}

@media (min-width: 700px) {
    .image-browser {
        grid-template-columns: repeat(3, 1fr);
    }

    .image-browser .image-container.wide {
        aspect-ratio: 4.1/3;
    }

    .image-browser .image-container div img {
        width: auto;
        height: 10%;
    }
}
.albums-table {
    align-self: stretch;
}

.albums-table tbody, .albums-table thead {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.albums-table tr {
    display: flex;
    align-items: center;
    gap: 1em;

}

.albums-table td {
    flex: 1 1 33%;
    height: 4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.albums-table img {
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.25em;
}

.albums-table td button {
    padding: 0;
    border: 0;
    border-radius: 0;
    height: 40%;
}

.dashboard form {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    gap: 1em;
}

.dashboard form input {
    background-color: inherit;
    padding: 0.4rem;
    color: white;
    border: 1px solid white;
    border-radius: 0.25rem;
    outline: none;
    max-width: 100%;
}

.dashboard form :disabled {
    filter: brightness(50%);
}

.dashboard form section {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0.5em;
}

.dashboard form img {
    height: 8em;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.dashboard .close-icon {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 2em;
}

.dropdown-image-browser {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.dropdown-image-browser > div {
    padding: 1em;
    background-color: black;
    width: 70%;
    max-height: 80dvh;
    overflow-y: scroll;
    border: 1px solid lightgrey;
    border-radius: 0.25rem;
    top: 3rem;
}
.users-table {
    align-self: stretch;
}

.users-table tbody, .users-table thead {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.users-table tr {
    display: flex;
    align-items: center;
    gap: 1em;

}

.users-table td {
    flex: 1 1 33%;
    height: 4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.users-table img {
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0.25em;
}

.users-table td button {
    padding: 0;
    border: 0;
    border-radius: 0;
    height: 40%;
}


