/*
 Theme Name: meinher-child
 Template: generatepress
 Text Domain: meinher-child
*/

/* ========================================
   SHOP MY VIDEO - BASE STYLES
   ======================================== */

/* Wrapper */
.mh-shop-my-video-wrapper {
    margin: 0 auto;
    background-color: var(--mh-smv-wrapper-bg, transparent);
}

/* Title and date above the columns - ALWAYS VISIBLE */
.mh-post-header {
    width: 100%;
    padding: 20px 0;
    margin: 0 0 20px 0;
    border: none;
    background: transparent;
    display: block;
}

.mh-post-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
    word-wrap: break-word;
    color: #000000;
}

.mh-post-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
    color: #000000;
}

/* ===== Single Post Product Row ===== */
.mh-post-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
    max-height: 450px;
    height: 450px;
    background-color: var(--mh-smv-row-bg, transparent);
}

/* Generic column: border and padding */
.mh-col {
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #555555;
    border-right-width: 0;
    background: transparent;
}

.mh-post-row .mh-col:first-child {
    border-left-width: 1px;
}

.mh-post-row .mh-col:last-child {
    border-right-width: 1px;
}

/* Video column has NO padding so image touches borders */
.mh-col-video {
}

/* Inner wrapper: flex column */
.mh-col-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

/* ===== Second column (video image) – fixed width ===== */
.mh-col-video {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
}

.mh-col-video .mh-col-inner {
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mh-col-video .mh-visual {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-col-video .mh-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===== Product columns (equal flexible width) ===== */
.mh-col-product {
    flex: 1 1 0;
    min-width: 150px;
}

.mh-col-product .mh-col-inner {
    justify-content: center;
    align-items: center;
}

/* Whole product clickable */
.mh-product-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

/* Product image area */
.mh-col-product .mh-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-col-product .mh-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product name band */
.mh-product-name-wrap {
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    flex: 0 0 auto;
}

/* Single-line truncated name */
.mh-product-name-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1200px;
    text-align: center;
    font-size: 0.9rem;
}

/* Safety: transparent backgrounds */
.mh-post-row,
.mh-col,
.mh-col-inner {
    background: transparent !important;
}

/* ========================================
   SHOP MY VIDEO - CAROUSEL STYLES
   ======================================== */

.mh-products-carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 1px solid #555555;
    border-left-width: 0;
}

.mh-smv-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
}

/* 3 items visible at once for Shop My Video */
.mh-carousel-item {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    box-sizing: border-box;
}

/* Product column inside carousel item */
.mh-carousel-item .mh-col-product {
    height: 100%;
    border: none;
    border-right: 1px solid #555555;
}

.mh-carousel-item:last-child .mh-col-product {
    border-right: none;
}

/* Carousel navigation buttons */
.mh-smv-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.mh-smv-carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.mh-smv-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.mh-smv-carousel-prev {
    left: 10px;
}

.mh-smv-carousel-next {
    right: 10px;
}

/* Disable buttons when at start/end */
.mh-smv-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mh-smv-carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* ===== RELATED POSTS SECTION - UPDATED TO MATCH SINGLE BLOG STYLE ===== */
.mh-related-section {
    margin-top: 80px;
    padding: 0 20px 60px;
    background-color: transparent;
}

.mh-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mh-related-heading {
    font-family: "Georgia", serif;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 0.1em;
    color: #000;
}

.mh-related-row {
    display: grid;
    gap: 25px;
    justify-items: center;
}

/* Dynamic grid based on number of posts */
.mh-related-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    justify-content: center;
}

