/*!
Theme Name: ThetaWaveStudio
Theme URI: https://ThetaWaveStudio.com
Template: kadence
Author: quantumslice.com
Author URI: https://quantumslice.com/
Description: Theta Wave Studio
Version: 1.0.1
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */


/** kadence page header - tighten up */
.entry-header {
	min-height:20px !important;
}
.entry-title {
	font-size:20px;
}
.search-title{
	font-size:20px;
}
.search-archive-title{
	min-height:60px !important;
}

/* for kj video popup ---------------------------------- */


/* ==========================================================================
   1. REGULAR IMAGE TRIGGER STYLES
   ========================================================================== */
.clinical-image-trigger {
    position: relative;
    display: inline-block;
    max-width: 600px; /* Adjust this to scale dashboard thumbnail width */
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #852701;  /* 1a1a1a */
    box-sizing: border-box;
    background: #000;
}

.clinical-image-trigger img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.75;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.clinical-image-trigger:hover img {
    opacity: 0.95;
    transform: scale(1.01);
}

.trigger-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.clinical-image-trigger:hover .trigger-overlay {
    opacity: 1;
    border: 1px solid #F7630C;
    box-sizing:border-box;
}

.trigger-overlay span {
    color: #ffffff;
    font-family: monospace;
    font-size: 20px;
    letter-spacing: 2px;
    background: #000000;
    padding: 10px 20px;
    border: 1px solid #333333;
}

/* ==========================================================================
   2. THE MASSIVE THEATER POPUP FRAME (RESTORED)
   ========================================================================== */

/* old one
.clinical-dark-modal {
    background: #000000 !important;
    border: 1px solid #1a1a1a !important;
    padding: 20px !important;
    
    width: 95% !important;
    max-width: 1200px !important; 
    box-sizing: border-box !important;
    
    border-radius: 0px !important; 
    box-shadow: 0 30px 100px rgba(0,0,0,0.98) !important;
    
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}

*/

/*
this section makes sure that it keeps the aspect of the video right
while making sure it actually fits on the screen as well.
*/
.clinical-dark-modal {
    background: #000000 !important;
    border: 1px solid #1a1a1a !important;
    padding: 20px !important;
    
    /* Lock it to the center of the screen */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* THE MAGIC SIZING:
       1. Base width is 95vw (great for phones).
       2. The max-width restricts it to 1200px (for huge monitors) 
          OR whatever width keeps the 16:9 ratio under 85% of the screen height.
    */
    width: 95vw !important;
    max-width: min(1200px, calc(85vh * (16 / 9))) !important;
}



/* Full backdrop dimming layer */
.clinical-dark-modal::backdrop {
    background: rgba(0, 0, 0, 0.95) !important;
}


/* Clean application utility header controls */
.modal-control-header {
    display: flex;
    justify-content: center !important; /* flex-end;*/
    width:100%;
    margin-bottom: 15px;
}

.modal-terminate-btn {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: darkorange !important;
    font-family: monospace;
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
/*    transition: color 0.15s ease; */
}

.modal-terminate-btn:hover {
    border:1px solid red !important;
    color:darkorange !important;
    background:transparent !important;
}

/* 16:9 Aspect ratio container scale */
.video-matrix-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000000;
    width: 100% !important;
}

.video-matrix-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.video-info-line {
	font-size:12px;width:100%;padding:0 10px;
}
.video-info-line a{
	text-decoration:none;font-weight:normal;color:inherit;
}
.video-info-left {float:left;}
.video-info-right{float:right;}
@media screen and (max-width:769px){
	.video-info-right{
		float:none;
		text-align:center;
	}
	.video-info-left{
		display:none;
		float:none;
	}
}


/* --------------------------- end kj video popup */


/* for the video archive posts trying to make it look better: */
.wp-block-post {
	background:#062206 !important;
	border:1px solid #062206 !important;
	padding:20px !important;
}
.wp-block-post:hover{
	border:1px solid #F5A524 !important;
}




/* in functions.php we have code to add related videos section at bottom of posts... here is css it needs: */
@media (max-width: 600px) {
    .my-custom-related-grid {
        grid-template-columns: 1fr !important;
    }
}
/* Ensure thumbnails stay contained */
.my-custom-related-grid article img {
    max-width: 100%;
    height: auto;
}


/* Make sure any text prefix like "Tags:" centers too */
.entry-footer {
    text-align: center !important;
}



/*  Center Post Tags */
.entry-footer .tags-links,
.entry-footer .tag-links,
.tags-links,
.tag-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    text-align: center !important;
    width: 100% !important;
    gap: 8px;
}



/* CRT Technical Scroll Box */
.kj-scroll {
    max-height: 340px; /* Adjust this to match your video thumbnail height */
    overflow-y: auto;  /* Adds vertical scrollbar only when needed */
    padding-right: 15px; /* Keeps text from hugging the scrollbar */
}
/* Make the scrollbar look like a vintage CRT green track
-- used on post pages on the right side so long descriptions 
	fit the space 
 */
.kj-scroll::-webkit-scrollbar {
    width: 6px;
}
.kj-scroll::-webkit-scrollbar-track {
    background: #061A06; 
}
.kj-scroll::-webkit-scrollbar-thumb {
    background: #22AA22; 
    border-radius: 3px;
}


