
/* #region Site-wide styles */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body { 
  font-family: 'Segoe UI', Arial, sans-serif;
/*
  font-family: Arial, sans-serif;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-family: Helvetica, Arial, sans-serif;
  font-family: Verdana, Arial, sans-serif;
  font-family: Geneva, Arial, sans-serif;
  font-family: Montserrat, Arial, sans-serif;
  font-family: 'Open Sans', sans-serif;
  font-family: Roboto, Arial, sans-serif;
*/
    margin: 0;
    padding: 0;
}

h1 {
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.2em;
}
/* #endregion Site-wide styles */
/* #region Header Styles */
.site-header {
    width: 100%;
    background-color: #fff4e8;
    color: white;
    padding: 10px 40px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 80px;
    margin-right: 20px;
}

.site-title-group {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 2.5em;
    margin: 0;
    font-weight: normal;
    color: #9d8479;
}

/* Hide link styling for site title, but keep accessibility */
.site-title a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.site-title a:visited {
    color: inherit;
}
.site-title a:focus {
    outline: 2px solid #5c4033;
    outline-offset: 2px;
}

.site-tagline {
    font-size: 1.2em;
    margin: 5px 0 0 0;
    color: #000;
}

.site-nav {
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    margin-top: -8px;
    margin-right: -5px;
    transition: max-height 0.3s, opacity 0.3s;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    margin-left: 16px;
    cursor: pointer;
}

@media (max-width: 800px) {
    .nav-toggle {
        display: block;
    }
    .site-nav {
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        background: #f5deb3;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        width: 100px;
        max-width: 100px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        z-index: 1001;
        border-radius: 0 0 8px 8px;
        border: 1px solid #e0cfa9;
        margin: 0;
        padding: 0 0 8px 0;
    }
    .site-nav.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
        transition: max-height 0.3s, opacity 0.3s;
        border-top: none;
    }
    .site-nav a {
        margin: 10px 0 0 0;
        font-size: 1.1em;
        padding: 10px 16px;
        display: block;
    }
}

.site-nav a {
    color: #000;
    text-decoration: none;
    margin-right: 8px;
    font-size: 0.85em;
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    transition: background-color 0.2s;
}

.site-nav a:last-child {
    margin-right: 0;
}

.site-nav a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
/* #endregion Header Styles */
/* #region Content Area */
.content {
    max-width: none;
    margin: 2em auto;
    padding: 0 5vw;
    box-sizing: border-box;
}
.notes { 
    max-width: 1000px;
    margin: 0.25em auto 0.25em auto;
    background: #f9f9f9; 
    padding: 1em; 
    border-radius: 6px; 
}
.notes p:first-child { margin-top: 0; }
.notes p:last-child { margin-bottom: 0; }
/* #endregion Content Area */
/* #region image viewer Styles */
.image-viewer-wrapper {
    max-width: fit-content;
    margin: 0 auto;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.meta-row {
    position: relative;
    margin-bottom: 0;
}

.meta { 
    text-align: center;
}

.meta-button {
    position: absolute;
    bottom: 0;
    text-decoration: none;
    color: white;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 4px 4px 0 0;
    font-size: 0.7em;
    transition: background-color 0.2s;
    z-index: 2;
}
.meta-button:hover {
    background-color: #555;
}
.meta-left {
    left: 0;
}
.meta-right {
    right: 0;
}
.showcase-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: fit-content;
    margin: 0 auto;
}

.showcase-img { 
    max-width: 90vw; 
    max-height: 70vh; 
    height: auto;
    display: block; 
    margin: 0 auto 0em auto; 
}
/* #endregion image viewer Styles */


/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 90vw;
    width: 100%;
    margin: 0.25em auto;
    gap: 1em;
}

.nav-btn {
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.nav-btn:hover {
    background-color: #555;
}

.nav-btn.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* #endregion Series Pages Styles */
    
/* #region Gallery Grid - used for both all-series and single-series views */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 400px));
    gap: 1.5em;
    margin: 2em 0;
    justify-content: center;
}

