:root {
    --theme-font-size: 14pt;
    --theme-font-weight: 400;
    --theme-title-font-size: 28pt;
    --theme-title-font-weight: 600;
    --theme-bold-font-weight: 800;
    --theme-caption-max-width: 400pt;
    --theme-bgcolor: #F0F0F0;
    --theme-bgcolor-dark: #040404;
    --theme-text-color: black;
    --theme-text-color-dark: #E8E8E8;
    --theme-font-family: futura-pt, sans-serif;
    --theme-reverse-bgcolor: #aaaaaa;
    --theme-reverse-bgcolor-dark: #202020;
    --theme-reverse-text-color: #FFFFFF;
    --theme-reverse-text-color-dark: #727272;

    --theme-title-font-size-smaller: 18pt;

    --theme-link-color: #004DAB;
    --theme-link-visited-color:#00367A ;
    --theme-link-hover-color:  #02B841;
    --theme-link-active-color: #FF7300;
    
    --theme-link-color-dark: #3AB07B ;
    --theme-link-visited-color-dark:#32996B ;
    --theme-link-hover-color-dark:  #FF25D2;
    --theme-link-active-color-dark: #6DE1FF;

    --theme-color-transition: 0.5s;

    --theme-button-border-width: 2pt;
    --theme-button-border-radius: 3.5pt;
    --theme-button-font-size: 11pt;
    --theme-button-padding: 4pt;
}

@media screen and (max-width: 800px) {
    :root {
        --theme-font-size: 11pt;
        --theme-title-font-size: 18pt;

        --theme-title-font-size-smaller: 12pt;

        --theme-button-border-width: 1.5pt;
        --theme-button-border-radius: 2.75pt;
        --theme-button-font-size: 9pt;
        --theme-button-padding: 3pt;
    }

  }

body {
    margin: 0;
    font-size: var(--theme-font-size);
    font-family:var(--theme-font-family);
    font-weight: var(--theme-font-weight);
    color: var(--theme-text-color);
    background-color: var(--theme-bgcolor);
}

article {
    margin-left: 4rem;
    margin-top: 1rem;
    margin-right: 4rem;
    max-width: 50rem;
    line-height: normal;
}


post {
    display: block;
    line-height: normal;
}

post p {
    max-width: 50rem;
    margin-left: 4rem;
    margin-right: 4rem;
}

post h1 {
    max-width: 50rem;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

post h2 {
    max-width: 50rem;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

post h3 {
    max-width: 50rem;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

post h4 {
    max-width: 50rem;
    margin-left: 4rem;
    margin-right: 4rem;
}

a.button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-style: solid;
    border-width: var(--theme-button-border-width);
    border-radius: var(--theme-button-border-radius);
    font-size: var(--theme-button-font-size);
    font-weight: 600;
    padding: var(--theme-button-padding);
    text-decoration: none;
    color: var(--theme-link-color);
    transition: var(--theme-color-transition);
}

.button:hover {
    color: var(--theme-link-hover-color);
    border-color: var(--theme-link-hover-color);
}

.button:active {
    color: var(--theme-link-active-color);
    border-color: var(--theme-link-active-color);
}

a:link {
    color: var(--theme-link-color);
    transition: var(--theme-color-transition);
}

a:hover {
    color: var(--theme-link-hover-color);
    border-color: var(--theme-link-hover-color);
    transition: var(--theme-color-transition);
}

a:visited {
    color: var(--theme-link-visited-color);
    border-color: var(--theme-link-visited-color);
    transition: var(--theme-color-transition);
}

a:active {
    color: var(--theme-link-active-color);
    border-color: var(--theme-link-active-color);
    transition: var(--theme-color-transition);
}


.photoColumn {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
}

.photoFrame {
    display: flex;
    justify-content: center;
}


.photoviewPhotoInfo {
    max-width: var(--theme-caption-max-width);
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.photoMetadata {
    font-size: 75%;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.photoMetadataSection {
    margin-bottom: 1rem;
}

.photoTitle {
    font-size: 100%
}

.photoCaption {
    font-size: 95%;
    font-style: italic;
}

.photoColunFooter {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.photoPageFooter {
    background-color: var(--theme-reverse-bgcolor);
    color: var(--theme-reverse-text-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
}

.photoPageFooter div {
    margin: 1rem;
    font-size: 80%;
}

.siteTitle {
    font-size: var(--theme-title-font-size);
    font-weight: var(--theme-title-font-weight);
    margin-left: 0.5 rem;
    margin-right: 0.5 rem;
}

.siteTitleForPosts {
    font-size: var(--theme-title-font-size-smaller);
    font-weight: var(--theme-title-font-weight);
    margin-left: 0.5 rem;
    margin-right: 0.5 rem;
}

.homePageHeader {
    background-color: var(--theme-bgcolor);
    color: var(--theme-text-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.homePageFooter {
    background-color: var(--theme-bgcolor);
    color: var(--theme-text-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-end;
}

.homePageFooter div {
    margin: 1rem;
    font-size: 80%;
}

div.cmsControlPanel {
    padding-left: 0.5rem;
    font-size: 75%;
}

div.indexnavbar {
    margin-bottom: 2rem;
    width: 100%;
}

div.navbarinset {
    margin-left: 2rem;
    margin-right: 1rem;
    border-top: 2px solid var(--theme-link-color);
}

.indexnavbar h3, h4 {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

div.navbuttons {
    line-height: 210%;
    line-break: strict;
}

div.indexPath {
    margin: 0.5rem;
}

button.indexButton {
    scale: 75%;
}

a.indexPathLink {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-style: none;
    font-size: var(--theme-button-font-size);
    font-weight: 600;
    text-decoration: none;
    color: var(--theme-link-color);
    transition: var(--theme-color-transition);
    margin-left: 0.5rem;
}

a.indexPathLink:first-child {
    margin-left: 0;
}

.indexPathLink:hover {
    color: var(--theme-link-hover-color);
    border-color: var(--theme-link-hover-color);
}

.indexPathLink:active {
    color: var(--theme-link-active-color);
    border-color: var(--theme-link-active-color);
}

p.DRNotification {
    font-size: 75%;
    font-weight: var(--theme-bold-font-weight);
}

a.DRNotificationLink {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border-style: none;
    font-weight: var(--theme-bold-font-weight);
    text-decoration: none;
    color: var(--theme-link-color);
    transition: var(--theme-color-transition);
}

a.DRNotificationLink:hover {
    color: var(--theme-link-hover-color);
    border-color: var(--theme-link-hover-color);
}

a.DRNotificationLink:active {
    color: var(--theme-link-active-color);
    border-color: var(--theme-link-active-color);
}

div#updateStatusPanel {
    border: solid 1px blue;
}

div#updateStatusPanel.updateStatusNormal {
    display: none;
}

div#updateStatusPanel.updateStatusProgress {
    display: block;
}

div#updateStatusPanel.updateStatusError {
    display: none;
}

div#updateStatusPanel.updateStatusUpdated {
    display: block;
}

div#updateErrorPanel.updateStatusError {
    border: solid 1xp red;
}

div#updateErrorPanel.updateStatusNormal {
    display: none;
}

div#updateErrorPanel.updateStatusProgress {
    display: none;
}

div#updateErrorPanel.updateStatusError {
    display: block;
}

div#updateErrorPanel.updateStatusUpdated {
    display: none;
}

