/*
 Theme Name:   m25
 Theme URI:    https://mwillis.com/
 Description:  Child theme extending “Hello Elementor” theme
 Author:       M.Willis
 Author URI:   https://mwillis.com
 Template:     hello-elementor
 Version:      1.0.0
*/

/* — below here you can add CSS overrides — */
.blend-normal   	{ mix-blend-mode: normal; 			}
.blend-difference 	{ mix-blend-mode: difference; 		}
.blend-multiply 	{ mix-blend-mode: multiply; 		}
.blend-hard-light 	{ mix-blend-mode: hard-light; 		}
.blend-overlay	 	{ mix-blend-mode: overlay; 			}
.blend-soft-light 	{ mix-blend-mode: soft-light; 		}
.blend-darken	 	{ mix-blend-mode: darken; 			}

/* ----- /begin/ assure page content does not overlay logo  ----- */
.elementor-location-single {
	z-index: 1;
	position: relative;
}
/* ----- / end / assure page content does not overlay logo ----- */




/* ----- /begin/ add styling to "MORE" CTA on blog post entries ----- */

/* "more" and arrow icon added via theme functions*/

.blog .post-row .read-more {
font-weight: 700;
    /* text-decoration: underline; */
    text-transform: uppercase;
    font-size: var(--e-global-typography-body-s-font-size);
}

.blog .post-row:hover .read-more {

}

.elementor-post__read-more::after,
.blog .post-row .read-more::after {
  content: '\f061'; /* Unicode for Font Awesome right arrow */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900; /* 900 for solid icons */
  margin-left: 0.3em;
  display: inline-block;
  line-height: 1em;
}

.blog .post-row:hover .read-more::after {


}

.single-post .sep {
	text-align: center;
	display: block;
}

.single-post .elementor a {
	text-decoration: underline;
}

/* ----- / end / add styling to "MORE" CTA on blog post entries ----- */




/* ----- /begin/ add styles to article pages  ----- */



body.wp-singular p {
  text-align: justify;
  text-justify: inter-word; /* optional, helps control spacing */
  hyphens: auto;            /* turn on hyphenation */
  -webkit-hyphens: auto;    /* Safari / iOS */
  -ms-hyphens: auto;        /* old IE */	
}

.elementor .elementor-widget-theme-post-featured-image img,
.elementor .elementor-widget-theme-post-content img {
	
	border-radius: 12px;


}

figcaption {
	text-align: center;
}

.instruction {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	font-style: italic;
}

.elementor-button:focus, 
.elementor-button:hover, 
.elementor-button:visited {
	color: var( --e-global-color-text ) !important;
}

.single-post .elementor a {
	text-decoration: none;
}


/* ----- /end/ add styles to article pages  ----- */



/* ----- /begin/ popup / overlay styles  ----- */

body.no-scroll {
  overflow: hidden;
  height: 100vh; /* optional: helps lock things down */
  padding-right: 15px; /* compensate for scrollbar width */
}

.portfolio-popup-content { 
	display: none; 
}

.elementor-location-popup,
.dialog-lightbox-close-button { 
	outline: none !important;
}

.open-portfolio-popup {
	cursor: pointer !important;
}

/*
.dialog-lightbox-close-button {

}
*/



#elementor-popup-modal-2115 .dialog-close-button {
	position: fixed;
	top: 1em;
	right: 1em;
	z-index: 999;	
}

img.alignright,
img.alignleft,
img.aligncenter {
	margin-top: 10px;
	margin-bottom: 7px;
}


/* Parent container */
.overlay-basic {
/*   background: var(--e-global-color-primary); */
  background: var(--e-global-color-background);
/*   color: var(--e-global-color-accent); */
  color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-primary-font-family);
  max-height: 80vh;  /* Lock to viewport height */
  width: 100%;
  padding: 25px;
  display: flex;
  overflow: hidden; /* Important: prevent scroll from here */
  border-radius: 2px;
}


/* Left and right columns */
.left-column {

  flex: 0 0 auto; /* don't grow or shrink, just take natural width */
  display: flex;
  
  
  align-items: flex-start;
  justify-content: flex-start;
  
  
  
}

