/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* Hide header/footer in maintenance */

.elementor-maintenance-mode .elementor-location-header, .elementor-maintenance-mode .elementor-location-footer {
	display: none;
}

.iub__us-widget {
	display: none !important;
}

/* body .swiper-zoom-container {
	justify-content: stretch;
    align-items: stretch;
}*/ 

/* body .elementor-lightbox .elementor-lightbox-image {
	object-fit: cover;
	width: 100%;
    height: 100%;
} */

.produkter-img img {
	transition: transform .3s ease-in-out;
}

.produkter-img img:hover {
	transform: scale(1.05);
}

.linked-text-container .elementor-widget-container * {
	color: #000 !important;
	text-transform: initial !important;
	font-weight: 300 !important;
}

.elementor-lightbox .elementor-lightbox-image {
	min-height: 100%;
}

.elementor-slideshow__title {
	font-size: 30px !important;
}

body .elementor-lightbox .elementor-lightbox-item {
	padding: initial;
}

.reference-filter .jet-radio-list__decorator {
	display: none;
}

.references-overview:not(.test-page) .jet-listing-grid__items > div * {
	height: 100%;
	object-fit: cover;
	align-content: flex-end;
	text-align: left;
}

.jet-menu-body-blocker {
	overflow-y: scroll;
}

.test-page .jet-listing-grid__items > div * {
	height: 100%;
	object-fit: cover;
	min-height: initial;
}

.test-page .elementor-cta__content .elementor-cta__title {
	height: auto;
}

/* Menu styling  */

header .sub-arrow i {
	display: none;
}

.right-align-gallery img {
	aspect-ratio: 58/50 !important;
	object-fit: cover !important;
	width: 100%;
	height: 100%;
}


/*
header .sub-arrow::after {
	content:"";
	background-image: url(http://46.4.84.82/~flexwood/wp-content/uploads/down-arrow-yellow.svg);
	background-size: contain;
	height: 20px;
	background-repeat:no-repeat;
	width: 20px;
	display: inline-block;
}
*/

.hidden {
	display: none;
}

.reference-info .reference-info-title {
	text-transform: uppercase;
	display: inline-block;
	min-width: 200px;
}

.no-border-button .elementor-button::before, .no-border-button .elementor-button::after {
	content: initial;
}

.no-border-button .elementor-button:hover {
	transform: initial !important;
}

header .jet-mobile-menu__after-template {
	flex-grow: 1;
}

header .jet-mobile-menu__items {
	max-width: 300px;
}

header .jet-mobile-menu__after-template-content {
	height: 100%;
}

header .jet-mobile-menu__after-template-content > div {
	height: 100%;
	display: flex;
}


