/* Base styles */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: clamp(12px, 2.5vw, 16px);
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/*!* Google Fonts Import *!*/
/*@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');*/

/*!* Base Typography *!*/
/*body {*/
/*    font-family: 'Libre Caslon Text', Georgia, serif;*/
/*    font-size: clamp(16px, 1.1vw, 19px);*/
/*    line-height: 1.6;*/
/*    color: #333;*/
/*}*/

/*h1, h2, h3, .site-title {*/
/*    font-family: 'Playfair Display', Georgia, serif;*/
/*    font-weight: 700;*/
/*    letter-spacing: -0.02em;*/
/*}*/




.full-width-header {
    width: 100%;
    border-bottom: 2px solid #2c6e49;
    background-image: url('../images/2025-07/FebAnCnapanMor.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 31.94%; /* Maintains the aspect ratio */
    height: 0;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.newsletter-container {
    max-width: 1600px;  /* Changed from 1200px to 1600px */
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 2vw;
}

/* Fix for list markers with column rule */
.contents-table.multi-column ul {
    margin-left: 0;
    padding-left: 20px; /* Add some padding to move the list items away from the edge */
}

/* You can also adjust the specific list styling to ensure proper spacing */
.contents-table.multi-column li {
    margin-bottom: 4px; /* Add some vertical spacing between items */
    break-inside: avoid; /* Prevent items from breaking across columns */
    font-size: clamp(14px, 3vw, 18px);
}


.toc-link {
    text-decoration: none;
    font-size: 0.9rem;
    color: #555;
    transition: color 0.2s;
}

.toc-link:hover {
    color: #000;
}

/* Pictures of the Month Gallery */
.potm-gallery {
    text-align: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* For screens wider than 900px, show two columns */
@media (min-width: 900px) {
    .potm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual POTM items */
.potm-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.potm-item:hover {
    transform: translateY(-5px);
}

/* Title above the image */
.potm-title {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 0.8rem 1rem 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #eee;
    letter-spacing: 0.5px;
}

.potm-image-container {
    width: 100%;
    overflow: hidden;
}

.potm-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.potm-item:hover .potm-image {
    transform: scale(1.03);
}

.potm-caption {
    font-size: 1rem;
    margin: 0.8rem 1rem 0.2rem;
    font-style: italic;
}

.potm-credit {
    font-size: 0.85rem;
    margin: 0.2rem 1rem 1rem;
    color: #666;
}

.potm-credit i {
    color: #555;
    margin-right: 4px;
}

.potm-credit a {
    color: #0066cc;
    text-decoration: none;
}

.potm-credit a:hover {
    text-decoration: underline;
}


:root {
    --newsletter-name-vertical-position: 15%;
    --newsletter-name-font-size-percentage: 100; /* Use same font size percentage */
    --newsletter-name-max-width: 20%;
    --mv-logo-vertical-position: 15%; /* Adjust as needed */
    --mv-logo-max-width: 200px; /* Target width for screens over 767px */
    --mv-logo-width-percentage: 15; /* Percentage of viewport width on smaller screens */
    --close-newsletter-min-width: 20px; /* Minimum width for small screens */
    --close-newsletter-max-width: 40px; /* Maximum width for large screens */
    --date-note-vertical-position: 90%; /* CSS variable for vertical positioning */
    --date-note-font-size-percentage: 3; /* Base percentage for font size (without vw unit) */
    --date-note-max-width: 768px; /* Max width where font size stops growing */

}

.mv-newsletter-name {
    position: absolute;
    left: 0; /* Align to the left edge of the header */
    margin-left: 4.4%; /* Space from the left edge, matching date-note's right margin */
    top: var(--newsletter-name-vertical-position); /* Use the CSS variable */
    transform: translateY(-50%);
    color: #000000; /* Full black color */
    font-weight: 600; /* Extra-bold weight, matching date-note */
    /* Using similar font size calculation */
    /*font-size: min(calc(var(--newsletter-name-font-size-percentage) * 1.15 * 1vw),*/
    font-size: 5vw;
    /*calc(var(--newsletter-name-font-size-percentage) * 1.15 * var(--newsletter-name-max-width) / 100));*/
    white-space: nowrap; /* Prevent text wrapping on smaller screens */
    transition: filter 1s ease;
    /* Similar drop shadow effect */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 6px white);
    letter-spacing: 0.3px; /* Slight letter spacing for readability */
}

.mv-newsletter-name:hover {
    filter: drop-shadow(0 0 4px white) drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}


.mv-logo {
    position: absolute;
    right: 0; /* Position it from the right instead of left */
    margin-right: calc(6.2%); /* Space from the right edge */
    top: var(--mv-logo-vertical-position);
    transform: translateY(-50%);
    /* Restore the responsive width calculation */
    width: min(calc(var(--mv-logo-width-percentage) * 1vw), var(--mv-logo-max-width));
    height: auto; /* Maintain aspect ratio */
    /*filter: drop-shadow(0 0 3px white) drop-shadow(0 0 2px white);*/    /* Basic styles */
    filter: drop-shadow(0 0 2px white);
    transition: filter 1s ease;
}

.mv-logo:hover {
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 5px white);
}

.close-newsletter {
    position: absolute;
    right: 0; /* Align to the right edge of the header */
    margin-right: 1%;
    top: 3vw; /* Align with mv-logo */
    transform: translateY(-50%);
    /* Use clamp for responsive width that has min, preferred, and max values */
    width: clamp(var(--close-newsletter-min-width), 3vw, var(--close-newsletter-max-width));
    font-size: 1.5vw;
    height: auto;
    transition: filter 1s ease;
    opacity: 0.7; /* Add semi-transparency (70% opaque) */
}

.close-newsletter:hover {
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 5px white);
    opacity: 1; /* Full opacity on hover for better visibility */
}


.date-note {
    position: absolute;
    right: 0; /* Align to the right edge of the header */
    margin-right: 6.4%; /* Space from the right edge */
    top: var(--date-note-vertical-position); /* Use the CSS variable */
    transform: translateY(-50%);
    color: #000000; /* Ensuring full black color */
    font-weight: 800; /* Extra-bold weight as requested */
    /* Slightly increasing the font size, but less than before */
    font-size: min(calc(var(--date-note-font-size-percentage) * 1.15 * 1vw),
    calc(var(--date-note-font-size-percentage) * 1.15 * var(--date-note-max-width) / 100));
    white-space: nowrap; /* Prevent text wrapping on smaller screens */
    transition: filter 1s ease;
    /* Enhanced but more subtle drop shadow */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 6px white);
    letter-spacing: 0.3px; /* Slight letter spacing for readability */
}