.left-column img {
  max-width: 520px;
  max-height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.right-column {

	flex: 1; /* grow to fill the rest */
	display: flex;
	
	align-items: flex-start;
	justify-content: flex-start;
	height: 100%;
	box-sizing: border-box;
}

/* Scrollable internal box */
.content-box {
	width: 100%;
	
	max-width: 600px;
	
	height: auto;
	max-height: 100%; /* or try 70vh */
	overflow-y: scroll;
	
	padding: 20px 20px 20px 20px;
	box-sizing: border-box;
	
	/*below values for testing purposes only*/

}

.content-box h3, 
.content-box h4, 
.content-box h5, 
.content-box h6 {
	font-weight: 600;
} 

.content-box h3 {
	font-size: 2.3rem;
	line-height: 2.2rem;
}

.content-box p {
	text-align: left;
}

.content-box .right-column img {
	margin-top: 8px;
	margin-bottom: 8px;
	border-radius: 8px;
}



.content-box.solo {
	max-width: none;
	padding-top: 0;
	max-height: 97%;
}

.content-box p {
	margin-top: 14px;
	margin-bottom: 24px;
}

.content-box img {
	border-radius: 14px;
}

.content-box.solo p {
	width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content-box p + h4,
.content-box p + ul {
	width: 80%;
	margin: 0 auto;
}

.content-box::-webkit-scrollbar {
  width: 8px;
}

.content-box::-webkit-scrollbar-track {
  background: transparent;
}

.content-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2); /* light translucent thumb */
  border-radius: 4px;
}

.content-box .eyebrow {
	display: inline-block;
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 700;

}

figure figcaption, 
.content-box p.caption {
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-primary-font-family);	
	display: block;
    width: 100%;
    margin-bottom: 32px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 6px;
}

figure figcaption {
	margin-bottom: 12px;
}

.content-box p.aside {
	display: block;
	padding: 12px;
	border: 2px solid var(--e-global-color-primary);
	border-radius: 14px;
}

.content-box p.aside, 
.content-box p.aside a {
	color: var(--e-global-color-primary);
	font-style: italic;
}



.scroll-helper {
	position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--e-global-color-primary);
    pointer-events: none;
    /* font-style: italic; */
    text-transform: uppercase;
    font-weight: 700;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.right-column .scroll-helper {
	left: 75%;
	bottom: 5px;
}







@media (max-width: 767px) {
	
	
  /* Force Elementor popups to top-align instead of center */
  #elementor-popup-modal-2115 .dialog-widget-content,
  #elementor-popup-modal-2115 .dialog-message {
	display: flex !important;
	align-items: flex-start !important; /* top align */
	justify-content: center !important; /* still centered horizontally */
  }
	
  /* Add a consistent top offset */
  #elementor-popup-modal-2115 .overlay-basic {
	margin-top: 68px !important;  /* adjust as needed */
	max-height: calc(100vh - 80px) !important; /* keep it inside viewport */
	overflow-y: auto !important;
  }	
	

  .elementor-popup-modal .dialog-message {
    max-width: 95% !important; /* make the popup container wider */
    width: 95% !important;
    margin-left: auto;
    margin-right: auto;
  }	
	
  .overlay-basic {
    flex-direction: column;
    padding: 15px;
    height: auto;         /* let it grow naturally */
    max-height: 90vh;     /* stop it from being absurdly tall */
    overflow-y: auto;     /* allow scrolling if needed */
  }

  .left-column,
  .right-column {
    width: 100%;
    flex: none;           /* reset flex rules */
  }

  .left-column {
    margin-bottom: 20px;
    display: block;       /* stack naturally */
  }

  .left-column img {
    max-width: 100%;      /* don't blow past screen */
    height: auto;         /* keep aspect ratio */
  }

  .content-box {
    max-height: none;     /* don’t force small scrollboxes */
    overflow: visible;    /* content should just flow */
    padding: 10px;        /* lighter padding on small screens */
  }
  
  
  
  
  
}


/* ----- /end/ popup / overlay styles  ----- */


/* ----- /begin/ mobile menu styles  ----- */

