/* /includes/frontend-shortcodes.css (Final Consolidated Version) */


/* ===================================================================
   SECTION 1: Issues List Grid (on the main news page)
   =================================================================== */
.fc-issues-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}
.wpcap-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
}
.wpcap-post .post-grid-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}
.wpcap-post .post-grid-text-wrap {
    padding: 15px 5px 5px;
    text-align: left;
}
.wpcap-post h3.title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
}
.wpcap-post h3.title a {
    text-decoration: none;
    color: #000000;
}


/* ===================================================================
   SECTION 2: Single Post Layout (for individual issue posts)
   =================================================================== */
.firebase-post-content-wrapper .featured-img-caption { 
	font-size: 12px;
	color: #666;
	margin-top: 1em;
	text-align: right;	
}
.firebase-post-content-wrapper .vorspann { 
	font-size: 19px;
	font-weight: bold;
	margin-bottom: 40px;
}
/* EDIT KATJA GOOD NEWS
.firebase-post-content-wrapper .teaser-caption { 
	margin-top: -2.2em !important;
	margin-left: 1em;
	font-size: 12px;
	color: #EEEEEE;
}
*/
.firebase-post-content-wrapper .news-teaser { 
	margin-top: -5px !important;	
	margin-bottom: 15px !important;	
}
@media screen and (min-width: 800px) {
    .firebase-post-content-wrapper .news-teaser-img {
        height: 175px;
        width: 100%;
        object-fit: cover;
    }
}

/* This is the key layout rule for the 20%/80% split */
.single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 25px;
}
.single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex > .wp-block-column:first-child {
    flex-basis: 35% !important;
}
.single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) {
    flex-basis: 65% !important;
}

.single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex {
    /* Remove any existing horizontal padding */
    padding-left: 0 !important;
    /* Add the specific padding you want */
    padding-right: 20px !important;
}
.single-post .entry-content .firebase-post-content-wrapper .wp-block-group__inner-container{
    padding-left: 0 !important;
}

.firebase-post-content-wrapper p.featured-img-caption {
    margin-top: -1em !important;
    margin-bottom: 2em; /* Add some space back AFTER the caption */
    text-align: right;
    font-size: 12px;
	color: #666;
    position: relative; /* Often helps with stacking context */
    z-index: 5;
}


/* ===================================================================
   SECTION 3: Responsive Rules
   =================================================================== */
@media (max-width: 768px) {
    .wpcap-grid-container {
        grid-template-columns: 1fr;
    }
    .single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex {
        flex-wrap: wrap !important;
    }
    .single-post .entry-content .firebase-post-content-wrapper .wp-block-columns.is-layout-flex > .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* ===================================================================
   SECTION 4: Utility Styles
   =================================================================== */
.fc-error-message{color:#d8000c;background-color:#ffd2d2;border:1px solid #d8000c;padding:15px;border-radius:5px}