html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body.blog-page {
    font-family: 'Montserrat', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    background-color: #fffef7;
    box-sizing: border-box;
    position: relative;
    color: #2d2d2d;
}

.blog-page .hamburger-menu {
    position: absolute;
    top: 5px;
    right: 60px;
    z-index: 1000;
}

.blog-page .hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.blog-page .hamburger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #2d2d2d;
    transition: all 0.3s ease;
}

.blog-page .hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.blog-page .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.blog-page .hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.blog-page .hamburger-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fffef7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    display: none;
    overflow: hidden;
}

.blog-page .hamburger-dropdown.active {
    display: block;
}

.blog-page .hamburger-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #2d2d2d;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-page .hamburger-dropdown a:last-child {
    border-bottom: none;
}

.blog-page .hamburger-dropdown a:hover {
    background-color: #f5f5f5;
}

.blog-page .hamburger-dropdown a.current-page {
    color: #ec0059;
}

.blog-header {
    position: relative;
    padding: 10px 40px;
    width: 100%;
    box-sizing: border-box;
}

.blog-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 24px;
    width: 100%;
    box-sizing: border-box;
}

.blog-hero {
    text-align: center;
    margin: 0 0 16px;
}

/* Library title starts at the same height as the /tools h1. Post back-link sits a little below that. */
.blog-header:has(+ .blog-container > .blog-hero),
.blog-header:has(+ .blog-container > .blog-article:not(.blog-static)) {
    padding-bottom: 0;
}

.blog-container:has(> .blog-hero),
.blog-container:has(> .blog-article:not(.blog-static)) {
    padding-top: 0;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    color: #2d2d2d;
    margin: 15px 0 16px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.blog-hero h1 a {
    color: inherit;
    text-decoration: none;
}

.blog-hero h1 a:hover {
    color: #ec0059;
}

.blog-hero p {
    color: #444;
    font-size: 15px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto;
}

.blog-read-about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin: 0 auto;
    max-width: 720px;
}

.blog-read-about label {
    font-size: 14px;
    color: #666;
}

.blog-read-about input[type="search"] {
    font-family: inherit;
    font-size: 14px;
    color: #2d2d2d;
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 12px;
    min-width: 180px;
    width: 220px;
    max-width: 100%;
}

.blog-read-about input[type="search"]:focus {
    outline: none;
    border-color: #ec0059;
}

.blog-read-about-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

.blog-read-about-cats a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.blog-read-about-cats a:hover,
.blog-read-about-cats a.is-current {
    color: #ec0059;
}

.blog-read-about-empty {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 auto 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    max-width: 920px;
    margin: 0 auto 40px;
}

.blog-card[hidden] {
    display: none !important;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0ebe0;
    border-radius: 2px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    border-color: #e0d8c8;
    box-shadow: 0 2px 14px rgba(45, 45, 45, 0.06);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f4f0e6;
}

.blog-card-image-empty {
    height: 140px;
    background: #f4f0e6;
}

.blog-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin: 0;
    color: #2d2d2d;
}

.blog-meta {
    font-size: 13px;
    color: #666;
    letter-spacing: 0.02em;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-article {
    max-width: 720px;
    margin: 0 auto 50px;
}

.blog-article:not(.blog-static) {
    padding-top: 6px;
}

.blog-article-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 2px;
    margin: 0 0 28px;
    background: #f4f0e6;
}

.blog-article h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.25;
    margin: 0 0 12px;
    text-align: center;
}

.blog-article-meta {
    text-align: center;
    margin: 0 0 32px;
}

.blog-back {
    display: inline-block;
    margin-bottom: 22px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.blog-back:hover {
    color: #2d2d2d;
}

.blog-body {
    font-size: 16px;
    line-height: 1.75;
    color: #2d2d2d;
}

.blog-body p,
.blog-body li {
    margin: 0 0 1.1em;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin: 1.6em 0 0.6em;
}

.blog-body h2 {
    font-size: 24px;
}

.blog-body h3 {
    font-size: 20px;
}

.blog-body h4 {
    font-size: 18px;
}

.blog-body a {
    color: #2d2d2d;
    text-decoration: underline;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.4em auto;
}

.blog-body ul,
.blog-body ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

.blog-body blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 18px;
    border-left: 2px solid #d8d0c0;
    color: #444;
}

.blog-body figure {
    margin: 1.4em 0;
}

.blog-body figcaption {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    text-align: center;
}

.blog-not-found {
    text-align: center;
    padding: 40px 0 80px;
}

.blog-not-found h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 12px;
}

.blog-page footer {
    margin-top: 60px;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #fffef7;
}

