/**
 * Lumiere Child Theme Custom Styles
 * Masonry Grid Layout
 */

/* Global Font - Lato for body text */
html,
body,
*,
*::before,
*::after,
input,
textarea,
select,
button {
    font-family: 'Lato', sans-serif !important;
}
p {
    line-height:2.4rem;
}
/* Headers and titles - Montserrat (overridden by .heading-style-eleven for main titles) */
h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .book-title, .story-title, .gallery-title,
.stories-archive-title, .story-featured-title,
.homepage-grid-item-title, .homepage-grid-item-category,
.gallery-lightbox-caption, .gallery-lightbox-counter,
.lumiere-menu, .lumiere-logo-link,
.button, button, input[type="submit"] {
    font-family: 'Montserrat', sans-serif !important;
}

/* ==========================================================================
   Heading Style Eleven - Serif, uppercase, centered, § separator
   ========================================================================== */
.heading-style-eleven {
    text-align: center;
    margin-bottom: 2.5rem;
}

.heading-style-eleven h1,
.heading-style-eleven .stories-archive-title,
.heading-style-eleven .page-title,
.heading-style-eleven .entry-title {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f5f5f5;
    margin: 0 0 1.25rem 0;
    font-size: clamp(1.225rem, 2.8vw, 2.1rem);
    line-height: 1.2;
}

.heading-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0;
}

.heading-separator-line {
    flex: 0 1 80px;
    max-width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.heading-separator-char {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.25rem;
    color: #c41e3a;
    font-weight: 700;
    line-height: 1;
}

/* Homepage Grid Container - Masonry layout (enhanced by masonry.js) */
.homepage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: 160px;
    grid-auto-flow: dense;
    gap: 12px;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Grid Item - Masonry tiles */
.homepage-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.homepage-grid-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Grid Item Image - Fill cell, cover aspect */
.homepage-grid-item img,
.homepage-grid-item .theme-placeholder-image {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    margin: 0;
    padding: 0;
    object-fit: cover;
}

.homepage-grid-item:hover img {
    transform: scale(1.05);
}

/* Grid Item Overlay - Blossom Style */
.homepage-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    text-align: center;
}

.homepage-grid-item:hover .homepage-grid-item-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

/* Grid Item Title */
.homepage-grid-item-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Grid Item Category */
.homepage-grid-item-category {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Grid Item Link */
.homepage-grid-item-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Global Dark Background - Blossom Style */
html,
body {
    background: #1a1a1ab3 !important;
    color: #fff;
}

/* Full-width layout for homepage - Blossom Style */
body.page-template-homepage {
    overflow-x: hidden;
}

/* Hide parent theme header globally (do not hide content headers: entry-header, page-header, archive headers) */
.site-header:not(.lumiere-header),
header:not(.lumiere-header):not(.entry-header):not(.page-header):not(.stories-archive-header),
.wp-block-template-part[data-area="header"]:not(.lumiere-header),
.wp-block-group[class*="header"]:not(.lumiere-header) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Force content titles to always show (override any parent/plugin rules) */
main .entry-header,
main .page-header,
main .stories-archive-header,
#main .entry-header,
#main .page-header,
.site-main .entry-header,
.site-main .page-header,
.site-main .stories-archive-header,
article .entry-header,
body.single .entry-header,
body.singular .entry-header,
body.page .entry-header {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    padding: 2rem 20px 1rem !important;
}

main .entry-header .entry-title,
main .entry-header h1,
main .page-header .page-title,
main .page-header h1,
main .stories-archive-header .stories-archive-title,
#main .entry-header .entry-title,
#main .entry-header h1,
.site-main .entry-header .entry-title,
.site-main .entry-header h1,
.site-main .page-header .page-title,
.site-main .stories-archive-header .stories-archive-title,
article .entry-header .entry-title,
article .entry-header h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

main .heading-style-eleven,
#main .heading-style-eleven,
.site-main .heading-style-eleven,
article .heading-style-eleven {
    display: block !important;
    visibility: visible !important;
}

/* Custom Header - Blossom Style - Global */
.lumiere-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1a1a1ab3;
    color: #fff;
    z-index: 1000;
    padding: 0;
    margin: 0;
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    min-height: 68px;
    height:40px;
    max-height:40px;
}

