:root {
    --col-bg: #f4f0e8;
    --col-bg-2: #dedad2;
    --col-fg: #111111;
    --col-accent-1: #008080;
    --col-accent-2: #03c4c4;
    --blue-dark: #26A;
    --blue-light: #4DE;
}

body {
    background-color: var(--col-bg);
    color: var(--col-fg);
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
    font-size: 2.25em;
    margin: 0px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    transition: color 0.3s, transform 0.3s;
    color: var(--col-accent-1) !important;
}
h1:hover {
    transform: scale(1.05);
    color: var(--col-accent-2) !important;
}
h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background-color: var(--col-accent-1);
    transition: transform 0.5s;
    transform: scaleX(0);
    transform-origin: left;
}
h1:hover::after {
    transform: scaleX(1);
}
h2 {
    font-size: 1.75em;
    margin: 24px 8px 8px 0px;
}
h3 {
    font-size: 1.5em;
    margin: 18px 6px 6px 0px;
}
h4 {
    font-size: 1.25em;
    margin: 12px 4px 4px 0px;
}
h5 {
    font-size: 1.17em;
    margin: 10px 4px 4px 0px;
}
h6 {
    font-size: 1em;
    margin: 4px 4px 4px 0px;
}
p {
    font-size: 1em;
    margin: 2px 2px 2px 0px;
}
a {
    color: var(--blue-dark);
    text-decoration: none;
}
a:hover {
    color: var(--blue-light);
    cursor: pointer;
}
a:visited {
    font-style: italic;
}
li {
    margin-left: 16px;
    list-style-type: disc;
}

button {
    border-radius: 4px;
    display: flex;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    height: 52px;
}

article {
    padding-bottom: 40px;
}

@media (orientation: landscape)  {
    .content {
        padding: 16px;
        padding-left: 15vw;
        padding-right: 15vw;
    }
    .lightbox img {
        max-width: 80%;
        max-height: 80%;
    }
    .footer {
        position: fixed;
        bottom:0;
        right:1vw;
    }
}
@media (orientation: portrait) {
    .content {
        padding: 16px;
        padding-left: 2vw;
        padding-right: 2vw;
    }
    .lightbox img {
        max-width: 95%;
        max-height: 95%;
    }
    .footer {
        display: none;
    }
}

.gallery {
    margin: auto;
    display: grid;
    gap: 20px;
}
.gallery-searchbar-container {
    display: flex;
    align-items: center;
    gap: 0.75em;
}
.gallery-searchbar {
    flex: 1;
    padding: 0.5em;
    margin-right: 1em;
}
.gallery-carousel-container {
    display: inline-flex;
    transition: transform 0.5s ease;
    width: 100%;
}
.gallery-carousel-image {
    min-width: 100%;
    object-fit: contain;
}
.gallery-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.gallery-carousel-nav.left {
    left: 10px;
}
.gallery-carousel-nav.right {
    right: 10px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 255;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.lightbox.show {
    display: flex;
}

.lazy-image-wrapper {
    position: relative;
    overflow: hidden;
    align-items: baseline;
    padding-bottom: 20px;
}
.lazy-image-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 1000px;
    width: auto;
    height: auto;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: contain;
}
.lazy-image-wrapper p {
    margin: auto;
    text-align: center;
    text-wrap: pretty;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--col-bg);
    border-top: 4px solid var(--col-accent-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}
.spinner-container {
    padding: 50px;
}

.lightbox-buttons {
    position: absolute;
    top: 10vh;
    right: 5vw;
}