.blog-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.blog-footer-mark {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #2d2d2d;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.blog-footer-links {
    margin-bottom: 20px;
    font-size: 14px;
}

.blog-footer-copy {
    color: #999;
    font-size: 12px;
}

.blog-page footer a:hover {
    color: #2d2d2d !important;
}

@media (max-width: 768px) {
    body.blog-page {
        padding: 10px 5px;
        max-width: 100%;
        margin: 0;
    }

    .blog-header,
    .blog-container {
        padding: 10px 15px;
    }

    .blog-header:has(+ .blog-container > .blog-hero),
    .blog-header:has(+ .blog-container > .blog-article:not(.blog-static)) {
        padding-bottom: 0;
    }

    .blog-container:has(> .blog-hero),
    .blog-container:has(> .blog-article:not(.blog-static)) {
        padding-top: 0;
    }

    .blog-page .hamburger-menu {
        top: 15px;
        right: 20px;
    }

    .blog-header .site-brand-header,
    .blog-header .logo-container {
        margin-top: 44px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-image,
    .blog-card-image-empty {
        height: 110px;
    }

    .blog-hero h1,
    .blog-article h1 {
        font-size: 26px;
    }

    .blog-page .hamburger-dropdown a {
        font-size: 16px;
        padding: 14px 20px;
    }

    .blog-body {
        font-size: 18px;
    }

    .blog-article:not(.blog-static) .blog-article-meta {
        font-size: 15px;
    }

    .blog-article .blog-back {
        font-size: 15px;
    }

    .blog-page footer {
        padding: 30px 15px;
    }
}

.blog-related {
    max-width: 720px;
    margin: 0 auto 40px;
}

.blog-container:has(> .blog-related) .blog-article {
    margin-bottom: 28px;
}

.blog-related .home-category-slider-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
}

.blog-related .home-category-slider-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0;
    flex: 1;
}

.blog-related .home-category-slider-head h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-related .home-category-slider-head h3 a:hover {
    text-decoration: underline;
}

.blog-related .home-category-see-all {
    color: #2d2d2d;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.blog-related .home-category-see-all:hover {
    text-decoration: underline;
}

.blog-related .home-category-track-wrap {
    position: relative;
}

.blog-related .home-slider-arrow {
    position: absolute;
    top: 65px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 254, 247, 0.88);
    color: #2d2d2d;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.blog-related .home-slider-arrow.is-prev {
    left: 6px;
}

.blog-related .home-slider-arrow.is-next {
    right: 6px;
}

.blog-related .home-slider-arrow:hover {
    background: #fffef7;
}

.blog-related .home-category-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.blog-related .home-post-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #f0ebe0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.blog-related .home-post-card:hover {
    border-color: #e0d8c8;
}

.blog-related .home-post-card img,
.blog-related .home-post-card-empty {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: #f4f0e6;
    margin: 0;
}

.blog-related .home-post-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    padding: 12px 14px 14px;
    color: #2d2d2d;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .blog-related .home-slider-arrow {
        display: none;
    }

    .blog-related .home-post-card {
        flex-basis: 200px;
    }

    .blog-related .home-post-card h3 {
        font-size: 18px;
        -webkit-line-clamp: 4;
    }
}

.about-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0 28px;
    align-items: end;
    margin: 0 0 1.1em;
}

.blog-body img.about-portrait {
    float: none;
    width: 300px;
    max-width: 100%;
    height: auto;
    margin: 0;
    display: block;
    border: 1px solid #e8e2d6;
    box-shadow: 0 2px 10px rgba(45, 45, 45, 0.08);
    background: #fff;
}

.about-hero-copy h1 {
    margin: 0 0 8px;
    padding: 0;
    font-size: 42px;
    text-align: left;
    line-height: 1.15;
}

.about-hero-copy p:last-child {
    margin-bottom: 0;
}

.about-intro h2 {
    padding-top: 8px;
}

.blog-static h1 {
    text-align: left;
}

.blog-form {
    max-width: 520px;
    margin: 8px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-form label {
    font-size: 14px;
    margin-top: 10px;
}

.blog-form input,
.blog-form textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid #e0d8c8;
    background: #fff;
    color: #2d2d2d;
    width: 100%;
    box-sizing: border-box;
}

.blog-form input:focus,
.blog-form textarea:focus {
    outline: none;
    border-color: #2d2d2d;
    box-shadow: 0 0 0 1px #2d2d2d;
}

.blog-form button {
    margin-top: 16px;
    align-self: flex-start;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 10px 22px;
    border: 1px solid #2d2d2d;
    background: #fffef7;
    color: #2d2d2d;
    cursor: pointer;
}

.blog-form button:hover {
    background: #2d2d2d;
    color: #fffef7;
}