.mh-related-card {
    border: 1px solid #000;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
    width: 100%;
    max-width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.mh-related-card:hover {
    transform: translateY(-5px);
}

.mh-related-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mh-related-image-wrap {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 15px 15px 0 15px;
    flex-shrink: 0;
}

.mh-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.mh-related-card:hover .mh-related-image {
    transform: scale(1.05);
}

.mh-related-title {
    font-family: Georgia, serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 15px;
    margin: 0;
    text-align: center;
    color: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hide default meta/comments & top gap on Shop My Video posts ===== */
.single-post.shop-my-video-active .entry-header,
.single-post.shop-my-video-active .entry-meta,
.single-post.shop-my-video-active .entry-footer,
.single-post.shop-my-video-active .comments-area {
    display: none;
}

.single-post.shop-my-video-active .site-content {
    padding-top: 0;
    margin-top: 0;
}

.single-post.shop-my-video-active .entry-content > *:first-child {
    margin-top: 0;
}

/* ========================================
   RESPONSIVE - SHOP MY VIDEO
   ======================================== */
@media (max-width: 900px) {
    /* MAIN LAYOUT RESTRUCTURING FOR MOBILE */
    .mh-shop-my-video-wrapper {
        display: flex;
        flex-direction: column;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Ensure header is visible and properly spaced for mobile */
    .mh-post-header {
        order: 1;
        padding: 15px 0 10px 0;
        margin: 0 0 15px 0;
        width: 100%;
        display: block;
    }
    
    .mh-post-title {
        font-size: 1.8rem;
        text-align: center;
        margin: 0 0 5px 0;
    }
    
    .mh-post-date {
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Stack all columns vertically */
    .mh-post-row {
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
        max-height: none;
        margin-bottom: 20px;
        order: 2;
    }
    
    /* Each column takes full width and stacks */
    .mh-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 1200px;
        min-width: 100%;
        margin-bottom: 16px;
        border-right-width: 1px;
        border-bottom-width: 0;
    }
    
    .mh-post-row .mh-col:last-child {
        border-bottom-width: 1px;
        margin-bottom: 0;
    }
    
    /* Main video image - second in mobile flow - SHOW FULL IMAGE */
    .mh-col-video {
        min-height: auto;
        padding: 0;
        height: auto;
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 1200px;
        order: 2;
    }
    
    .mh-col-video .mh-visual {
        height: auto;
        aspect-ratio: auto;
        min-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mh-col-video .mh-visual img {
        object-fit: contain;
        width: auto;
        height: auto;
        max-width: 1200px;
        max-height: 100%;
    }
    
    /* Products carousel - third in mobile flow */
    .mh-products-carousel {
        order: 3;
        flex: 0 0 auto;
        height: auto;
        min-height: 300px;
        border-left-width: 1px;
        border-color: #cccccc;
        margin: 0;
    }
    
    /* Carousel shows 1 item at a time on mobile */
    .mh-carousel-item {
        flex: 0 0 100% !important;
        min-width: 100%;
    }
    
    .mh-col-product {
        border-color: #cccccc;
        min-height: 280px;
    }
    
    .mh-carousel-item .mh-col-product {
        border-right-color: #cccccc;
    }
    
    .mh-col-product .mh-visual {
        height: auto;
    }
    
    .mh-col-product .mh-visual img {
        object-fit: contain;
    }
    
    /* Carousel navigation buttons */
    .mh-smv-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .mh-smv-carousel-prev {
        left: 5px;
    }
    
    .mh-smv-carousel-next {
        right: 5px;
    }
    
    /* RELATED POSTS - Updated styling */
    .mh-related-section {
        order: 4;
        margin-top: 30px;
        padding: 30px 16px;
        background-color: transparent;
    }
    
    .mh-related-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .mh-related-card {
        max-width: 1200px;
        height: 400px;
    }
    
    .mh-related-heading {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 600px) {
    .mh-related-row {
        grid-template-columns: 1fr;
    }
    
    .mh-related-card {
        height: 400px;
    }

    .mh-related-title {
        font-size: 0.9rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .mh-post-title {
        font-size: 1.5rem;
    }
    
    .mh-col-product {
        min-height: 240px;
    }
    
    .mh-products-carousel {
        min-height: 260px;
    }
    
    /* Ensure main image shows fully on very small screens */
    .mh-col-video .mh-visual {
        min-height: 250px;
    }
}

/* ========================================
   YOUTUBE VIDEO - BASE STYLES
   ======================================== */

/* Title and date above the columns - ALWAYS VISIBLE */
.mh-yt-post-header {
    width: 100%;
    padding: 20px 0;
    margin: 0 0 20px 0;
    border: none;
    background: transparent;
    display: block;
}

.mh-yt-post-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
    word-wrap: break-word;
    color: #000000;
}

.mh-yt-post-date {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
    color: #000000;
}

/* ===== Single Post Product Row ===== */
.mh-yt-post-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
    max-height: 350px;
    height: 350px;
    background-color: var(--mh-yt-row-bg, transparent);
}

/* Generic column: border and padding */
.mh-yt-col {
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-right-width: 0;
    background: transparent;
}

.mh-yt-post-row .mh-yt-col:first-child {
    border-left-width: 1px;
}

.mh-yt-post-row .mh-yt-col:last-child {
    border-right-width: 1px;
}

/* Video column has NO padding so image touches borders */
.mh-yt-col-video {
}

/* Inner wrapper: flex column */
.mh-yt-col-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
}

/* ===== HIDE TITLE COLUMN ===== */
.mh-yt-col-title {
    display: none !important;
}

/* ===== Video column – 16:9 aspect ratio ===== */
.mh-yt-col-video {
    flex: 0 0 auto;
    width: 622px;
    min-width: 622px;
    max-width: 622px;
}

.mh-yt-col-video .mh-yt-col-inner {
    justify-content: center;
    align-items: center;
    padding: 0;
}

.mh-yt-col-video .mh-yt-visual {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.mh-yt-col-video .mh-yt-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ===== Product columns (equal flexible width) ===== */
.mh-yt-col-product {
    flex: 1 1 0;
    min-width: 150px;
}

.mh-yt-col-product .mh-yt-col-inner {
    justify-content: center;
    align-items: center;
}

/* Whole product clickable */
.mh-yt-product-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

/* Product image area */
.mh-yt-col-product .mh-yt-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mh-yt-col-product .mh-yt-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Product name band */
.mh-yt-product-name-wrap {
    margin-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    flex: 0 0 auto;
}

/* Single-line truncated name */
.mh-yt-product-name-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 1200px;
    text-align: center;
    font-size: 0.9rem;
}

/* Safety: transparent backgrounds */
.mh-yt-post-row,
.mh-yt-col,
.mh-yt-col-inner {
    background: transparent !important;
}

/* ========================================
   YOUTUBE VIDEO - CAROUSEL STYLES
   ======================================== */

.mh-yt-products-carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 1px solid #cccccc;
    border-left-width: 0;
}

.mh-yt-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
}

/* 2 items visible at once for YouTube Video */
.mh-yt-carousel .mh-carousel-item {
    flex: 0 0 50%;
    min-width: 50%;
    box-sizing: border-box;
}

/* Product column inside carousel item */
.mh-yt-carousel .mh-carousel-item .mh-yt-col-product {
    height: 100%;
    border: none;
    border-right: 1px solid #cccccc;
}

.mh-yt-carousel .mh-carousel-item:last-child .mh-yt-col-product {
    border-right: none;
}

/* Carousel navigation buttons */
.mh-yt-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.mh-yt-carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.mh-yt-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.mh-yt-carousel-prev {
    left: 10px;
}

.mh-yt-carousel-next {
    right: 10px;
}

/* Disable buttons when at start/end */
.mh-yt-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mh-yt-carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* ========================================
   YOUTUBE VIDEO - CAROUSEL STYLES
   ======================================== */

.mh-yt-products-carousel {
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 1px solid #cccccc;
    border-left-width: 0;
}

.mh-yt-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
}