.jet-mobile-menu__container-inner {
    background-image: url(http://46.4.84.82/~flexwood/wp-content/uploads/flexwood_no_reg.png);
    background-position: 100.25% 110px;
    background-size: 150px;
    background-repeat: no-repeat;
}

.breadcrumb-label::after {
	content:"";
	display: block;
	width: 100px;
	height: 3px;
	background-color: #fff;
	position: relative;
	top: -5px;
}

/* Frontpage slider */

.frontpage-slideshow .swiper-pagination {
	right: 0;
    left: 0;
    bottom: initial !important;
	top: 50%;
    max-width: 2520px;
    margin: auto;
    text-align: center;
	align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: center;
	gap: 20px;
}

.frontpage-slideshow .swiper-pagination-bullet {
	height: 12px;
	width: 12px;
	margin-right: 50px !important;
}

.frontpage-slideshow .swiper-slide-contents {
	max-width: 1820px !important;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
    display: grid;
    width: 100%;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: start;
	z-index: 11;
}

.frontpage-slideshow .elementor-slide-description {
	margin-bottom: 10px;
}

.frontpage-slideshow .swiper-slide-contents .elementor-slide-heading {
	grid-column: 1;
  	grid-row: 1;
	margin-right: auto;
	text-align: left;
}

.elementor-slide-button {
	color: var(--e-global-color-638acc3) !important;
    border-style: solid;
    border-width: 0px 0px 5px 5px !important;
    border-color: var(--e-global-color-638acc3) !important;
}

.elementor-slide-button::after, .elementor-slide-button::before {
	background-color: var(--e-global-color-638acc3) !important;
}

.frontpage-slideshow .swiper-slide-contents .elementor-slide-description {
	grid-column: 1;
  	grid-row: 2;
	margin-right: auto;
	text-align: left;
}

.frontpage-slideshow .swiper-slide-contents .elementor-button {
	grid-column: 2;
  	grid-row: 1 / span 2; /* Span both rows */
	margin-top: auto;
	margin-left: auto;
	margin-right: auto;
}

/* Produkter oversigt */

.produkter-img img {
	aspect-ratio: 57/50;
	object-fit: cover;
}

.produkter-link .elementor-button {
	border: initial !important;
}

.produkter-link .elementor-button:hover {
	transform: initial !important;
}

.produkter-link .elementor-button::after, .produkter-link .elementor-button::before {
	content:initial !important;
}

/* Fancy button styling */
.elementor-button {
	position: relative;
	transition: all .3s ease-in-out;
}

.elementor-button:hover {
	border-color: transparent !important;
	transform: translate(-5px, 5px);
}

.elementor-button:hover::after {
	height: 5px;
}

.elementor-button:hover::before {
	width: 5px;
}

.elementor-button::after  {
	content: "";
	width: calc(100% - 8px);
	height: 2px;
	display:inline-block;
	position:absolute;
	right: 0;
	top: 0;
	background-color: var( --e-global-color-secondary );
	transition: all .3s ease-in-out; 
}

.elementor-button::before  {
	content: "";
	width: 2px;
	height: calc(100% - 8px);
	display:inline-block;
	position:absolute;
	right: 0;
	top: 0;
	background-color: var( --e-global-color-secondary );
	transition: all .3s ease-in-out; 
}

.elementor-button-info .elementor-button-link::before, 
.elementor-button-info .elementor-button-link::after {
	background-color: var( --e-global-color-9dfc986 ) !important;
}

.elementor-button-info .elementor-button-link {
	background-color: initial !important;
	color: var( --e-global-color-9dfc986 ) !important;
	border-color: var( --e-global-color-9dfc986 ) !important;
}

/* Disable custom styles for readmore buttons */

.readmore-button .elementor-button {
	border: initial !important;
	padding: 10px 20px !important;
	margin-left: -20px;
}

.readmore-button .elementor-button:hover {
	transform: initial !important;
}

.readmore-button .elementor-button::before, .readmore-button .elementor-button::after {
	content: initial !important;
}

.references-overview .e-gallery-image {
	height: 100% !important;
}

/* Color selection and set standard QOL for texts */
p::selection, div::selection, li::selection, em::selection, u::selection, a::selection, h1::selection, h2::selection, h3::selection, h4::selection, h5::selection, strong::selection, br::selection, span::selection {
background: #D79124 !important;
color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
hyphens: auto;
word-wrap: break-word;
overflow-wrap: break-word;
line-break: strict;
-webkit-hyphens: auto; /* Support for older WebKit browsers */
-ms-hyphens: auto; /* Support for older Microsoft browsers */
}

/* Laptops and smaller */
@media screen and (max-width: 1366px) {
	.
}

/* Above laptops */
@media screen and (min-width: 1367px) {
	header .jet-mobile-menu__items > li:nth-last-child(n+4) {
		display: none;
	} 
	.frontpage-slideshow .swiper-slide-contents .elementor-slide-heading, .frontpage-slideshow .swiper-slide-contents .elementor-slide-description {
		margin-left: 90px;
	}
}

/* iPads and smaller */

@media screen and (max-width: 1024px) {
	.references-overview:not(.test-page) .jet-listing-grid__items > div * {
		color: #fff !important;
	}
}


@media screen and (min-width: 1025px) {
	/*Fix z-indexing on dropdown menu */
	nav.elementor-nav-menu--main {
		z-index: 25;
	}

	/* Referencer */
	.references-overview .jet-listing-grid__items {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 1fr;
		gap: 25px;
	}
	
	/* First column: two equal-height boxes */
	.references-overview .jet-listing-grid__items > :nth-child(1), .references-overview .e-gallery-item:nth-child(1) {
		grid-column: 1;
		grid-row: 1;
	}
	
	.test-page .jet-listing-grid__items > :nth-child(1) {
		aspect-ratio: 1/1;
	}

	.references-overview .jet-listing-grid__items > :nth-child(2), .references-overview .e-gallery-item:nth-child(2) {
		grid-column: 1;
		grid-row: 2;
	}

	/* Second column: one tall box spanning both rows */
	.references-overview .jet-listing-grid__items > :nth-child(3), .references-overview .e-gallery-item:nth-child(3)  {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	/* Third column: 1/4 + 3/4 height stack */
	.references-overview .jet-listing-grid__items > :nth-child(4), .references-overview .e-gallery-item:nth-child(4)  {
		grid-column: 3;
		grid-row: 1;
		height: calc(100% - 7.5vw)
	}
	
	body .references-overview .e-gallery-item:nth-child(4) {
		height: 100%;
	}
	
	.references-overview .jet-listing-grid__items > :nth-child(5), .references-overview .e-gallery-item:nth-child(5) {
		grid-column: 3;
		grid-row: 2;
		margin-top: -33%;
	}
	
	.test-page .jet-listing-grid__items > :nth-child(5), .references-overview .e-gallery-item:nth-child(5)  {
		grid-column: 3;
		grid-row: 2;
		height: auto;
		margin-top: -33%;
	}
	body .references-overview .e-gallery-item:nth-child(5) {
		margin-top: initial;
	}

	/* Fourth column: 3/4 + 1/4 height stack */
	.references-overview .jet-listing-grid__items > :nth-child(6), .references-overview .e-gallery-item:nth-child(6)  {
		grid-column: 4;
		grid-row: 1;
		height: 133%;
	}
	body .references-overview .e-gallery-item:nth-child(6) {
		height: 150%;
	}

	.references-overview .jet-listing-grid__items > :nth-child(7), .references-overview .e-gallery-item:nth-child(7)  {
		grid-column: 4;
		grid-row: 2;
		height: 66%;
		margin-top: 33%;
		align-self: flex-end;
	}
}
.jet-menu-settings {
	display: none;
}

@media screen and (min-width: 1921px) {
	/* Fix for third columns on big monitors */
	.references-overview .jet-listing-grid__items > :nth-child(4), .references-overview .e-gallery-item:nth-child(4)  {
		grid-column: 3;
		grid-row: 1;
		height: 68%;
	}
}

@media screen and (max-width: 991px) {
	.frontpage-slideshow .elementor-slide-button  {
		display: none !important;
	}
	.jet-mobile-menu__container-inner {
		background-image: initial;
	}
}

/* Mobile and smaller */
@media screen and (max-width: 766px) {
	.references-overview:not(.test-page) .jet-listing-grid__items > div * {
		align-content: stretch;
	}
	.reference-filter > .elementor-widget-container {
		margin-left: initial !important;
	}
}