@media (max-width: 767px) {
	
	html {
		top: -1px;
	}
	
	#site_header {
		z-index: 9900;
	}
	
	#site_header::after {
		content: "";
		position: absolute;
		bottom: -5px; /* adjust fade height */
		left: 0;
		width: 100%;
		height: 5px;  /* fade thickness */
		pointer-events: none; /* don't block clicks */
		background: linear-gradient(
			to top,
			transparent 0%,
			var(--e-global-color-background) 100%
		);		
	}
	
	
	/* --- mobile nav menu --- */
	#top_mobile_menu ul.elementor-nav-menu {
	  display: grid;
	  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
	  grid-template-rows: repeat(3, auto);   /* 3 rows */
	  gap: 0em 1em;                          /* adjust row/col spacing */
	  list-style: none;
	  padding: 0;
	  margin: 0;
	  width: 65%;
      position: fixed;
      top: 0;
      right: 0;
      z-index: 1000;
      background: transparent;
	}
	
	#top_mobile_menu ul.elementor-nav-menu li {
	  margin: 0;
	  padding: 0;
	}
	
	#top_mobile_menu ul.elementor-nav-menu a {
	  display: block;
	  text-align: left; /* change to center/right if you prefer */
	  line-height: 13px;
	}


	/* --- overlay fixes --- */
	/* top-align popup instead of center */
	.elementor-popup-modal .dialog-widget-content,
	.elementor-popup-modal .dialog-message {
	  display: flex !important;
	  align-items: flex-start !important;
	  justify-content: center !important;
	}

	/* widen the popup container */
	.elementor-popup-modal .dialog-message {
	  max-width: 95% !important;
	  width: 95% !important;
	  margin-left: auto;
	  margin-right: auto;
	  height: auto !important;
	}



	.left-column,
	.right-column {
	  width: 100%;
	  flex: none;
	}

	.left-column {
	  margin-bottom: 0px;
	  display: block;
	  background: transparent;
	}

	.left-column img {
	  max-width: 100%;
	  height: auto;
	}

	/* constrain overlay itself */
	.overlay-basic {
      border-top: 15px solid var(--e-global-color-background);
      border-bottom: 18px solid var(--e-global-color-background);
	  flex-direction: column;
	  padding: 0px 15px 0px 15px;
	  max-height: 80vh;    /* lock to viewport height */
	  max-height: 80dvh;   /* for mobile safari */
	  overflow: hidden;    /* prevent stretching */
	}


	/* keep scrolling inside content-box */
	.content-box {
	  height: 80vh;    /* tweak for available space */		
	  height: 80dvh;    /* for mobile safari */

	  padding: 10px;
	  max-height: none;
	  overflow: visible;
	}
	
	.content-box.solo {
	  height: 86vh;    /* tweak for available space */		
	  height: 86dvh;    /* for mobile safari */

	  padding: 10px;
	  max-height: none;
	  overflow: visible;
	}
	
	.dialog-widget-content {
		padding-bottom: 12px;
	}
	
	

	
	.scroll-helper {
/* 		bottom: 13px; */
		margin-top: -28px !important;
		padding-top: 6px;
		display: block;
		background: var(--e-global-color-background);
		top: 98vh;
		top: 98dvh;
		height: 4vh;
		height: 4dvh;
		width: 95%;
		text-align: center;		
		margin: 0 auto;
	} 
		
	@supports (-webkit-overflow-scrolling: touch) {
		/* iOS Safari only */
		.scroll-helper {
			margin-top: -18px !important;
			height: 5vh;
			height: 5dvh;
		} 
}	
	
	
/*
	.right-column .scroll-helper {	
	  left: 50%;
	  bottom: 13px;
	}
*/
	
	#top_mobile_menu ul.elementor-nav-menu a,
	#top_mobile_menu ul.elementor-nav-menu a:active,
	#top_mobile_menu ul.elementor-nav-menu a:visited {
		text-decoration: none !important;
	}

	
}

/* ----- /end/ mobile menu styles  ----- */





/* ----- /begin/ tweener/tablet styles  ----- */




@media (min-width: 426px) and (max-width: 767px) {
	

	
	header {
		height: 150px;
	}
	
	div#site_header {
		padding-bottom: 180px;
	}
	
	div#post_content {
		--container-widget-width: unset;
	}
	
	div#page_content,
	div#post_loop_content {
		margin-top: 50px;
	}
	
	footer.footer-bar {
		bottom: -2px !important;
	}	
  
}


/* ----- /end/ tweener/tablet styles  ----- */