.blog-form-note,
.blog-form-status {
    font-size: 14px;
    color: #666;
    margin: 12px 0;
}

.blog-form-error {
    font-size: 14px;
    color: #8a2f2f;
    margin: 8px 0 0;
}

.blog-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.contact-page h1,
.contact-page .blog-body,
.contact-page .blog-form-status {
    text-align: center;
}

.contact-page .blog-form-status {
    font-size: 16px;
    color: #2d2d2d;
    margin: 8px auto 48px;
}

.contact-page .blog-body p {
    margin: 0 auto 28px;
    max-width: 36em;
    line-height: 1.55;
}

.blog-form--contact {
    display: block;
    max-width: 520px;
    width: 100%;
    margin: 0 auto 48px;
    text-align: left;
}

.blog-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.blog-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.blog-form--contact label {
    display: block;
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.3;
}

.blog-form--contact input,
.blog-form--contact textarea {
    margin: 0;
    padding: 12px 14px;
    font-size: 16px;
}

.blog-form--contact .blog-form-note,
.blog-form--contact .blog-form-error {
    text-align: center;
}

.blog-form--contact .blog-form-note {
    margin: 28px 0 0;
}

.blog-form--contact .blog-form-error {
    margin: 16px 0 0;
}

.blog-form--contact button {
    display: block;
    margin: 24px auto 0;
    padding: 12px 28px;
    align-self: center;
    background: #2d2d2d;
    color: #fffef7;
}

.contact-heart {
    display: block;
    width: 112px;
    height: auto;
    margin: 24px auto 0;
}

@media (min-width: 720px) {
    .blog-form-grid {
        gap: 28px;
    }

    .blog-form-field {
        gap: 12px;
    }

    .contact-page .blog-form--contact {
        max-width: 380px;
    }

    .contact-page .blog-form-grid {
        gap: 14px;
    }

    .contact-page .blog-form-field {
        gap: 6px;
    }

    .contact-page .blog-form--contact input,
    .contact-page .blog-form--contact textarea {
        padding: 8px 12px;
    }

    .contact-page .blog-form--contact textarea {
        min-height: 0;
        height: 5.5em;
    }

    .contact-page .blog-form--contact .blog-form-note {
        margin-top: 16px;
    }

    .contact-page .blog-form--contact button {
        margin-top: 16px;
    }

    .contact-page .contact-heart {
        margin-top: 32px;
    }
}

@media (max-width: 768px) {
    .about-hero {
        display: block;
        margin-bottom: 1.1em;
    }

    .blog-body img.about-portrait {
        width: min(280px, 100%);
        max-width: 100%;
        margin: 0 auto 22px;
    }

    .about-hero-copy h1 {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .contact-page .blog-form--contact label {
        font-size: 18px;
        line-height: 1.3;
        text-align: center;
    }

    .contact-page .blog-form--contact .blog-form-note {
        font-size: 16px;
    }

    .contact-page .blog-form--contact button {
        font-size: 18px;
        padding: 12px 28px;
    }

    .contact-page .contact-heart {
        margin-top: 40px;
    }
}

.calendar-shots {
    display: none;
}

.calendar-zoom {
    cursor: zoom-in;
}

.calendar-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.78);
    cursor: zoom-out;
}

.calendar-lightbox[hidden] {
    display: none;
}

.calendar-lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0;
}

.calendar-stars {
    margin: 0 0 0.5em;
}

.calendar-stars img {
    width: 110px;
    max-width: 110px;
    height: auto;
    margin: 0;
    display: block;
}

@media (min-width: 769px) {
    .calendar-post .calendar-buy {
        display: inline-block;
        border: 1px solid #2d2d2d;
        border-radius: 0;
        padding: 8px 20px;
        text-decoration: none;
        background: transparent;
        color: #2d2d2d;
    }

    .calendar-post .calendar-buy:hover {
        text-decoration: none;
    }

    .calendar-inline-shot {
        display: none;
    }

    .calendar-shots {
        display: block;
        position: relative;
        max-width: 480px;
        aspect-ratio: 800 / 420;
        margin: 1.4em auto 2em;
        background: #f4f0e6;
        overflow: hidden;
    }

    .calendar-shots img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        object-fit: contain;
        object-position: center;
        opacity: 0;
        pointer-events: none;
    }

    .calendar-shots img.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    .calendar-shots-arrow {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid #2d2d2d;
        border-radius: 0;
        background: #fffef7;
        color: #2d2d2d;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .calendar-shots-arrow.is-prev {
        left: 8px;
    }

    .calendar-shots-arrow.is-next {
        right: 8px;
    }
}