.lumiere-header-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 40px 55px 40px; /* Extra bottom padding for logo overflow */
    display: flex;
    align-items: flex-start; /* Align to top to allow logo overflow */
    justify-content: space-between;
    position: relative; /* For mobile menu positioning */
}

/* Breadcrumbs – under menu, top right */
.lumiere-breadcrumbs {
    padding: 4px 40px 10px 0;
    text-align: right;
    position: absolute;
    left: 20px;
    right: 20px;
    margin-top: -34px;
}

.lumiere-breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0 6px;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
}

.lumiere-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lumiere-breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.lumiere-breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.lumiere-breadcrumb-item a:hover {
    color: #f26c4f;
}

.lumiere-breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

.lumiere-logo {
    flex-shrink: 0;
    position: fixed;
    z-index: 1001;
    top:20px;
}

.lumiere-logo-link {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    line-height: 1;
}

.lumiere-logo-link:hover {
    opacity: 0.8;
}


.lumiere-logo-image {
    max-height: 100px;
    height: auto;
    width: auto;
    display: block;
    object-fit: contain;
    position: relative;
}

.lumiere-logo-text {
    display: block;
}

.lumiere-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative; /* Ensure proper positioning context */
}

.lumiere-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.lumiere-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.lumiere-menu a {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.lumiere-menu a:hover {
    color: #f26c4f;
}

/* Active/Current Menu Item Highlighting - Comprehensive Selectors */
.lumiere-menu .current-menu-item > a,
.lumiere-menu .current_page_item > a,
.lumiere-menu .current-menu-ancestor > a,
.lumiere-menu .current_page_ancestor > a,
.lumiere-menu .current-post-ancestor > a,
.lumiere-menu li.current-menu-item a,
.lumiere-menu li.current_page_item a,
.lumiere-menu li.current-menu-ancestor a,
.lumiere-menu li.current_page_ancestor a,
.lumiere-menu li.current-post-ancestor a,
.lumiere-menu .menu-item.current-menu-item a,
.lumiere-menu .menu-item.current_page_item a,
.lumiere-menu .menu-item.current-menu-ancestor a,
.lumiere-menu .menu-item.current_page_ancestor a,
.lumiere-menu .menu-item.current-post-ancestor a,
.lumiere-menu #primary-menu .current-menu-item > a,
.lumiere-menu #primary-menu .current_page_item > a,
.lumiere-menu #primary-menu li.current-menu-item a,
.lumiere-menu #primary-menu li.current_page_item a,
.lumiere-menu a[aria-current="page"],
.lumiere-menu a.active,
.lumiere-menu a.menu-active,
.lumiere-menu .menu-item-active > a,
.lumiere-menu li.menu-item-active a {
    color: #f26c4f !important;
    font-weight: 600 !important;
    position: relative;
}

.lumiere-menu .current-menu-item > a::after,
.lumiere-menu .current_page_item > a::after,
.lumiere-menu li.current-menu-item a::after,
.lumiere-menu li.current_page_item a::after,
.lumiere-menu .menu-item.current-menu-item a::after,
.lumiere-menu .menu-item.current_page_item a::after,
.lumiere-menu #primary-menu .current-menu-item > a::after,
.lumiere-menu #primary-menu .current_page_item > a::after,
.lumiere-menu a[aria-current="page"]::after,
.lumiere-menu a.active::after,
.lumiere-menu a.menu-active::after,
.lumiere-menu .menu-item-active > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #f26c4f;
    border-radius: 1px;
}

/* Ensure active menu items stand out on hover */
.lumiere-menu .current-menu-item > a:hover,
.lumiere-menu .current_page_item > a:hover,
.lumiere-menu li.current-menu-item a:hover,
.lumiere-menu li.current_page_item a:hover,
.lumiere-menu a[aria-current="page"]:hover,
.lumiere-menu a.active:hover,
.lumiere-menu a.menu-active:hover {
    color: #f26c4f !important;
    opacity: 0.9;
}