/* 2 items visible at once for YouTube Video */
.mh-yt-carousel .mh-carousel-item {
    flex: 0 0 50%;
    min-width: 50%;
    box-sizing: border-box;
}

/* Product column inside carousel item */
.mh-yt-carousel .mh-carousel-item .mh-yt-col-product {
    height: 100%;
    border: none;
    border-right: 1px solid #cccccc;
}

.mh-yt-carousel .mh-carousel-item:last-child .mh-yt-col-product {
    border-right: none;
}

/* Carousel navigation buttons */
.mh-yt-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    z-index: 10;
    transition: all 0.3s ease;
    line-height: 1;
}

.mh-yt-carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.mh-yt-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.mh-yt-carousel-prev {
    left: 10px;
}

.mh-yt-carousel-next {
    right: 10px;
}

/* Disable buttons when at start/end */
.mh-yt-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.mh-yt-carousel-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
}

/* ===== RELATED POSTS SECTION - YOUTUBE VIDEO (16:9 ratio) ===== */
.mh-yt-related-section {
    margin-top: 80px;
    padding: 0 20px 60px;
    background-color: transparent;
}

.mh-yt-related-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mh-yt-related-heading {
    font-family: "Georgia", serif;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 50px 0;
    letter-spacing: 0.1em;
    color: #000;
}

