body {
		overflow-x: hidden;
}
#main {
    padding: 20px 35px 0px 35px;
}
#main article {
		padding: 0px;
		border: none;
		margin: 0px;
}

/* simple header banners */
#black-banner-bg {
		background-color: #000000;
}

/* picture background banners */
#primary .picture-banner-bg {
		padding: 300px 0px 0px 0px;
}
#primary .picture-banner-logo {
		margin: 0px;
		padding: 200px 0px 20px 0px;
}
@media (max-width: 780px) {
	#primary .picture-banner-bg {
			padding: 100px 0px 0px 0px;
	}
	#primary .picture-banner-logo {
		padding: 100px 0px 10px 0px;
	}
}

/* navigation */
.woocommerce-breadcrumb {
		font-size: 16px !important;
		margin-top: 20px !important;
}

/* home page */
.home-page h3.widget-title {
		font-size: 36px;
		text-align: center;
}
#website-intro,
#contact-footer {
		font-size: 18px;
		background-color: #f7f7f8;
		padding: 20px 30px 30px;
		box-shadow: 5px 5px 10px -5px #999999;
}
#homepage-book h3.widget-title {
		font-size: 30px;
		text-align: left;
}
#contact-footer h3.widget-title {
		font-size: 30px;
		text-align: center;
}
.ea-header {
		background-color: #ffffff;
}

/* product pages */
.woocommerce-result-count,
.product_meta {
		display: none;
}
section.related.products {
	background-color: #eeeeee;
	padding: 20px 20px;
	margin-bottom: 20px;
	border-radius: 0.5em;
}
.related.products h2 {
		font-size: 16px !important;
}

/* buttons */
.learn-more-button {
		margin-top: 20px;
		margin-bottom: 20px;
}
a.add_to_cart_button,
.single_add_to_cart_button {
		color: #ffffff !important;
		text-shadow: none !important;
		box-shadow: none !important;
		background-color: #002753 !important;
}
a:hover.shopping-cart-link {
	background-color: #4c1920 !important;
}

/* forms */
#primary button.frm_button_submit {
		background-color: #002753;
		border: none;
}

/* DIRECTORY */

.refresh-directory__banner h1 {
	line-height: 1.2em;
}