div#updateInputPanel {
    display: block;
}

div#updateInputPanel.updateStatusNormal {
    display: block;
}

div#updateInputPanel.updateStatusProgress {
    display: none;
}

div#updateInputPanel.updateStatusError {
    display: none;
}

div#updateInputPanel.updateStatusUpdated {
    display: block;
}

div#hdrTestPhoto {
    margin-left: 2rem;
    padding: 1rem;
    font-size: 80%;
    border-left: solid 2pt var(--theme-reverse-text-color);
}

@media (prefers-color-scheme: dark) {
   
    body {
        color: var(--theme-text-color-dark);
        background-color: var(--theme-bgcolor-dark);
    }

    .photoPageFooter {
        background-color: var(--theme-reverse-bgcolor-dark);
        color: var(--theme-reverse-text-color-dark);
    }

    .homePageFooter {
        color: var(--theme-text-color-dark);
        background-color: var(--theme-bgcolor-dark);
    }

    .homePageHeader {
        color: var(--theme-text-color-dark);
        background-color: var(--theme-bgcolor-dark);
    }

    a.button {
        color: var(--theme-link-color-dark);
    }

    .button:hover {
        color: var(--theme-link-hover-color-dark);
        border-color: var(--theme-link-hover-color-dark);
    }
    
    .button:active {
        color: var(--theme-link-active-color-dark);
        border-color: var(--theme-link-active-color-dark);
    }
    
    a:link {
        color: var(--theme-link-color-dark);
        transition: var(--theme-color-transition);
    }
    
    a:hover {
        color: var(--theme-link-hover-color-dark);
        border-color: var(--theme-link-hover-color-dark);
        transition: var(--theme-color-transition);
    }
    
    a:visited {
        color: var(--theme-link-visited-color-dark);
        border-color: var(--theme-link-visited-color-dark);
        transition: var(--theme-color-transition);
    }
    
    a:active {
        color: var(--theme-link-active-color);
        border-color: var(--theme-link-active-color-dark);
        transition: var(--theme-color-transition);
    }
}


@media (dynamic-range: standard) {
    .onlyVisible4HDR {
        visibility: hidden;
    }
}
@media (dynamic-range: high) {
    .onlyVisible4HDR  {
        visibility: visible;
    }
}

@media (dynamic-range: standard) {
    .onlyDisplayBlock4HDR {
        display: none;
    }
}
@media (dynamic-range: high) {
    .onlyDisplayBlock4HDR  {
        display: block;
    }
}

@media (dynamic-range: standard) {
    .onlyDisplayBlock4SDR {
        display: block;
    }
}
@media (dynamic-range: high) {
    .onlyDisplayBlock4SDR  {
        display: none;
    }
}

.inlineBlockWithJXLSupport {
    display: none;
}

@supports (background-image: -webkit-image-set(url('/css/small.jxl') 1x)) {
    .inlineBlockWithJXLSupport {
        display: inline-block;
    }
}

.postPhotoGrid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 1rem;
    margin-right: 1rem;
    margin-left: 1rem;
    margin-top: 2rem;
}

.postPhotoGridCell {
    display: block;
    flex-grow: 1;
    flex-basis: 10%;
}

