/**
 * IPSE Custom Entry Layout Styles
 * Layout: Featured image hero + 2 columns (content left, gallery right)
 */

/* Featured image hero at top */
.ipse-entry-hero {
    width: 100%;
    max-width: 100%;
    margin: 0 0 40px 0;
    overflow: hidden;
}

.ipse-entry-hero img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Two column layout wrapper */
.ipse-entry-wrapper {
    /*display: grid;*/
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    margin-left:20px;
    margin-right:20px;
}

.ipse-entry-wrapper.ipse-has-gallery {
    grid-template-columns: 1fr 400px;
}

.ipse-entry-wrapper.ipse-no-gallery {
    grid-template-columns: 1fr;
}

/* Content column (left side) */
.ipse-entry-content-column {
    min-width: 0; /* Prevent grid blowout */
    width: 50%;
    /* background: red; */
    display: flex;
    align-items: flex-start;
}

.ipse-entry-content-column .entry-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.ipse-entry-content-column .entry-body p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.ipse-entry-content-column .entry-body h2,
.ipse-entry-content-column .entry-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #222;
}

/* Gallery column (right side) */
.ipse-entry-gallery-column {
    position: sticky;
    top: 20px;
    align-self: start;
    width: 50%;
    display: flex;
    align-items: flex-start;
}

/* Entry header adjustments for single posts */
.ipse-entry-layout .entry-header {
    margin-bottom: 30px;
    margin-left: 20px;
    margin-right: 20px;
}

.ipse-entry-layout .entry-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #222;
}

/* Meta info styling */
.ipse-entry-layout .entry-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Entry footer adjustments */
.ipse-entry-layout .entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Location field (ACF lugar) styling in entry */
.ipse-entry-location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.ipse-entry-location:before {
    content: "📍";
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .ipse-entry-wrapper.ipse-has-gallery {
        grid-template-columns: 1fr 350px;
    }
}

@media (max-width: 768px) {
    .ipse-entry-wrapper.ipse-has-gallery {
        grid-template-columns: 1fr;
    }
    
    .ipse-entry-gallery-column {
        position: static;
    }
    
    .ipse-entry-hero img {
        max-height: 300px;
    }
    
    .ipse-entry-layout .entry-title {
        font-size: 1.6rem;
    }
}
.site-body{
    padding-top:0px;
}
/* Ensure full width for entry layout */
.single-post .ipse-entry-layout {
    max-width: 100%;
}

.single-post .site-body-container,
.single-post .main-section {
    max-width: 1400px;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

/* Gallery counter style match */
.ipse-gallery-counter {
    font-family: inherit;
}