.mh-yt-related-row {
    display: grid;
    gap: 25px;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    justify-content: center;
}

.mh-yt-related-card {
    border: 1px solid #000;
    overflow: visible;
    transition: transform 0.3s ease;
    background: transparent;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.mh-yt-related-card:hover {
    transform: translateY(-5px);
}

.mh-yt-related-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 16:9 aspect ratio image wrapper - no cropping */
.mh-yt-related-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible;
    background: transparent;
    padding: 20px 30px 0 30px;
    flex-shrink: 0;
}

.mh-yt-related-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.mh-yt-related-card:hover .mh-yt-related-image {
    transform: scale(1.05);
}

.mh-yt-related-title {
    font-family: Georgia, serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 15px 30px 15px 30px;
    margin: 0;
    text-align: center;
    color: #000;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Hide default meta/comments & top gap on YouTube Video posts ===== */
.single-post.youtube-video-active .entry-header,
.single-post.youtube-video-active .entry-meta,
.single-post.youtube-video-active .entry-footer,
.single-post.youtube-video-active .comments-area {
    display: none;
}

.single-post.youtube-video-active .site-content {
    padding-top: 0;
    margin-top: 0;
}

.single-post.youtube-video-active .entry-content > *:first-child {
    margin-top: 0;
}

/* ========================================
   RESPONSIVE - YOUTUBE VIDEO
   ======================================== */
@media (max-width: 900px) {
    .mh-yt-post-row {
        flex-wrap: wrap;
        height: auto;
        max-height: none;
    }

    .mh-yt-col {
        flex: 1 1 100%;
        width: 100%;
        border-right-width: 1px !important;
        border-left-width: 1px !important;
    }

    .mh-yt-col-video {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 1200px;
    }

    .mh-yt-col-video .mh-yt-visual {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
    }

    .mh-yt-col-video .mh-yt-visual img {
        object-fit: contain;
    }

    .mh-yt-col-product .mh-yt-visual {
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .mh-yt-col-product .mh-yt-visual img {
        object-fit: contain;
    }

    /* Carousel shows 1 item at a time on mobile */
    .mh-yt-carousel .mh-carousel-item {
        flex: 0 0 100% !important;
        min-width: 100%;
    }

    .mh-yt-products-carousel {
        border-left-width: 1px;
    }

    .mh-yt-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .mh-yt-carousel-prev {
        left: 5px;
    }

    .mh-yt-carousel-next {
        right: 5px;
    }

    /* RELATED POSTS - Updated styling */
    .mh-yt-related-section {
        margin-top: 30px;
        padding: 30px 16px;
        background-color: transparent;
    }

    .mh-yt-related-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mh-yt-related-card {
        max-width: 1200px;
        height: auto;
    }

    .mh-yt-related-heading {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }

    .mh-yt-related-image-wrap {
        padding: 15px 20px 0 20px;
    }

    .mh-yt-related-title {
        padding: 15px 20px 20px 20px;
    }

    .mh-youtube-video-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 600px) {
    .mh-yt-related-row {
        grid-template-columns: 1fr;
    }

    .mh-yt-related-card {
        height: auto;
    }

    .mh-yt-related-title {
        font-size: 0.9rem;
    }
}

/* ========================================
   CUSTOM BLOG POST LAYOUT - SPLIT LAYOUT
   ======================================== */

.mh-custom-post-navigation {
    width: 100% !important;
    max-width: 100% !important;
}

/* Force full-width container */
.mh-custom-single-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.mh-custom-single-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 60px;
}

.mh-custom-blog-post {
    margin-bottom: 60px;
}

/* ===== HERO SECTION: Two Columns ===== */
.mh-custom-hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 60px;
    border: 1px solid #000;
    max-height: 70vh;
    height: auto;
}

