/* Small devices (sm) */
@media (min-width: 576px) {
	main { background-position: center -350px; }
}

/* Medium devices (md) */
@media (min-width: 768px) {
	main { background-position: center -250px; }
}

/* Large devices (lg) */
@media (min-width: 992px) {
	.hero-section {
		position: relative;
		min-height: calc(100vh - 164px); 
		display: flex;
		align-items: flex-end;
	}	
	body { font-size: 18px; }
	main { background-position: center -350px; }
	.main-header {
		height: 164px;
		display: flex;
		align-items: center;
	}	
	h1, .hero-section h1 { font-size: 21px; line-height: 36px; }
	h2 { font-size: 20px; }
	.bg-trans { margin-top: 50px; margin-bottom: 50px; }
	.bg-gray { border-radius: 0px; margin-top: 50px; margin-bottom: 50px; padding: 70px 75px; background-color: rgba(127, 127, 127, 0.90); opacity: 1; letter-spacing: 1px; line-height: 35px; }
	.inner-text { margin-left: -30px; }
	.inner-text.diensten { margin-left: 0; padding-left: 30px; padding-top: 0px; }
	.inner-text.overons { margin-left: 0; padding-left: 0px; padding-top: 0px; }
	main.diensten .content.container-fluid:nth-of-type(2) .bg-gray,
	.content:first-child .bg-gray { margin-top: 100px; }
	.hero-section .bg-gray { margin-top: 0 !important; }
	.hero-section .bg-gray.intro { 	background-color: rgba(127, 127, 127, 0.90); }
	main.werk .content:first-child .bg-gray { margin-top: 200px; margin-bottom: 20px; }
	.content:last-child .bg-gray { margin-bottom: 100px; }	
	.bg-gray.intro { background-color: #7f7f7f; padding: 0; }
	.bg-gray.intro .inner-text { padding: 70px 20px; margin-left: -20px; background-color: transparent; }
	.img-round { justify-content: flex-end; padding-top: 0px; padding-bottom: 0px; margin-top: -30px; margin-bottom: -30px; }
	.img-round .img-responsive { height: 400px; width: 400px; border-radius: 150px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); }
	.slogan { font-size: 65px; margin-bottom: 50px; }
	.slider-arrow { width:80px; height:80px; }
	.bg-trans.werk { padding: 30px 100px; font-size: 19px; line-height: inherit; }
	.bg-trans.diensten { padding: 0px; font-size: 19px; line-height: inherit; }
	main.werk .bg-gray { min-height: 195px; box-sizing: border-box; }
	.photos { min-height: 300px; }
	.slider-wrapper { min-height: 400px; }
	.letter-red { font-size: 220px; margin-left: -110px !important; margin-top: -30px; }
	.strategy-box .letter-red { font-size: 150px; margin-left: -50px !important; }
	.letter-red.lg-margin { margin-top: -200px; }
	.hero-section .letter-red { font-size: 450px; margin-top: -90px !important; margin-left: -320px !important; }
	main.home .hero-section .letter-red { font-size: 400px; }
	main.overons .hero-section .letter-red { font-size: 430px; margin-top: -40px !important; }
	main.contact .hero-section .letter-red { font-size: 500px; margin-left: -200px !important; }
	main.home::before { margin-top: -400px; }
	main.diensten::before { background-position: center -300px; }
	main.overons::before { background-position: center -550px; }
	main.werk::before { background-position: center -1050px; }
	main.contact::before { background-position: center -1000px; }	
	.rounded.round-left .bg-gray { border-bottom-left-radius: 40px; border-top-left-radius: 40px; }
	.rounded.round-right .bg-gray { border-bottom-right-radius: 40px; border-top-right-radius: 40px; }
	.single-text { padding: 0; }
	.strategy-box { width: 90%; }
	.col-lg-6:first-child .strategy-box {
		margin-right: auto; 
	}

	.col-lg-6:last-child .strategy-box {
		margin-left: auto;  
	}	

	.main-header .nav-link {
		position: relative;
		text-decoration: none;
	}

	.main-header .nav-link::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -2px;
		height: 2px;
		background-color: #e31d1a;
		transform: scaleX(0);
		transform-origin: center;
		transition: transform 0.28s cubic-bezier(.4,0,.2,1);
	}

	/* hover-effect */
	.main-header .nav-link:hover::after {
		transform: scaleX(1);
	}

	/* actief = stabiel, geen animatie */
	.main-header .nav-link.active::after {
		transform: scaleX(1);
	}


	
}


/* Extra large devices (xl) */
@media (min-width: 1200px) {
}	

/* Extra extra large devices (xxl) */
@media (min-width: 1400px) {
	main { background-position: center -650px; }
}

/* Mobiel / tablets tot aan lg: vaste sliderhoogte en maximale afbeeldingshoogte */
@media (max-width: 991.98px) {
	.photos {
		/* optioneel, maar helpt om de hele slider niet te laten 'meeschuiven' met marges */
		margin-bottom: 30px;
	}

	.slider-wrapper {
		/* vaste hoogte voor de hele slider zodat pijlen altijd op dezelfde hoogte blijven */
		height: 260px; /* pas aan naar smaak: 220–320px */
	}

	.slider-image-wrapper {
		max-height: 220px;              /* iets minder dan .slider-wrapper.height */
		display: flex;                  /* centreren van de afbeelding */
		align-items: center;
		justify-content: center;
		overflow: hidden;               /* voorkomt dat er iets uitsteekt */
	}

	.slider-image {
		max-width: 100%;
		max-height: 220px;              /* zelfde als wrapper */
		width: auto;                    /* verhouding behouden */
		height: auto;                   /* verhouding behouden */
	}
}

/* Layout switch: onder 1500px -> caption + pijlen boven, foto eronder, normale flow */
@media (max-width: 1499.98px){
	
	.werk-left-inner { padding-left: 0; padding-right: 0px; }

	/* Band mag meeschalen in hoogte (geen 300px lock) */
	.werk-band{
		height: auto !important;
		max-height: none !important;
	}

	/* Linker kolom: bovenaan uitlijnen */
	.werk-band .werk-left{
		justify-content: flex-start !important;
		padding: 30px 15px 0 15px !important;
	}

	.werk-topbar{
		position: relative;
		min-height: 72px; 
		display: block;   
	}

	.werk-topbar .slider-prev,
	.werk-topbar .slider-next{
		position: absolute;
		top: 30%;
		transform: translateY(-50%);
		width: 34px;
		height: 34px;
		opacity: 0.9;
		z-index: 2;
	}

	.werk-topbar .slider-prev{ left: 0; }
	.werk-topbar .slider-next{ right: 0; }

	.werk-topbar .werk-caption{
		display: block;
		padding: 0 54px;    
	}
  
	.werk-intro{ margin-top: 12px; }

	.werk-right{ height: auto !important; }

	.werk-photo-frame{
		position: relative !important;
		top: auto !important;
		left: auto !important;
		transform: none !important;

		margin: 0 auto 20px auto;
		max-width: calc(100% - 80px); 
	}

	.slider-nav-footer { display: none !important; }
}

@media (min-width: 1500px){
	.werk-left-inner button { display: none; }

	.werk-photo-frame{
		max-width: none !important;
		width: fit-content;         
		height: fit-content;
		overflow: hidden;
	}

	.werk-photo{
		display: block;
		width: auto;              
		height: auto;               
		object-fit: contain;
		max-width: clamp(400px, 45vw, 750px);
		max-height: 500px;
	}
}