.refresh-directory-background {
	background-color: #f7f7f8;
}
.refresh-directory {
	padding: 0 18px 50px 18px;
	display: flex;
	flex-direction: column;

	@media screen and (min-width: 1000px) {
			padding: 0 100px 75px 100px;
	}
	
	.refresh-directory__posts {
		display: grid;
   	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
		
		@media screen and (min-width: 1500px) {
			grid-template-columns: repeat(5, 1fr);
		}
	}
	.refresh-directory__banner {
		margin-left: calc(-50vw + 50%); 
		margin-right: calc(-50vw + 50%);
		background-image:url('/wp-content/uploads/2024/05/campus1.webp');
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		position: relative;
		
		&:after {
/*		background-color: rgba(76, 25, 32, 0.65);
			background-image: url('/wp-content/uploads/2024/05/pattern3-7.webp');
			background-size: contain;
			background-repeat: no-repeat;
			background-position: bottom right;*/
			display: block;
    	position: absolute;
	    top: 0;
        left: 0;
    	width: 100%;
	    height: 100%;
        content: '';
    	z-index: 1;
		}
		
		@media screen and (min-width: 1000px) {
			margin-top: 0px;
		}
		
		> div {
			padding: 150px 18px 50px 18px;
			position: relative;
			z-index: 4;
			
			@media screen and (min-width: 1000px) {
				padding: 150px 100px 75px 100px;
			}
		}
		
		h1 {
			font-weight: 700;
			color: #fff;
			margin-bottom: 2rem;
		}
		
		h2 {
	        text-transform: uppercase;
  	        font-weight: 700;
			font-size: 24px;
			line-height: 1.25;
			max-width: 550px;
	        color: rgba(255, 255, 255, 0.85);
			margin-bottom: 2rem;
		}
		
		p {
			color: #fff;
			font-weight: 400;
			font-size: 16px;
			
			a {
				color: #fff;
				font-weight: 690;
				border-bottom: 2px solid #c2ad56;
			}
		}
	}
	
	.refresh-directory__content {
		width: 100%;
		max-width: 1403px;
		margin: 0 auto;
	}
	
	.refresh-directory__header {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		background-color: rgba(0,0,0,0.075);
		border-radius: 12px;
		padding: 0 12px 0 24px;
		margin: 2em auto;
	}
	
	.refresh-directory__filters {
		list-style-type: none;
		margin: 0;
		padding: 0;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 2rem;
		
		> li {
			list-style-type: none;
			padding: 0;
			display: inline-block;
			padding: 20px 0;
			font-size: 16px;
			font-weight: 500;
			transition: .3s all;
			color: #58555b;
			cursor: pointer;
			
			&.active {
				box-shadow: inset 0px -5px 0 0 #c2ad56;
				color: #4c1921;
			}
		}
	}
	
	.refresh-directory__search {
		width: 100%;
		
		@media screen and (min-width: 769px) {
			max-width: 250px;
		}
		
		input {
			width: 100%;
			background-color: #fff;
			border-radius: 3px;
			border: 1px solid #ccc;
			height: 40px;
			
			@media screen and (max-width: 768px) {
				margin-bottom: 20px;
			}
		}
		
		label {
			display: none;
		}
	}
	
	.refresh-directory__card {
		background-color: #fff;
		display: flex;
		flex-direction: column;
	}
	
	.refresh-directory__card--image {
		display: flex;
		
		> img {
			width: 100%;
			height: auto;
			aspect-ratio: 1/1;
		}
	}
	
	.refresh-directory__card--content {
		padding: 20px;
		display: flex;
		flex-direction: column;
		flex: 1;
		gap: 1rem;
	}
	
	h4 {
		font-size: 22px;
        font-family: 'Zilla Slab', sans-serif;
        font-weight: 700;
		line-height: 1.2;
		text-transform: unset;
		margin-bottom: -0.5rem;
	}
	
	.refresh-directory__card--position {
        /* font-size: 14px; */
        /* letter-spacing: 0.02em;* /
        /* line-height: 1.35; */
	    /*	color: #58555b; */
	    line-height: 1.2em;
		margin-bottom: 5px;
	}
	.refresh-directory__card--organization {
	   font-size: 14px;
	   font-style: italic;
	   line-height: 1em;
	   margin-bottom: 20px;
	}
	
	.refresh-directory__card--email {
		font-size: 16px;
		font-weight: 500;
		position: relative;
		padding-left: 30px;
		
		&:before {
			content: '';
			position: absolute;
			top: 0;
			left: -2px;
			background-image:url('/wp-content/uploads/2024/06/mail_24dp_FILL0_wght300_GRAD200_opsz24.svg');
			display: block;
			width: 24px;
			height: 24px;
			background-size: 24px;
		}
	}
}
.refresh-directory h3 {
    margin: 0px;
}
.refresh-directory h3 a {
    text-decoration: none;
}

.refresh-directory--list {
    padding: 0;
    margin: 0;
}

.refresh-directory__list-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.refresh-directory__list-item--name {
    font-weight: bold;
    font-size: 1.1em;
}

.refresh-directory__list-item--position {
    color: #444;
    font-size: 0.95em;
    margin-top: 0.2rem;
}

.refresh-directory__list-item--org {
    color: #666;
    font-size: 0.9em;
    margin-top: 0.1rem;
}

/* Modal */

.refresh-directory__modal--button {
	display: none;
}

.refresh-directory__modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  z-index: 100000000;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
	max-width: 500px;
	width: calc(100% - 36px);
	overflow-y: auto;
  max-height: calc(100vh - 100px);
	
	@media screen and (min-width: 1000px) {
		min-width: 500px;
	}
}

.refresh-directory__modal.show {
  display: block;
}

.refresh-directory__modal--close {
  position: absolute;
  top: 0px;
  right: 0px;
  cursor: pointer;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: #000;
	padding: 10px 12px;
	transition: .3s all;
	
	&:hover {
		opacity: 0.7;
	}
}

.refresh-directory__modal--content {
  margin: 0 auto;
}

.refresh-directory__modal--blocks {
  margin-top: 0px;
	font-size: 16px;
	line-height: 1.5;
	
	> * {
		font-size: 16px;
		padding-bottom: 0.5rem;
	}
	
	> ul {
		margin-bottom: 0.5rem;
		margin-left: 1rem;
	}
}