/* LEFT COLUMN: Text Content */
.mh-custom-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 50px;
    border-left: 1px solid #000;
}

/* Category at top */
.mh-custom-category {
    margin-bottom: 20px;
    padding-top: 0;
}

.mh-custom-category-label {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #666;
}

/* Title in center */
.mh-custom-blog-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 !important;
    color: #000;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Meta at bottom */
.mh-custom-hero-meta {
    margin-top: 20px;
}

.mh-custom-blog-date {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

.mh-custom-blog-author {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 16px 0;
    font-family: Georgia, serif;
}

.mh-custom-blog-author .mh-custom-author-name {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #000;
}

.mh-custom-blog-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.mh-custom-blog-excerpt p {
    margin: 0;
}

/* RIGHT COLUMN: Featured Image */
.mh-custom-hero-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Blurred background overlay */
.mh-custom-hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: inherit;
    filter: blur(80px);
    z-index: 1;
}

.mh-custom-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
}

/* ===== CONTENT SECTION (Below Hero) ===== */
.mh-custom-blog-content {

    margin: 0 auto;
    padding: 0 20px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.mh-custom-blog-content p {
    margin-bottom: 1.5em;
}

.mh-custom-blog-content h2,
.mh-custom-blog-content h3,
.mh-custom-blog-content h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-family: Georgia, serif;
    font-weight: 600;
}

.mh-custom-blog-content img {
    max-width: 1200px;
    height: auto;
    margin: 2em 0;
}

.mh-custom-blog-content ul,
.mh-custom-blog-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.mh-custom-blog-content li {
    margin-bottom: 0.5em;
}

/* Footer */
.mh-custom-blog-footer {

    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid #e0e0e0;
}

.mh-custom-blog-footer .tags-links {
    font-size: 0.875rem;
    color: #666;
}

.mh-custom-blog-footer .tags-links a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 2px;
    margin: 0 4px;
}

.mh-custom-blog-footer .tags-links a:hover {
    border-bottom-color: #333;

/* Blog content - same width as hero section, left-aligned */
.mh-custom-blog-content {
    width: 100%;
    max-width: 1200px;
    margin: 0;
    padding: 40px 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    text-align: left;
    box-sizing: border-box;
}

.mh-custom-blog-content p,
.mh-custom-blog-content h2,
.mh-custom-blog-content h3,
.mh-custom-blog-content h4,
.mh-custom-blog-content ul,
.mh-custom-blog-content ol {
    text-align: left;
}

/* Blog footer - same width as hero section */
.mh-custom-blog-footer {
    width: 100%;
    max-width: 1200px;
    margin: 40px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
}

}

.mh-custom-blog-footer {
    padding-left: 0;
    padding-right: 0;
    padding-top: 20px;
}
}

/* Hide sidebar on custom blog posts */
body.single-post .mh-custom-single-container ~ .widget-area,
body.single-post .mh-custom-single-container ~ #secondary,
body.single-post .mh-custom-single-container ~ aside {
    display: none !important;
}

/* Ensure the container takes full width */
body.single-post .site-content:has(.mh-custom-single-container) {
    display: block !important;
}