.lumiere-mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    z-index: 1003; /* Ensure toggle button is above menu */
    position: relative;
    margin-left: auto; /* Align to the right */
}

.lumiere-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.lumiere-mobile-menu-toggle:hover span {
    background: #f26c4f;
}

/* Mobile Menu - collapse at 1260px (important overrides parent/cache) */
@media (max-width: 1260px) {
    .lumiere-breadcrumbs {
        padding-right: 20px;
    }
    .lumiere-header-container {
        padding: 15px 20px 55px 20px !important;
        position: relative !important;
    }
    
    .lumiere-logo-image {
        max-height: 80px !important;
    }
    
    .lumiere-mobile-menu-toggle {
        display: flex !important;
        margin-left: auto !important;
    }
    
    .lumiere-navigation {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        background: #1a1a1ab3 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, opacity 0.3s ease !important;
        z-index: 1002 !important;
        width: auto !important;
        min-width: 250px !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .lumiere-navigation.active {
        max-height: 1000px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
        overflow-y: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .lumiere-menu {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 0;
    }
    
    .lumiere-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .lumiere-menu a {
        padding: 15px 20px;
    }
    
    /* Active menu items in mobile */
    .lumiere-menu .current-menu-item > a,
    .lumiere-menu .current_page_item > a,
    .lumiere-menu li.current-menu-item a,
    .lumiere-menu li.current_page_item a {
        color: #f26c4f !important;
        font-weight: 600 !important;
        background: rgba(242, 108, 79, 0.1);
        border-left: 3px solid #f26c4f;
    }
    
    .lumiere-menu .current-menu-item > a::after,
    .lumiere-menu .current_page_item > a::after {
        display: none; /* Hide underline on mobile, use border instead */
    }
}

/* Add padding to main content to account for fixed header and logo overflow - Global */
.site-main,
#main,
main {
    padding-top: 110px !important; /* Increased from 70px to account for 40px logo overflow */
    min-height: calc(100vh - 70px);
}

#main {
    background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7)), url(../home-bg-pattern.png);
    background-repeat: repeat;
    background-position: 0 0;
}
.type-poetry .entry-content, 
.type-short-stories .entry-content,
.type-post .entry-content,
.type-books .entry-content,
.type-galleries .entry-content,
.type-theatre .entry-content,
.type-home-items .entry-content
{
    background: #1a1a1ab3;
}
/* Ensure proper spacing for content */
.entry-content,
.page-content {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: none !important; /* Remove any line at end of post */
}

/* Remove lines/borders from single post pages */
.single-post .entry-content,
.single-post .post-content,
.single .entry-content,
.post-type-post .entry-content {
    border-bottom: none !important;
    padding-bottom: 40px;
}

.single-post article,
.single article,
.post-type-post article {
    border-bottom: none !important;
}

/* Remove any HR elements or lines after post content */
.single-post .entry-content hr,
.single-post .post-content hr,
.single .entry-content hr,
.post-type-post .entry-content hr,
.single-post .entry-content::after,
.single-post .post-content::after,
.single .entry-content::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Ensure content areas have dark background */
.site-main,
#main,
main,
.wp-block-group,
.wp-block-columns,
.entry-content,
.entry-header,
.page-header,
.books-archive,
.about-page,
.bio-page {
    color: #fff;
}
body {
    background-repeat: repeat;
    background-position: 0 0;
}

/* Style links globally */
a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #f26c4f;
}

/* Style headings globally */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
}

/* Style text elements */
p, li, span, div {
    color: #fff;
}

/* Ensure buttons are visible */
.button,
button,
input[type="submit"] {
    background: #f26c4f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #d85a3f;
}

body .site-main {
    padding-bottom: 40px !important;
}
body.home .site-main,
body.page-template-homepage .site-main {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

body.home #main,
body.page-template-homepage #main {
    padding: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

body.page-template-homepage .homepage-grid {
    min-height: calc(100vh - 70px);
    box-sizing: border-box;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
}
body #lumiere-header {
    background: #1a1a1ab3 !important;
}


