/*!
Theme Name: 4MG
Theme URI: https://www.cbwebsitedesign.co.uk/
Author: Tyler Hounsome 🐿
Author URI: https://www.cbwebsitedesign.co.uk/
Description: Bespoke WP Platform for 4Media Group, built by Creative Brand Design.
Version: 6.0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: 4mg
*/

/* Misc */

#menu-language-menu {
    position: relative;
}

header #menu-language-menu li span {
    margin-right: 0.5rem;
    display: inline-flex;
}

header #menu-language-menu li > svg {
    display: inline-flex;
	width: 1.5rem;
	margin-left: 0.5rem;
	fill: #fff;
	margin-top: -0.3rem;
	transition: 0.3s all;
}

@media (min-width: 1024px) {
    .scrolled header #menu-language-menu li > svg {
    	fill: #000;
    }
}

header #menu-language-menu li:last-child {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% + 1rem);
    padding: 0.5rem 0 0.5rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    color: #000;
    transform: translate3d(0, -1rem, 0);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s all;
}

header #menu-language-menu.open li:last-child {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    header #menu-language-menu li:last-child {
        left: auto;
        right: 0;
        width: calc(100% + 2rem);
    }
}

header #menu-language-menu span > svg {
    height: 0.75em;
}

.home .glightbox-mobile .goverlay,
.home .goverlay {
	background: rgba(0,0,0,.9);
}

main .content ul:not(.accordion):not(.menu) {
	list-style: disc inside;
	padding-top: 1em;
}
main .content ul:not(.accordion):not(.menu) li {
	margin: 0.25em 0;
}

.title-bar-background .title .subtitle {
    opacity: 0.7;
}

section:not(.title-bar):not(.title-bar-background) .title .subtitle {
    display: none;
}

.post-content h4 {
    margin-top: 1em;
    margin-bottom: 1em;
}

.glightbox-container {
    max-width: 100vw;
    max-height: 100vh;
}

.glightbox-mobile #glightbox-slider + .gclose {
    display: flex;
}

.glightbox-mobile .goverlay {
    background: rgba(0,0,0,0.9);
}

.glightbox-mobile .gdesc-inner .gclose {
    display: none;
}

/* Header */

header .logo {
    position: relative;
}

header .logo img + img {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.6s all;
}

.scrolled header .logo {
    filter: none;
}

.scrolled header .logo img + img {
    opacity: 1;
    visibility: visible;
}

header:not(.text-white):not(.menu-open) .menu-toggle:before,
header:not(.text-white):not(.menu-open) .menu-toggle:after {
    background: #000;
}

.scrolled header.menu-open .menu li:before {
    background: #fff;
}

@media (min-width: 1024px) {
    
    header #menu-main-menu > li:last-child:after {
        content: '';
        position: absolute;
        bottom: 0rem;
        left: 0rem;
        width: 100%;
        height: 100%;
        background: #453cd3;
		border-radius: 0.3rem;
		z-index: -1;
		opacity: 0;
        transition: 0.6s all;
    }
	
	.scrolled header #menu-main-menu > li:last-child {
		color: #fff;
	}
    
    .scrolled header #menu-main-menu > li:last-child:after {
        opacity: 1;
    }
	
	.scrolled header #menu-main-menu > li:last-child:hover:before {
		opacity: 0;
	}
	
	.scrolled header #menu-main-menu > li:last-child:hover:after {
		background: #5cd9d6;
	}
	
	header #menu-main-menu > li.current_page_item:last-child {
	    color: #fff;
	}
	
	header #menu-main-menu > li.current_page_item:last-child:before {
	    display: none;
	}
	
	header #menu-main-menu > li.current_page_item:last-child:after {
	    background: #5cd9d6;
	    opacity: 1;
	}
    
}

@media (min-width: 1025px) {
    header .menu a > .dropdown {
        display: none;
    }
    header .menu li .sub-menu {
        height: auto !important;
    }
}

/* Footer */

footer .menu li.text-blue-light a {
    color: #5cd9d6;
}

footer .menu li.text-blue-light a:hover {
    color: #02b1e1;
}

/* Content Image Block */

.fancy .title h3 {
    font-weight: 700;
}

/* Logo Tiles Block */

.logo-tiles .tile img {
	max-width: 70%;
	max-height: 70%;
}

/* CTA Animation Block */

.cta-animation .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fancy Text Block */

.feature-text .text a > span {
    -webkit-background-clip: text !important;
    background-size: 120% !important;
	background-position: center !important;
}

/* People Archive */

.people-grid .single figure {
    background: rgb(221,221,221);
    background: linear-gradient(45deg, rgba(221,221,221,1) 30%, rgba(190,190,190,1) 100%);
}

@media (min-width: 640px) {
    .people-list .single {
        bottom: 0;
    }
}

.people-grid figcaption .details h6 {
    overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.people-grid figcaption .details .content {
    height: 0;
    overflow: hidden;
}

.people-grid figcaption .button {
    padding-bottom: 1rem;
}

/* Forms */

.gfield_html p {
    line-height: 1.4;
	font-size: 1.8rem;
}

body .gform_wrapper.gravity-theme .gfield_checkbox label,
body .gform_wrapper.gravity-theme .gfield_radio label {
    font-size: 1.4rem;
}

.gform_wrapper.gravity-theme #field_submit {
    justify-content: flex-end;
}

.gform_wrapper.gravity-theme #field_submit input {
    line-height: 1;
}

body .gform_wrapper .gform_validation_errors,
body .gform_wrapper .gfield_validation_message,
body .gform_wrapper .validation_message {
    background: none;
    border: none;
    box-shadow: none;
}

body .gform_wrapper .gfield_validation_message,
body .gform_wrapper .validation_message {
    padding: 0;
    margin-top: 0.5rem;
}

body .gform_wrapper.gravity-theme .gfield textarea.large {
    height: 15rem;
}

/* Pagination */

.page-numbers {
    transition: 0.3s all;
    margin: 1.5rem;
}

.page-numbers:not(.prev):not(.next) {
    margin: 0.5rem;
	border: 1px solid black;
	border-radius: 100%;
	width: 3.5rem;
	height: 3.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.page-numbers:not(.prev):not(.next):hover,
.page-numbers.current {
    background: #453cd3;
    border: 1px solid #453cd3 !important;
    color: #fff;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    color: #d65282;
}

.people-grid .single {
	height: 400px;
}

.people-grid .row {
	height: 100%;
}

/* Double Image Block */

@media (min-width: 1024px) {
    .double-image .image {
        width: 45%;
    }
}

/* Select Adjustments */

@media (min-width: 1536px) {
    .tom .ts-control,
    .tom .ts-control input,
    .tom .ts-dropdown {
    	font-size: 4.5rem;
    }
}

.tom .ts-control,
.tom .ts-control input,
.tom .ts-dropdown {
    line-height: 1.08;
}