body.single-post .site-content .mh-custom-single-container {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* Override GeneratePress grid if present */
.site-content:has(.mh-custom-single-container) {
    display: block !important;
}

/* ========================================
   CUSTOM POST NAVIGATION (Prev/Next)
   REMOVED - NO LONGER NEEDED
   ======================================== */

.mh-custom-post-navigation {
    display: none !important;
}

/* ========================================
   RELATED POSTS SECTION
   ======================================== */

.mh-related-posts-section {
    max-width: 1200px;
    margin: 80px auto 60px;
    padding: 0 20px;
}

.mh-related-posts-title {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: center;
    margin: 0 0 50px 0;
    color: #000;
}

.mh-related-posts-grid {
    display: grid;
    gap: 25px;
    justify-items: center;
}

/* 3 posts - full row */
.mh-related-posts-grid.mh-related-posts-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

/* 2 posts - centered */
.mh-related-posts-grid.mh-related-posts-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

/* 1 post - centered */
.mh-related-posts-grid.mh-related-posts-1 {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
}

.mh-related-post-item {
    border: 1px solid #000;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: #fff;
    width: 100%;
    max-width: 300px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.mh-related-post-item:hover {
    transform: translateY(-5px);
}

.mh-related-post-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mh-related-post-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 15px 15px 0 15px;
    flex-shrink: 0;
}

.mh-related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.mh-related-post-item:hover .mh-related-post-image img {
    transform: scale(1.05);
}

.mh-related-post-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.mh-related-post-title {
    font-family: Georgia, serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 15px;
    margin: 0;
    text-align: center;
    color: #000;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE - POST NAVIGATION
   REMOVED - NO LONGER NEEDED
   ======================================== */

/* ========================================
   RESPONSIVE - CUSTOM BLOG POST
   ======================================== */

@media (max-width: 900px) {
    /* Stack columns on tablets and mobile */
    .mh-custom-hero-section {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: none;
    }

    .mh-custom-hero-text {
        padding: 30px 25px;
        border-right: none;
        border-bottom: 1px solid #000;
        min-height: 200px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .mh-custom-category {
        margin-bottom: 10px;
    }

    .mh-custom-category-label {
        font-size: 0.65rem;
    }

    .mh-custom-blog-title {
        font-size: 1.5rem;
        margin-bottom: 10px !important;
    }

    .mh-custom-hero-meta {
        margin-top: 10px;
    }

    .mh-custom-blog-date {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .mh-custom-blog-author {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .mh-custom-blog-excerpt {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .mh-custom-hero-image {
        height: 450px;
        min-height: 450px;
        max-height: 450px;
    }

    /* Related posts responsive */
    .mh-related-posts-grid.mh-related-posts-3,
    .mh-related-posts-grid.mh-related-posts-2,
    .mh-related-posts-grid.mh-related-posts-1 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
    }
    
    .mh-related-post-item {
        max-width: 1200px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .mh-custom-single-main {
        padding: 40px 15px;
    }

    .mh-custom-blog-title {
        font-size: 1.4rem;
    }

    .mh-custom-blog-excerpt {
        font-size: 0.75rem;
    }

    .mh-custom-blog-content {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .mh-related-posts-grid.mh-related-posts-3,
    .mh-related-posts-grid.mh-related-posts-2,
    .mh-related-posts-grid.mh-related-posts-1 {
        grid-template-columns: 1fr;
    }
    
    .mh-related-posts-title {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
    
    .mh-related-post-item {
        height: 400px;
    }

    .mh-related-post-title {
        font-size: 0.9rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .mh-custom-blog-title {
        font-size: 1.3rem;
    }
    
    .mh-custom-category-label {
        font-size: 0.6rem;
    }

    .mh-custom-hero-text {
        padding: 20px 15px;
        min-height: 180px;
    }

    .mh-custom-hero-section {
        margin-bottom: 60px;
    }

    .mh-custom-blog-date,
    .mh-custom-blog-author {
        font-size: 0.7rem;
    }

    .mh-custom-blog-excerpt {
        font-size: 0.7rem;
    }
}

/* ========================================
   MOBILE FIX - CENTERED WITH SIDE PADDING, SHRUNK CONTENT, NO BORDER
   ======================================== */

/* Force everything to stay within viewport on mobile */
@media (max-width: 900px) {
    /* Kill overflow on body and html */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Remove all padding/margin from parent containers */
    body.single-post,
    body.single-post .site,
    body.single-post #page,
    body.single-post .site-content,
    body.single-post #primary,
    body.single-post .content-area,
    body.single-post .mh-custom-single-container,
    body.single-post .grid-container,
    body.single-post article {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Main content area - ADD SIDE PADDING */
    body.single-post .mh-custom-single-main {
        padding: 20px 20px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Hero section - REMOVE ALL BORDERS ON MOBILE */
    body.single-post .mh-custom-hero-section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 40px !important;
        box-sizing: border-box !important;
        border: none !important;
    }
    
    /* Hero text - SHRINK THE METADATA BOX - NO BORDERS */
    body.single-post .mh-custom-hero-text {
        padding: 20px 15px !important;
        border: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-height: auto !important;
    }
    
    /* Shrink category label */
    body.single-post .mh-custom-category {
        margin-bottom: 8px !important;
    }
    
    body.single-post .mh-custom-category-label {
        font-size: 0.6rem !important;
    }
    
    /* Shrink title */
    body.single-post .mh-custom-blog-title {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin-bottom: 8px !important;
    }
    
    /* Shrink meta data */
    body.single-post .mh-custom-hero-meta {
        margin-top: 10px !important;
    }
    
    body.single-post .mh-custom-blog-date {
        font-size: 0.7rem !important;
        margin-bottom: 6px !important;
    }
    
    body.single-post .mh-custom-blog-author {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }
    
    body.single-post .mh-custom-blog-excerpt {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    /* Hero image - shrink to fit, no borders */
    body.single-post .mh-custom-hero-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
    
    /* Blog content - SHRINK AND CENTER WITH SIDE PADDING */
    body.single-post .mh-custom-blog-content {
        padding: 30px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    body.single-post .mh-custom-blog-content p {
        margin-bottom: 1.2em !important;
    }
    
    body.single-post .mh-custom-blog-content h2 {
        font-size: 1.4rem !important;
        margin-top: 1.5em !important;
        margin-bottom: 0.6em !important;
    }
    
    body.single-post .mh-custom-blog-content h3 {
        font-size: 1.2rem !important;
        margin-top: 1.3em !important;
        margin-bottom: 0.5em !important;
    }
    
    body.single-post .mh-custom-blog-content h4 {
        font-size: 1.1rem !important;
        margin-top: 1.2em !important;
        margin-bottom: 0.5em !important;
    }
    
    /* Blog footer - centered with side padding */
    body.single-post .mh-custom-blog-footer {
        padding: 20px 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    /* SHRINK COMMENTS SECTION */
    body.single-post .comments-area {
        padding: 20px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        font-size: 0.9rem !important;
    }
    
    body.single-post .comments-title,
    body.single-post .comment-reply-title {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
    }
    
    body.single-post .comment-list {
        font-size: 0.9rem !important;
    }
    
    body.single-post .comment-metadata {
        font-size: 0.75rem !important;
    }
    
    body.single-post .comment-form input[type="text"],
    body.single-post .comment-form input[type="email"],
    body.single-post .comment-form input[type="url"],
    body.single-post .comment-form textarea {
        font-size: 0.9rem !important;
        padding: 8px 10px !important;
    }
    
    /* Related posts section - centered with side padding */
    body.single-post .mh-related-posts-section {
        padding: 0 20px 40px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    
    /* Post navigation - centered with side padding */
    body.single-post .mh-custom-post-navigation {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 20px !important;
        margin-bottom: 40px !important;
    }
}

@media (max-width: 768px) {
    body.single-post .mh-custom-single-main {
        padding: 20px 15px !important;
    }
    
    body.single-post .mh-custom-hero-text {
        padding: 18px 12px !important;
    }
    
    body.single-post .mh-custom-blog-title {
        font-size: 1.2rem !important;
    }
    
    body.single-post .mh-custom-hero-image {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    body.single-post .mh-custom-blog-content {
        padding: 25px 15px !important;
        font-size: 0.9rem !important;
    }
    
    body.single-post .mh-custom-blog-footer {
        padding: 20px 15px 0 !important;
    }
    
    body.single-post .comments-area {
        padding: 20px 15px !important;
    }
    
    body.single-post .mh-related-posts-section {
        padding: 0 15px 40px !important;
    }
    
    body.single-post .mh-custom-post-navigation {
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    body.single-post .mh-custom-single-main {
        padding: 15px 12px !important;
    }
    
    body.single-post .mh-custom-hero-text {
        padding: 15px 10px !important;
    }
    
    body.single-post .mh-custom-blog-title {
        font-size: 1.1rem !important;
    }
    
    body.single-post .mh-custom-category-label {
        font-size: 0.55rem !important;
    }
    
    body.single-post .mh-custom-blog-date,
    body.single-post .mh-custom-blog-author {
        font-size: 0.65rem !important;
    }
    
    body.single-post .mh-custom-blog-excerpt {
        font-size: 0.7rem !important;
    }
    
    body.single-post .mh-custom-hero-image {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
    }
    
    body.single-post .mh-custom-blog-content {
        padding: 20px 12px !important;
        font-size: 0.85rem !important;
    }
    
    body.single-post .mh-custom-blog-content h2 {
        font-size: 1.2rem !important;
    }
    
    body.single-post .mh-custom-blog-content h3 {
        font-size: 1.1rem !important;
    }
    
    body.single-post .mh-custom-blog-content h4 {
        font-size: 1rem !important;
    }
    
    body.single-post .mh-custom-blog-footer {
        padding: 15px 12px 0 !important;
    }
    
    body.single-post .comments-area {
        padding: 15px 12px !important;
        font-size: 0.85rem !important;
    }
    
    body.single-post .comments-title,
    body.single-post .comment-reply-title {
        font-size: 1.1rem !important;
    }
    
    body.single-post .mh-related-posts-section {
        padding: 0 12px 30px !important;
    }
    
    body.single-post .mh-custom-post-navigation {
        padding: 0 12px !important;
    }
}
/* GLOBAL FIX - Force 2000px Max Width Everywhere */
html {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
    max-width: 2000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.site,
#page,
.grid-container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Center Single Blog Posts */
.single-post .mh-custom-single-container,
.single-post .mh-custom-single-main {
    margin-left: auto !important;
    margin-right: auto !important;
}

.single-post .mh-custom-hero-section {
    margin-left: auto !important;
    margin-right: auto !important;
}

.single-post .mh-custom-blog-content {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Hide Website Field in Comments */
.comment-form-url,
p.comment-form-url,
#comment-form-url,
.comment-form .url,
.comment-form-field.comment-form-url {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Set Comment Form Width to 1100px */
#comments,
.comment-respond {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* AGGRESSIVE - Remove Website Field */
.comment-form-url {
    display: none !important;
}

/* Target Website field by ID and name */
input#url,
input[name="url"],
label[for="url"] {
    display: none !important;
}

/* Hide parent paragraph containing website field */
.comment-form p.comment-form-url,
.comment-form-url,
#commentform .comment-form-url {
    display: none !important;
}

/* Set specific pages to 1400px container */
/* Set pages and blog posts to 1100px container with centered headings */
.page .entry-content,
body.page article,
body.page .site-content,
.single-post .entry-content,
.single-post article {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Center page titles ONLY (not blog posts) */
body.page .entry-header,
body.page .entry-title {
    text-align: center !important;
}