/* Dark header styling for Blossom look */
body.page-template-homepage .site-header,
body.page-template-homepage header,
body.page-template-homepage .wp-block-template-part[data-area="header"],
body.page-template-homepage .wp-block-group[class*="header"] {
    color: #fff !important;
    border-bottom: none;
}

body.page-template-homepage .site-header a,
body.page-template-homepage header a,
body.page-template-homepage .wp-block-navigation a {
    color: #fff !important;
}

body.page-template-homepage .site-header a:hover,
body.page-template-homepage header a:hover,
body.page-template-homepage .wp-block-navigation a:hover {
    color: #f26c4f !important;
}

/* Ensure no spacing issues */
body.page-template-homepage .homepage-grid-item {
    box-sizing: border-box;
}

/* Remove any default WordPress spacing */
body.page-template-homepage .wp-block-group,
body.page-template-homepage .wp-block-columns,
body.page-template-homepage .wp-block-column {
    margin: 0;
    padding: 0;
}

/* Hide footer globally */
footer,
.site-footer,
#colophon,
.wp-site-blocks > footer,
footer[role="contentinfo"],
.wp-block-template-part[data-area="footer"],
.wp-block-group[class*="footer"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any spacing/margins from parent theme */
.wp-site-blocks {
    padding: 0;
    margin: 0;
    background: #1a1a1ab3;
}

body.page-template-homepage .wp-block-group {
    padding: 0;
    margin: 0;
}

/* Responsive - masonry.js uses 1 column under 1024px for full-width items */
@media (max-width: 1024px) {
    body.page-template-homepage .homepage-grid {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    body.page-template-homepage .site-main,
    body.page-template-homepage #main {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    /* Override any parent-theme wrapper that constrains width */
    body.page-template-homepage .wp-site-blocks {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .homepage-grid-item-overlay {
        opacity: 1; /* Always show on mobile */
    }
}

/* Archive Styles - Books (masonry, proportional covers), Photography */
.books-archive {
    column-count: 4;
    column-gap: 28px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .books-archive {
        column-count: 3;
    }
}

@media (max-width: 640px) {
    .books-archive {
        column-count: 2;
        column-gap: 20px;
    }
}

.book-item {
    break-inside: avoid;
    margin-bottom: 28px;
    text-align: center;
    page-break-inside: avoid;
}

.galleries-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    text-align: center;
}

/* Stories Archive - Magazine Style Layout */
.stories-archive-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    background: #1a1a1ab3;
}

.stories-archive-header {
    text-align: center;
    margin-bottom: 80px;
    padding-bottom: 40px;
}

.stories-archive-header.heading-style-eleven {
    margin-bottom: 3.5rem;
    padding-bottom: 2rem;
}

.stories-archive-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    color: #fff;
    text-transform: uppercase;
}

/* Ensure archive page title is always visible (e.g. short stories, poetry) */
body.post-type-archive .stories-archive-header .stories-archive-title,
body.archive .stories-archive-header .stories-archive-title {
    display: block !important;
    visibility: visible !important;
}

.stories-archive-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.stories-archive {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Featured Story (First Item) */
.story-item-featured {
    margin-bottom: 100px;
}

.story-featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-featured-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #2a2a2a;
}

.story-featured-image-wrapper img,
.story-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.story-featured-image-link:hover img,
.story-featured-image-link:hover .story-featured-image {
    transform: scale(1.1);
}

.story-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-featured-image-link:hover .story-featured-overlay {
    opacity: 1;
}

