/*
*Theme Name:     Lemon & Limes Child Theme
*Theme URI:      http://lemonlimes.loftocean.com/
*Description:    Lemon & Limes child theme for user customization
*Author:         Loft.Ocean
*Author URI:     http://www.loftocean.com
*License:        GNU General Public License v2 or later
*License URI:    http://www.gnu.org/licenses/gpl-2.0.html
*Tags:           full-width-template, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*Template:       lemon-limes
*Text Domain:    lemon-limes-child
*Version:        1.0
*/

/** Add your styles below **/

/* Template 4 Header Grid Layout - Full height image alignment */
.template-4-header-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    margin-top: 2em;
    margin-bottom: 2em;
    align-items: stretch;
    background-color: #f2f3ed;
    padding: 30px;
}

.template-4-header-meta {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-right: 2em;
}

.template-4-header-meta .breadcrumbs {
    margin: 0;
}

.template-4-header-meta .template-4-title {
    margin: 0;
    font-size: 2.5em;
    line-height: 1.2;
}

.template-4-header-meta .meta {
    font-size: 1em;
    margin: 0;
}

.template-4-header-meta .post-excerpt {
    font-size: 1.2em;
    line-height: 1.6;
    color: var(--lemon-limes-text-color);
}

.template-4-header-meta .meta.meta-actions a.jump-to-recipe-button {
    font-weight: 600;
    padding: 10px 20px;
    background-color: #efd0ce;
    margin-right: 15px;
}

/* Modified image container to stretch full height */
.template-4-header-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.template-4-header-image .featured-media-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.template-4-header-image .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive adjustments for Template 4 header */
/* Tablet or less */
@media screen and (max-width: 992px) {
    .template-4-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: auto; /* Remove fixed minimum height on mobile */
    }
    
    /* When stacked, revert to aspect ratio method for height */
    .template-4-header-image {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: calc(100% * 4/3); /* Maintain 3:4 aspect ratio on mobile */
    }
}

/* Mobile or less */
@media screen and (max-width: 768px) {
    /* Reduce header to content spacing when on mobile and template 4 only */
    body.post-template-4 .site-content {
        margin-top: -35px !important;
    }
    .template-4-header-grid {
        /* FULL WIDTH BREAKOUT STYLES */
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    .template-4-header-meta {
        padding-right: 0 !important;
    }
    .template-4-header-meta .template-4-title {
        font-size: 2em;
    }
    .template-4-header-meta .meta.meta-post-info {
        font-size: .8em !important;
    }
    .template-4-header-meta .meta-rating {
        margin: 0 !important;
    }
    .template-4-header-meta .post-excerpt {
        font-size: 1em !important;
    }
    .meta.meta-actions {
        font-size: .8em !important;
    }
    .meta.meta-actions .jump-to-recipe-button {
        padding: 8px 15px !important;
    }
    .meta.meta-actions .meta-comments {
        display: inline !important;
    }
}

/* Comments icon styling */
.meta-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-comments .comments-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    color: currentColor;
}

/* WP Forms styling */
.wpforms-container .wpforms-field-container .wpforms-field {
	margin-bottom: 1em;
}

.wpforms-container .wpforms-field-container .wpforms-field-label {
	font-size: 1rem;
}

.wpforms-container .wpforms-submit-container button[type="submit"] {
	padding: 15px 30px !important;
	font-size: 20px !important;
	font-weight: 600;
	color: var(--light-content-color);
	background-color: #EFD0CE;
	border: 1px solid var(--light-content-color);
}