/*
Theme Name: SDTL
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: sdtl
Tags: 
*/

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Fixes for Core Weirdnress whereby auto padding is applied that can drive you a litle bit nuts - better to add your own when and where you need it! */
.has-global-padding>.alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid))> :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]), p, h1, h2, h3, h4, h5, h6, ul, ol) {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/*  Stop core margin top on groups and others */
.wp-block-group,
.wp-block-columns,
.wp-block-cover {
	margin-block-start: 0;
}
:where(.wp-site-blocks :focus) {
    outline-width: 0px !important;
}

/* ------- Hide the Page Title in the Editor - it can get anoying! ------- */
/* .editor-editor-canvas__post-title-wrapper.edit-post-visual-editor__post-title-wrapper.has-global-padding h1 {
	display: none;
} */

/* Add break Word to content so urls fit inside screen */
.entry-content{
	word-wrap: break-word
}
/* Set wrap */
blockquote, caption, figcaption, h1, h2, h3, h4, h5, h6, p {
    text-wrap: wrap !important;
}

/* SCROLL TO TOP BUTTON */

.scroll-top-button {
	transition: all .25s ease-in-out;
	position: fixed;
	bottom: 20px;
	right: 20px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	width: 50px !important;
	height: 50px !important;
	background-color: var(--wp--preset--color--secondary);
	z-index: 99;
	visibility: hidden;
	opacity: 0;
}
.scroll-top-button:hover {
	background-color: var(--wp--preset--color--primary);
}
.scroll-top-button.hide {
	visibility: hidden;
	opacity: 0;
}
.scroll-top-button.show {
	visibility: visible;
	opacity: 1;
}
  
/* Text meant only for screen readers. */
.screen-reader-text {
	position: absolute;
	clip-path: inset(50%);
	margin: -1px;
	border: 0;
	padding: 0;
	width: 1px;
	height: 1px;
	overflow: hidden;
	word-wrap: normal !important;
	clip: rect(1px, 1px, 1px, 1px);
	&:focus {
		display: block;
		top: 5px;
		left: 5px;
		z-index: 100000; 
		clip-path: none;
		background-color: #eee;
		padding: 15px 23px 14px;
		width: auto;
		height: auto;
		text-decoration: none;
		line-height: normal;
		color: #444;
		font-size: 1em;
		clip: auto !important;
	}
}

/* POST QUERY LOOP */

.wp-block-uagb-image__figure img {
	min-width: 100%;
	height: auto;
	aspect-ratio: 16/9;
	object-fit: cover;
}
.sd-line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
	line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sd-excerpt p {
	margin: 0;
}


/* Quick Links Menu */
/*
.sd-quick-links .wp-block-uagb-info-box {
	width:  80px;
	height: 80px;
	text-align: center;
}
*/
/*
@media only screen and (max-width: 767px)
{
	.sd-quick-links .wp-block-uagb-info-box {
		height: 70px;
		width:  4rem;
		text-align: center;
	}
}
/* Tablet */
/*
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.sd-quick-links .wp-block-uagb-info-box {
		height: 70px;
		width:  4rem;
		text-align: center;
	}
}
/* Desktop */
/*
@media only screen and (min-width: 1025px)
{
	.sd-quick-links .wp-block-uagb-info-box {
		height: 70px;
		width:  6rem;
		text-align: center;
	}
}

/*
.sd-quick-links .uagb-ifb-image-content {
	text-align: center;
}
.sd-quick-links .uagb-ifb-title-wrap {
	text-align: center;
}
.sd-quick-links .uagb-ifb-icon-wrap {
	text-align: center;
}
*/
.sd-quick-links {
	gap: 10px;
	.uagb-ifb-title  {
		font-size: 12px !important;
		line-height: 1;
		margin: 0px;
		color: black !important;
	}
	svg {
		width: 40px !important;
		height: 30px !important;
		color: #0170B9;
		fill: #0170B9;
	}
	svg path {
		fill: #0170B9; 
	}
	img {
		width:  40px !important;
		height: 30px !important;
		object-fit: contain;
	}
	.wp-block-uagb-info-box:hover {
		transform: scale(1.1);
	}
}
/* post grid */
.uagb-post-grid .uagb-post__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.uagb-post__comment {
    visibility: hidden;
	display: none;
}
.uagb-post__text.uagb-post__excerpt {
    font-size: 14px;
}

/* Table image size 
.sd-results-table img {
	width: 40px !important;
	height: 40px !important;
	object-fit: fit;
}
*/

/*
* Liquid Glass Menu
*/
.liquidmenu {
	/* Positioning */
	position: fixed;
	width: max-content !important;
	left: 50%;
	bottom: 10px !important;
	align-items: top;
	justify-content: center;
	transform: translateX(-50%);
	visibility: hidden;
	opacity: 0;
	z-index: 9999;

	/*display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	row-gap: 20px !important;
	column-gap: 20px !important;*/
	min-width: max-content !important;
	/*
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(2px) saturate(150%) !important;
	-webkit-backdrop-filter: blur(2px) saturate(150%);
	filter: url(#dockLensSpectra) saturate(115%) brightness(1.05);
	*/
	background: rgba(255, 255, 255, 0.4);	   /* semi-transparent */
	backdrop-filter: blur(5px) !important;      /* frosted blur */
	-webkit-backdrop-filter: blur(5px);		    /* Safari support */
	filter: url(#dockLensSpectra) saturate(115%) brightness(1.05);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 30px !important;

	overflow: hidden;                 	/* clip to rounded shape */
	isolation: isolate;               	/* Safari/iOS stability */
	padding-top: 5px !important;
	padding-bottom: 0px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	margin: 0px !important;
	overflow: visible;
	order: initial;
	
	/*
	border: 1px;
	border-style: solid;
	border-color: rgba(10,82,140,0.35);*/

	box-shadow:							/* ring / glow */
		0 6px 20px rgba(0,0,0,.18),
		inset 1px 1px 0 rgba(255,255,255,.6),
		inset 0 0 5px rgba(255,255,255,.5) !important;
	
		/* Format icons smaller than main menu*/
	
	.wp-block-uagb-info-box {
		/*height: 35px !important;
		width: 30px !important;*/
		.uagb-ifb-title  {
			font-size: 14px !important;
			line-height: 1;
			margin: 0px;
		}
		svg {
			width: 30px !important;
			height: 20px !important;
		}
		.uagb-ifb-image-content img {
			width:  30px !important;
			height: 20px !important;
			object-fit: contain;
		}
	}
	
	/* Zoom menu item on hover */
	.wp-block-uagb-info-box:hover {
		transform: scale(1.1);
	}
	/* SCROLL TO TOP BUTTON */
	.scroll-top {
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		width: 40px !important;
		height: 30px;
		display: inline-block;
		z-index: 99 !important;
		padding: 0px !important;
		border: none !important;
		background: none !important;
		svg {
			fill: #0170B9;
			color: #0170B9;
			width: 30px !important;
			height: 20px !important;
		}
		p {
			font-size: 14px;
			padding: 0px;
			margin: 0px;
			padding-top: 2px;
			color: black;
		}
	}
	.scroll-top:hover {
		transform: scale(1.1);
	}
}
/* Show and hide when scrolling up and down screen */
.liquidmenu.hide {
	visibility: hidden;
	opacity: 0;
}
.liquidmenu.show {
	visibility: visible;
	opacity: 1;
}