.date-note:hover {
    filter: drop-shadow(0 0 4px white) drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

.newsletter-header-caption {
    padding: 3px 3px 1px 3px;
    font-size: clamp(12px, 0.7vw + 0.3rem, 14px); /* Reduced by ~30% for larger screens */
}

/* Further reduced font size for smaller screens */
@media screen and (max-width: 900px) {
    .newsletter-header-caption {
        font-size: clamp(10px, 1vw + 0.1rem, 12px); /* Significantly reduced for smaller screens */
    }
}


.newsletter-title {
    color: #2c6e49;
    font-size: 2.5rem;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers horizontally and vertically */
}

.issue-info {
    color: #666;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 5px;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translateX(-50%); /* Centers horizontally */
}

/* Base section styling */
section {
    padding: 1vw;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 20px; /* Space for the divider */
    position: relative;
}


/* Create the divider line */
section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -10px; /* Position in the middle of the 20px gap */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2c6e49; /* Green divider line */
}

/* First section doesn't need the top margin */
section:first-child {
    margin-top: 0;
}

/* Section color variations */
section:nth-of-type(5n+1) {
    background-color: #f0f8f0; /* Light mint green */
}

section:nth-of-type(5n+2) {
    background-color: #fff4ee; /* Light peach */
}

section:nth-of-type(5n+3) {
    background-color: #f6f0ff; /* Light lavender */
}

section:nth-of-type(5n+4) {
    background-color: #f0f6ff; /* Light sky blue */
}

section:nth-of-type(5n+5) {
    background-color: #fffbf0; /* Light warm cream */
}

/* Section header styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 .5rem 0;
}

.section-header .section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c6e49;;
}

.section-header .toc-link {
    margin-left: auto; /* Push to the right */
}

/* Introduction section as flex container */
.introduction-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* Style for the section title */
.introduction-section .section-title {
    flex-grow: 1;
    margin-right: 10px;
    color: #2c6e49;
    font-size: clamp(16px, 3vw, 24px);
}

/* Image alignment */
.introduction-section .section-image {
    height: auto; /* Maintain aspect ratio */
    max-height: calc(1em * 1.2 * 2 + 1.5em); /* Approximate height of two lines of text */
    align-self: flex-start;
    object-fit: contain; /* Ensure image maintains its aspect ratio */
    display: block;
}

/* Base component styles */
.image-text-overlay {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); /* Bottom-right shadow */
}

.image-text-overlay__image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.image-text-overlay__title {
    position: absolute; /* Critical for overlay positioning */
    top: 10%;
    left: 5%;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5vw;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    padding: 0;
}


.shape-outside-container {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    width: 45%;
    max-width: 350px;
}

.shape-outside-image {
    width: 100%;
    height: auto;
    display: block;
    float: left;
    /* Standard shape-outside without alpha parameter */
    shape-outside: url('../images/2025-07/obituary-feature/8BookTransparentA.png');
    /* Smaller margin to allow text closer to image */
    shape-margin: 0px;
    /* Ensure no background */
    background: transparent;
}

.image-caption {
    font-size: 0.9em;
    text-align: center;
    margin-top: 5px;
    clear: left;
}




/* For the manually created content sections */
.manual-content {
    background-color: #f0f7f4;
    padding: 20px;
    border-left: 4px solid #2c6e49;
}


/* For the automatically generated content sections */
.auto-generated {
    background-color: #f7f4f0;
    padding: 20px;
    border-left: 4px solid #e76f51;
}

/* Image styles */
.image-container {
    margin: 20px 0;
}

