/**
 * =======================================================================
 * OBITUARIES EXTENSION STYLES
 * Path: /slfx_extensions/obit/css/obit.css
 * =======================================================================
 */

/* --- Public Feed Header --- */
.obit-header {
	margin-bottom: 40px;
}

body.obit-public h1 {
	margin-bottom: 10px;
	color: #373737;
}

.primary-divider {
	max-width: 100px;
	border-top: 2px solid #dd4B39;
	margin: 20px auto;
}

/* --- Obituary Entry Cards --- */
/* The z-index and position absolute fix for the drop-shadow lifted bug */
.obit-entry {
	position: relative;
	z-index: 3;
	padding: 20px 20px 30px 20px ;
	margin: 0 auto 20px auto;
	margin-bottom: 20px;
	border-radius: 4px;
}

.obit-title {
	margin-top: 0;
	color: #333;
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
	font-style: normal
}

.obit-meta {
	font-style: italic;
	font-size: 0.9em;
	margin-bottom: 20px;
}

.obit-content {
	line-height: 1.6;
	font-size: 16px;
}

/* --- Admin Tweaks (Optional) --- */
.obit-admin .data_table th {
	background: #f4f4f4;
}

/* --- Masonry Grid Layout --- */
.obit-feed-container {
	/* Extra small devices (phones, less than 768px) */
	column-count: 1;
	column-gap: 20px;
	padding: 10px;
	max-width: 1600px;
	margin: 0 auto;
}

/* The ultimate column-break prevention wrapper */
.obit-column-item {
	-webkit-column-break-inside: avoid; /* Old Chrome/Safari */
	page-break-inside: avoid; /* Old Firefox */
	break-inside: avoid; /* Modern Standard */
	
	/* THE FIX: 'table' is mathematically unbreakable in CSS columns */
	display: table; 
	width: 100%;
	
}

/* Ensure the shadow container behaves normally inside the new wrapper */
.obit-column-item .drop-shadow.lifted {
	position: relative;
	display: block;
	margin: 0 auto 20px; 
}

/* --- Fix for Stretched Shadows on Tall Cards --- */
.obit-column-item .drop-shadow.lifted::before,
.obit-column-item .drop-shadow.lifted::after {
	top: auto;          /* Removes any percentage-based top positioning */
	bottom: 15px;       /* Anchors the shadow firmly to the bottom */
	height: 40px;       /* Locks the shadow's height so it never stretches up the sides */
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.obit-feed-container {
		column-count: 2;
	}
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.obit-feed-container {
		column-count: 3;
	}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1600px) {
	.obit-feed-container {
		column-count: 4;
	}
}