.refresh-directory__card--image img {
    object-fit: cover;
    object-position: center top;
}

.refresh-directory__modal--title {
	margin-bottom: 1rem !important;
}

.refresh-directory__modal--overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 9999999;
  display: none; /* Initially hidden */
}

.refresh-directory__modal--overlay.show {
  display: block; /* Show overlay when 'show' class is added */
}

/* sidebar */
#secondary {
	background-color: #eeeeee;
	padding: 20px 10px;
	margin: 10px 10px;
	border-radius: 0.5em;
}
#main #secondary h3.widget-title {
	color: #002753;
	font-size: 18px;
	text-align: center;
	padding-bottom:10px;
	border-bottom: 1px solid #002753;
}

/* SCF Person Styling */

/* General styles for larger screens (desktop & tablet), when body has class "person-page" */
.person-page h2 {
	font-family: 'Zilla Slab';
	text-transform: none;
}
.person-page .controls {
	display: none !important;
}

.person-page .post-content {
    display: flex;
    align-items: flex-start;
    gap: 40px; /* Space between the columns */
}

.person-page .post-featured-img {
    flex: 0 1 40%; /* 40% width for the image on large screens */
}

.person-page .content-inner {
    flex: 1; /* Remaining space for the content */
}
.person-page .post-featured-img {
	max-width: 400px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .person-page .post-content {
        flex-direction: column; /* Stack the elements on smaller screens */
    }

    .person-page .post-featured-img,
    .person-page .content-inner {
        width: 100%; /* Full width for both elements */
    }
}

/* Hide automatic title so name shows up on the bio page */
.refresh-directory__modal--title {
	display: none;
}
.refresh-directory__modal--blocks h2 {
	font-family: 'Zilla Slab';
	text-transform: none;
	font-size: 26px;
}
.refresh-directory__modal--blocks .wp-element-button, .person-page .wp-element-button {
	margin-top: 10px;
	background-color: rgba(0, 0, 0, 0);
	border: #4c1921 solid 2px;
	color: #4c1921;
	border-radius: 5px;
	transition: 0.3s;
}
.refresh-directory__modal--blocks .wp-element-button:hover, .person-page .wp-element-button:hover {
	background-color: #4c1921;
	color: white;
	border-radius: 5px;
}
.refresh-directory__modal.show {
	padding: 3%;
}

/* Force the Directory grid layout for shortcode output (non-nested CSS, high reliability) */
.refresh-directory.refresh-directory--shortcode .refresh-directory__posts{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1.5rem !important;
}

@media screen and (min-width: 1500px){
  .refresh-directory.refresh-directory--shortcode .refresh-directory__posts{
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Ensure cards are consistent within the grid */
.refresh-directory.refresh-directory--shortcode{
  padding: 0 !important;
  max-width: 1403px;
  margin: 0 auto;
}

/* Shortcode: image should fill the card even when wrapped in a link */
.refresh-directory.refresh-directory--shortcode .refresh-directory__card--image,
.refresh-directory.refresh-directory--shortcode .refresh-directory__card--image a,
.refresh-directory.refresh-directory--shortcode .refresh-directory__card--image img{
  display: block;
  width: 100%;
}

.refresh-directory.refresh-directory--shortcode .refresh-directory__card--image img{
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Allow grid items to shrink uniformly */
.refresh-directory.refresh-directory--shortcode .refresh-directory__card,
.refresh-directory.refresh-directory--shortcode .refresh-directory__card--content{
  min-width: 0;
}

/* person page */
.single-person .entry-main {
	padding: 60px 0px;
}

.single-person .entry-main {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.single-person .entry-header {
    flex: 0 0 220px;
}

.single-person .entry-header img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.single-person .entry-body {
    flex: 1;
    min-width: 0;
}

.single-person .entry-title {
	font-size: 24px;
    margin-top: 0;
	margin-bottom: 10px;
}

@media (max-width: 780px) {
    .single-person .entry-main {
        flex-direction: column;
    }
    .single-person .entry-header {
        width: 100%;
    }
}

/* footer */
#theme-attribution {
		display: none;
}