/*
Theme Name: Nikon Metrology
Template: Impreza
Version: 1.2
Author:	Nous Digital
Theme URI: https://industry.nikon.com/
Author URI: https://nousdigital.co.uk/
*/

/* Replace first row padding with margin  */
/* 1.1 - wpb-content-wrapper added to work with WP Bakery update */
.header_hor .l-header.pos_fixed ~ .l-main > .l-section:first-of-type > .l-section-h,
.header_hor .l-header.pos_static.bg_transparent ~ .l-main > .l-section:first-of-type > .l-section-h,
#page-content > .wpb-content-wrapper:first-of-type {
	padding-top: 0;
	margin-top: var(--header-height);
}
/* 1.1 - wpb-content-wrapper added to work with WP Bakery update - remove margin if wrapper is in column (news articles) */
.vc_column-inner > .wpb_wrapper >  .wpb-content-wrapper {
  margin-top: 0!important;
}
/* Top header horizontal line */
.l-subheader.at_middle {
	border-bottom: 1px solid var(--color-content-border);
}

/*
* Header menu styles
*/

/* Remove background color from menu items */
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-item > a:not(.w-btn),
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-ancestor > a:not(.w-btn),
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-page-ancestor > a:not(.w-btn),
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1:hover > a:not(.w-btn) {
	background: transparent;
}

/* Add bottom line to menu items */
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1:not(.menu-item-has-children):hover > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.menu-item-has-children:hover > .w-nav-list:before,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-item > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-ancestor > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-page-ancestor > a:not(.w-btn):after {
	position: absolute;
	left: 0;
	right: 0;
	content: "";
	background: var(--color-header-middle-text-hover);
	height: 10px;
}

/* Menu highlighting line */
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1:not(.menu-item-has-children):hover > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-item > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-menu-ancestor > a:not(.w-btn):after,
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.current-page-ancestor > a:not(.w-btn):after {
	bottom: -5px;
}

.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.menu-item-has-children:hover > .w-nav-list:before {
	top: -5px;
}

/* Make bottom line not cut */
.no-touch .w-nav-anchor {
	overflow: visible;
}

/* Remove left paggins from the first menu item */
.no-touch .menu-custom-highlighting .w-nav-list.level_1 > .menu-item:first-child > a {
	padding-left: 0 !important
}

/* Add triangle indicator to dropdowns */
.no-touch .l-header .w-nav.menu-custom-highlighting .menu-item.level_1.menu-item-has-children:hover > a:not(.w-btn):after {
	background: none;
	bottom: 0;
	left: 50%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	border-color: rgba(136, 183, 213, 0);
	border-bottom-color: var(--color-header-middle-text-hover);
	border-width: 15px;
	margin-left: -15px;
}

/* Remove highlighting from menu */
.menu-no-highlighting .menu-item:not(.level_1).current-menu-item > a,
.menu-no-highlighting .menu-item:not(.level_1).current-menu-ancestor > a,
.menu-no-highlighting .menu-item:not(.level_1).current-page-ancestor > a,
.menu-no-highlighting .menu-item:not(.level_1) > a:focus,
.menu-no-highlighting .menu-item:not(.level_1):hover > a {
	background: transparent !important;
	color: var(--color-header-middle-text-hover) !important;
}

/* Custom menu close button */
.w-nav-close {
	opacity: 1;
	width: auto;
	padding: 1.5rem;
}

/* Custom menu close button hover when over image fix*/
.w-nav-close {
	z-index: 120;
}

/* Custom close icon */
.w-nav-close:before {
	content: var(--close-word);
	font-size: 1.2rem;
	font-family: inherit;
	font-weight: bold;
	vertical-align: middle;
	margin-right: 0.5rem;
}

.w-nav-close:after {
	content: "\f00d";
	font-family: fontawesome;
	font-size: 2rem;
	vertical-align: middle;
}

/* Add animation delay, used by grids with videos */
.w-grid-item-h:hover .animation-delay-2s,
.w-grid-item-h:hover .animation-delay-2s > * {
	transition-delay: 2.5s;
}

/* Bottom offset to make last menu item highlighter visible */
.menu-no-highlighting .menu {
	padding-bottom: 5px;
}

/* Allow for scroll on dropdown burger menu */
.w-nav.type_mobile .menu-item.menu-item-object-us_page_block {
	overflow: auto;
}

/* Header Page Block adjustments */
.reset-margins .g-cols.via_flex.type_default {
	margin-left: 0;
	margin-right: 0;
}

/* Reset Row negative margin */
.reset-margins .g-cols.via_flex.type_default .vc_column-inner {
	overflow: hidden;
	padding-left: 0;
	padding-right: 0;
}

/* Styles for stacked elements */
@media (max-width: 1019px) {
	/* Center button within wrapper */
	.btn-center-mobile .w-btn-wrapper {
		margin-left: auto !important;
		margin-right: auto !important
	}
}

.full-height-with-video .l-section-h > .g-cols {
	min-height: inherit;
}

/* Enquire Now button */
.enquire-sticky-btn.w-btn .w-btn-label,
.enquire-sticky-btn.w-btn i {
	line-height: 40px;
}

.enquire-sticky-btn.w-btn i {
	font-size: 40px;
}

.enquire-sticky-btn.w-btn.icon_atleft i {
	margin-right: 0.7rem;
}

/* Make Page Block menu items fit */
@media (max-width: 1100px) and (min-width: 1000px) {
	.menu-no-highlighting .menu-item {
		font-size: 35px
	}
}

/* Columns with 1rem offset */
@media (min-width: 1020px) {
	.cols-gap-1rem > .vc_column_container:first-child {
		padding-right: 1rem;
	}
	.cols-gap-1rem > .vc_column_container:last-child {
		padding-left: 1rem
	}
}
@media (max-width: 1019px) {
	.cols-gap-1rem.reversed > .vc_column_container:last-child,
	.cols-gap-1rem:not(.reversed) > .vc_column_container:first-child{
		padding-bottom: 2rem;
	}   
}
@media (min-width: 641px) {
    .gform_wrapper.gravity-theme .ginput_container_address .ginput_right {
        padding-left: 1%;
    }
    .gform_wrapper.gravity-theme .ginput_container_address .ginput_left {
        padding-right: 1%;
    }
}

/* Underline links in Gravity Forms checkboxes */
.ginput_container_checkbox a {
    text-decoration: underline;
}

/* Vertical top alignment of the checkbox */
.gform_wrapper.gravity-theme .gfield_checkbox .gfield-choice-input {
    vertical-align: top;
    margin-top: 5px;
}

/* Gravity forms temporarily fix */
.gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not([type="file"]) {
  line-height: 1.2!important;
}	


/* Hide video background on small screens */
@media (max-width: 1024px) {
	.l-section-video {
		display: none;
	}
}

/* Migrated post image padding fix */
.wp-caption.alignleft {
    float: left;
    margin-right: 2em;
    margin-bottom: 2em;
}


#page-content p a {
  text-decoration: underline;
}