.newsletter-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.image-with-caption {
    break-inside: avoid;
    margin: 1em 0;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); /* Bottom-right shadow */
    background-color: #eff1ee;
    border-radius: 5px; /* Add rounded corners */
    overflow: hidden; /* Ensures the image respects the container's rounded corners */

}

.image-with-caption p {
    padding: 0 1em; /* Add padding to the caption text only */
    margin: 0; /* Remove default paragraph margin */
    font-size: 85%;
}

.image-with-caption img {
    width: 100%;
    height: auto;
}

.caption {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Half-width image with caption - simplified with rounded corners */
.half-width-image-with-caption {
    max-width: 50%;
    margin: 0 20px 15px 0;
    float: left;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2); /* Bottom-right shadow */
    border-radius: 5px;
    overflow: hidden;
}

.half-width-image-with-caption.align-right {
    float: right;
    margin: 0 0 15px 20px;
}

.half-width-image-with-caption img {
    width: 100%;
    display: block;
}

.half-width-image-with-caption p {
    margin: 0;
    padding: 8px 10px;
    font-size: 0.9em;
    background-color: #f5f5f5;
    border-top: 1px solid #eee;
}


/* Multi-column layout for wider screens */
@media (min-width: 768px) {
    .multi-column {
        column-count: 2;
        column-gap: 30px;
        column-rule: 1px solid #e0e0e0; /* This adds a faint line between columns */

    }

    .section-content.multi-column ul {
        padding-left: 10px; /* Adjust this value as needed */
        margin-left: 0;
        list-style-position: inside; /* This keeps the bullets within the column */
    }


    /* Prevent section titles and images from breaking across columns */
    .section-title, .image-container {
        column-span: all;
    }
}

@media (min-width: 1200px) {
    .multi-column {
        column-count: 3;
    }
}

/* Photo of the Month specific styles */


.potm-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.potm-gallery .caption-container {
    margin-top: 1rem;
    padding: 0 10%;  /* Add padding to the container for consistent margins */
}

.potm-gallery h3 {
    color: #2c6e49;
    margin-bottom: 0.5rem;
}

.potm-gallery p {
    margin: 0.5rem 0;
}

/* Caption footer with consistent margins */
.potm-gallery .caption-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.potm-gallery .track-link {
    text-align: left;
}

.potm-gallery .photo-credit {
    text-align: right;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

.potm-gallery .photo-credit i {
    margin-right: 5px;
    font-size: 0.9em;
}

.potm-gallery a {
    color: #2c6e49;
    text-decoration: none;
}

.potm-gallery a:hover {
    text-decoration: underline;
}

/* Video gallery styling with larger images */
.video-gallery .video-item {
    padding: 12px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e0e8e0;
    overflow: hidden;
}

.video-gallery .video-item:hover {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 100, 0, 0.1);
    transform: translateY(-2px);
}

.video-gallery .video-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.video-gallery .video-thumbnail {
    float: none;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 3px;
    mix-blend-mode: multiply;
}

.video-gallery .video-description {
    width: 100%;
}

.video-gallery .video-description h3 {
    color: #336633;
    margin-top: 0;
    font-size: 1.1em;
}

.video-gallery .video-description p {
    color: #555;
    font-size: 0.9em;
}

/* For larger screens, display image and text side by side */
@media (min-width: 768px) {
    .video-gallery .video-item a {
        flex-direction: row;
        align-items: flex-start;
    }

    .video-gallery .video-thumbnail {
        width: 45%; /* Up to half the column width */
        margin-right: 10px;
        margin-bottom: 0;
    }

    .video-gallery .video-description {
        width: 55%;
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #2c6e49;
    font-size: 0.9rem;
    color: #666;
}

.about-info .newsletter-details {
    /* Any specific styling for the details container */
}

/* Grid layout for the info section */
.about-info .info-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
}

/* Row styling */
.about-info .info-row {
    display: contents;
}

/* Label styling */
.about-info .info-label {
    font-weight: 800;
    padding: 10px;
}

/* Content styling */
.about-info .info-content {
    padding: 10px;
}

/* Button styling - could be moved to a common style if used elsewhere */
.about-info button {
    background-color: #5287A9;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/*Minor effects*/

.drop-cap {
    float: left;
    font-size: 3em;
    line-height: 0.8;
    margin-right: 0.1em;
    padding-top: 0.1em;
    font-weight: bold;
}

.pull-quote {
    float: right;
    width: 50%;
    max-width: 400px;
    margin: 15px 0 15px 15px;
    padding: 15px;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    line-height: 1.4;
    font-style: italic;
    color: #333;
    border-left: 5px solid #007bff;
    background-color: #f8f9fa;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

/* For smaller screens */
@media (max-width: 768px) {
    .pull-quote {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 20px 0;
        font-size: 4vw;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .pull-quote {
        padding: 15px;
        font-size: 5vw;
    }
}

/* About Info Section Specific Styles */
.font-small {
    font-size: 85%;
}

.inline-block {
    display: inline-block;
}

.column-break {
    break-after: column;
    display: block; /* Make the br behave like a block element */
}