.gallery-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.series-card-content {
    padding: 1em;
}

.series-card-title {
    font-size: 1.2em;
    font-weight: 500;
    margin: 0 0 0.5em 0;
    color: #333;
}

.series-card-count {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 0.5em 0;
}

.series-card-description {
    font-size: 0.85em;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Series/Gallery description and shared elements */
.series-description {
    max-width: 1000px;
    margin: 0 auto 2em auto;
    text-align: center;
    color: #666;
    font-size: 1.1em;
}

.thumbnail-image {
    width: 400px;
    height: 225px;
    object-fit: contain;
    display: block;
    background-color: #000;
}

.thumbnail-label {
    padding: 0.5em;
    text-align: center;
    font-size: 0.9em;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

.thumbnail-number {
    font-weight: 500;
    color: #333;
}

/* Artwork Page */
.breadcrumb {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #333;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5em;
    color: #999;
}

.series-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    max-width: 90vw;
    margin: 0.25em auto;
}

.series-btn {
    text-decoration: none;
    padding: 0.5em 1em;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s;
    display: inline-block;
}
.series-btn.nav {
    background-color: #333;
}
.series-btn.nav:hover {
    background-color: #555;
}
.series-btn.nav.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
}
.series-btn.home {
    background-color: #666;
    padding: 0.5em 1.2em;
}
.series-btn.home:hover {
    background-color: #777;
}

.showcase-link {
    text-align: center;
    margin: 1em auto;
}

.showcase-link a {
    display: inline-block;
    padding: 0.6em 1.5em;
    background-color: #5c4033;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95em;
    transition: background-color 0.2s;
}

.showcase-link a:hover {
    background-color: #7a5544;
}

/* Scroll Button (mode switch) */
.scroll-btn {
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    color: white;
    background-color: #5c4033;
    padding: 6px 14px;
    border-radius: 0 0 0 8px;
    font-size: 0.7em;
    z-index: 2;
    transition: background-color 0.2s;
}
.scroll-btn:hover {
    background-color: #7a5544;
}

/* Scroll Container Styles */

/* Image Viewer Wrapper */


/* Showcase and Artwork Scroll Items */
/* Common showcase item structure (used in both single and scroll views) */


/* Scroll-specific separator for stacked items */
.scroll-item-separator {
    padding: 3em 0 0 0;
    position: relative;
    border-bottom: 2px solid #ddd;
}

.scroll-item-separator:first-of-type {
    padding-top: 0;
}

.scroll-item-separator:last-of-type {
    border-bottom: none;
}

.showcase-wrapper {
    max-width: fit-content;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 1em;
}

.showcase-date {
    color: #666;
    font-size: 0.95em;
    margin-top: 0.5em;
}

.showcase-meta {
    position: relative;
    margin-bottom: 0.5em;
}

.showcase-image-link {
    display: block;
    line-height: 0;
}

.showcase-footer {
    text-align: center;
    margin-top: 1em;
}

.gallery-link {
    display: inline-block;
    padding: 0.6em 1.5em;
    background-color: #666;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.gallery-link:hover {
    background-color: #777;
}

.more-section {
    text-align: center;
    padding: 3em 0;
}

.more-btn {
    display: inline-block;
    padding: 1em 2em;
    background-color: #5c4033;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1em;
    transition: background-color 0.2s;
}

.more-btn:hover {
    background-color: #7a5544;
}

.page-info {
    color: #666;
    margin-top: 1em;
    font-size: 0.9em;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2em;
    right: 2em;
    width: 50px;
    height: 50px;
    background-color: #5c4033;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #7a5544;
}

/*#region Contact page email styles */
.email-link {
    display: inline-block;
    font-size: 1.8em;
    color: #5c4033;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: color 0.2s;
}
.email-link:hover {
    color: #7a5544;
    text-decoration: underline;
}
.email-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 0.5em;
}
.email-note {
    font-size: 0.95em;
    color: #888;
    margin-top: 1em;
}

/*#endregion Contact page email styles */