.story-read-more {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.story-featured-content {
    padding: 20px 0;
}

.story-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-separator {
    color: rgba(255, 255, 255, 0.3);
}

.story-featured-title {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 25px 0;
    color: #fff;
}

.story-featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-featured-title a:hover {
    color: #f26c4f;
}

.story-featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.story-read-link {
    display: inline-block;
    color: #f26c4f;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.story-read-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Standard Story Items */
.story-item-standard {
    margin-bottom: 80px;
    padding-bottom: 80px;
}

.story-item-standard:last-child {
    border-bottom: none !important;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Remove line at end of blog archive page */
.archive-blog .story-item-standard:last-child,
.archive-blog .stories-archive .story-item-standard:last-child,
.archive-blog .stories-archive-wrapper .story-item-standard:last-child,
.archive-blog .stories-pagination-wrapper,
.archive-blog .stories-archive-wrapper,
.archive-blog main,
.archive-blog .site-main,
.archive-blog .stories-archive {
    border-bottom: none !important;
    border-top: none !important;
}

.archive-blog .stories-archive-wrapper::after,
.archive-blog .stories-archive::after,
.archive-blog .stories-archive-wrapper::before,
.archive-blog .stories-archive::before,
.archive-blog .stories-pagination-wrapper::after,
.archive-blog .stories-pagination-wrapper::before {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Also target by body class for blog archive */
body.archive .stories-archive-wrapper,
body.archive .stories-archive,
body.archive .stories-pagination-wrapper,
body.archive .story-item-standard:last-child {
    border-bottom: none !important;
    border-top: none !important;
}

.story-item-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
}

.story-item-no-image .story-item-container {
    grid-template-columns: 1fr;
    align-items: center;
}

.story-image-column {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #2a2a2a;
}

.story-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.story-image-column img,
.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.story-image-link:hover img,
.story-image-link:hover .story-image {
    transform: scale(1.1);
}

.story-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-image-link:hover .story-image-overlay {
    opacity: 1;
}

.story-read-indicator {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.story-content-column {
    padding: 20px 0;
}

.story-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-date {
    color: rgba(255, 255, 255, 0.6);
}

.story-by {
    color: rgba(255, 255, 255, 0.5);
}

.story-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #fff;
}

.story-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: #f26c4f;
}

.story-excerpt {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
}

.story-image-placeholder,
.story-featured-placeholder {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

/* Pagination */
.stories-pagination-wrapper {
    margin-top: 80px;
    padding-top: 60px;
    border-top: none;
    text-align: center;
}

.stories-pagination-wrapper .page-numbers {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stories-pagination-wrapper .page-numbers:hover,
.stories-pagination-wrapper .page-numbers.current {
    color: #f26c4f;
    border-color: #f26c4f;
    background: rgba(242, 108, 79, 0.1);
}

.stories-empty-state {
    text-align: center;
    padding: 100px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.book-cover,
.story-cover,
.gallery-cover {
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Books archive: show full cover, no crop */
.books-archive .book-cover {
    display: block;
    background: #2a2a2a;
    overflow: visible;
}

.books-archive .book-cover a {
    display: block;
    line-height: 0;
}

.books-archive .book-cover img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    object-fit: contain;
    object-position: top center;
}

.book-cover:hover,
.story-cover:hover,
.gallery-cover:hover {
    transform: scale(1.03);
}

.story-cover,
.gallery-cover {
    overflow: hidden;
}

.book-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.book-cover img,
.story-cover img,
.gallery-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


/* Card/section titles - Style Eleven family (serif, uppercase), sizes kept per context */
.book-title,
.gallery-title {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.story-title,
.story-featured-title {
    font-family: 'Libre Baskerville', Georgia, serif !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.gallery-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.gallery-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-top: 10px;
}

/* Responsive Stories Archive */
@media (max-width: 1024px) {
    .story-featured-container,
    .story-item-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .story-featured-image-wrapper {
        aspect-ratio: 16/9;
    }
    
    .story-image-column {
        max-width: 100%;
    }
    
    .stories-archive-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .stories-archive-wrapper {
        padding: 40px 20px;
    }
    
    .stories-archive-header {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
    
    .stories-archive-title {
        font-size: 2rem;
    }
    
    .story-item-featured {
        margin-bottom: 60px;
    }
    
    .story-item-standard {
        margin-bottom: 50px;
        padding-bottom: 50px;
    }
    
    .story-featured-title {
        font-size: 1.8rem;
    }
    
    .story-title {
        font-size: 1.5rem;
    }
    
    .story-featured-meta,
    .story-meta-top {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
}

.book-buy-button {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    margin: 5px;
}

.book-buy-button:hover {
    background: #005a87;
}

/* Single Book Template */
.single-book-cover {
    max-width: 300px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.single-book-cover img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Maintain aspect ratio, don't crop */
}

/* Featured images in posts – rounded corners */
.post-featured-image,
.gallery-featured-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.post-featured-image img,
.gallery-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.purchase-links {
    margin: 30px 0;
}

.purchase-links h3 {
    margin-bottom: 15px;
}

.purchase-link-item {
    display: inline-block;
    margin: 5px 10px 5px 0;
}

/* Photography single - gallery title and header UI */
.single-galleries .entry-header,
.post-type-galleries .entry-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 20px 20px;
}

.single-galleries .entry-header .entry-title,
.post-type-galleries .entry-header .entry-title {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

.single-galleries .entry-content,
.post-type-galleries .entry-content {
    padding-top: 0;
}

@media (max-width: 768px) {
    .single-galleries .entry-header .entry-title,
    .post-type-galleries .entry-header .entry-title {
        font-size: 1.75rem;
        letter-spacing: 0.1em;
    }
}

/* Photography single - description as centered header at top */
.gallery-description-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-description-header p {
    margin-bottom: 0.75em;
}

.gallery-description-header p:last-child {
    margin-bottom: 0;
}

/* Gallery Grid - Enhanced with Gutters */
.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3px;
    margin: 40px 0;
    padding: 0 20px;
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 1;
    background: #000;
    cursor: pointer;
    margin:10px;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
    display: block;
}

.gallery-image-item:hover img {
    transform: scale(1.1);
    opacity: 0.9;
}

.gallery-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.gallery-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-image-item:hover .gallery-image-overlay {
    opacity: 1;
}

.gallery-view-icon {
    font-size: 2rem;
    color: #fff;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: flex;
    opacity: 1;
}

.gallery-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
}

.gallery-lightbox-image-wrapper {
    position: relative;
    max-width: 90%;
    max-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox-image.loaded {
    opacity: 1;
}

.gallery-lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
}

.gallery-lightbox-image.loaded ~ .gallery-lightbox-loader {
    display: none;
}

.gallery-lightbox-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    max-width: 90%;
}

.gallery-lightbox-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-lightbox-caption {
    font-size: 1rem;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Lightbox Controls */
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    padding: 0;
    line-height: 1;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.gallery-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 300;
}

.gallery-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-lightbox-prev:disabled,
.gallery-lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-lightbox-prev:disabled:hover,
.gallery-lightbox-next:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
        padding: 0 10px;
    }
    
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-lightbox-prev {
        left: 10px;
    }
    
    .gallery-lightbox-next {
        right: 10px;
    }
    
    .gallery-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .gallery-lightbox-content {
        padding: 60px 10px 100px;
    }
    
    .gallery-lightbox-info {
        bottom: 20px;
    }
}

/* About Page */
.bio-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.author-headshot {
    width: 280px;
    height: 280px;
    max-width: min(280px, 90vw);
    max-height: min(280px, 90vw);
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-headshot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.bio-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Keep .about-page for backward compatibility */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.contact-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

/* Contact form */
.site-main--contact .contact-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.lumiere-contact-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
}

.lumiere-contact-form p {
    margin-bottom: 1.25rem;
}

.lumiere-contact-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f5f5f5;
    margin-bottom: 0.5rem;
}

.lumiere-contact-form .required {
    color: #c41e3a;
}

.lumiere-contact-form input[type="text"],
.lumiere-contact-form input[type="email"],
.lumiere-contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    border-radius: 2px;
}

.lumiere-contact-form input:focus,
.lumiere-contact-form textarea:focus {
    outline: none;
    border-color: rgba(197, 30, 58, 0.6);
}

.lumiere-turnstile-wrap {
    margin: 1rem 0 1.5rem;
}

.lumiere-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lumiere-contact-form__actions {
    margin-top: 0.5rem;
}

.lumiere-contact-notice--config,
.lumiere-contact-notice--js {
    max-width: 640px;
    margin: 1rem auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.lumiere-contact-notice--status {
    min-height: 1.5em;
    text-align: center;
    color: #f5f5f5;
}

.lumiere-contact-notice--status.is-success {
    color: #a8d5a8;
}

.lumiere-contact-notice--status.is-error {
    color: #e8a0a0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
