/*
 Theme Name:   Lyckebacka
 Theme URI:    https://divilife.com
 Description:  Child Theme for Divi
 Author:       Tim Strifler
 Author URI:   https://divilife.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/


/**
*** SIMPLE GRID
*** (C) ZACH COLE 2016
**/



/* UNIVERSAL */



/* ROOT FONT STYLES */


/* Top left text */
.top-left {
  position: absolute;
  top: 42px;
  left: -15px;
}


.sold-label {
	position: absolute;
	top: 32px;
    left: -20px;
	padding-left:30px;
	padding-right: 30px;
	
	background:#095540;
	color:#fff;
	font-size:20px;
	font-weight:700;
	letter-spacing:1.5px;
}

.tomt-container {
  position: relative;
  text-align: center;
  min-height:550px;
}


/* TYPOGRAPHY */


.kontakt-container {
min-height: 640px;

}
.kontakt {
	height:300px;
	margin-bottom:40px;
}

.kontakt-bild img {
  object-fit: cover;
  width: 100%;
  height: 320px;
  
}

.rubrik {
	margin-top:30px;
}

.rubrik-hustyp {
	margin-top:60px;
	margin-bottom:20px;
}


.mail, .telefon {
	margin-top:10px;
	margin-bottom:20px;
	font-size:20px;
	letter-spacing:1px;

}




.beskrivning {
	font-size:15px;
	margin-bottom:20px;
}



.kategori {
	margin-top:-10px;
	font-size:13px;
	text-transform:uppercase;
	color:black;
	
}


/* TOMTER    */

.tomt_under_rubrik,
.tomt_rubrik,
.tomt_text {
	
	margin-bottom:10px;
}

.tomt_lank {
	margin-top:-10px;
	padding-bottom:20px;
	}
	
.tomt_fakta_beskrivning,
.tomt_under_rubrik {
	padding-top:20px;
}

.tomt_fakta_wrapper {
	background-color: #D8D8D8;
	padding:20px;
	width:100%;
	margin-top: 0px;
	margin-bottom:20px;
	padding-bottom:30px;
}

.tomt-passande-modeller {
 text-align: left;
	}
.tomt-passande-modeller img {
	width:100%;
	height:200px;
	object-fit:cover;
}

#tomter img:hover,
.tomt-passande-modeller:hover {
 
 opacity:.6;
 transition: 0.3s;
}


.tomt-kontakt {
 
	margin-top:10px;
	margin-bottom:20px;
	font-size:17px;
	letter-spacing:1px;
	font-weight: 600;;

}



.space50 {
	height:50px;

}
.space20 {
	height:20px;

}

.div-table {
  display: table;         
  width: 100%;                
  border-spacing: 5px; /* cellspacing:poor IE support for  this */
}
.div-table-row {
  display: table-row;
  width:auto;
  clear: both;
}
.div-table-col {
  float: left; /* fix for  buggy browsers */
  display: table-column;         
  width: 50%;   
  font-size:15px;
  font-weight: 600;      
  
}

/* POSITIONING */

.left {
  text-align: left;
}

.right {
  text-align: right;
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.image-block {
  position: relative;
  display:block;
  margin-bottom:30px;
  margin-right:-2%;
  margin-left:-2% !important;	


}
.image-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.justify {
  text-align: justify;
}

#main-header {
	z-index: 1;
}
	

/* Container holding the image and the text */
.husmodell-container {
  position: relative;
  text-align: center;

 
}

.husmodell-container p,
.husmodell-container h2,
.husmodell-container h3  {
  color: #fff;

  padding:0px;
  margin:0px;

}




/* Centered text */
.centered {
  position: absolute;
  top: 50%;
  left: 50%;
  width:86%;
  transform: translate(-50%, -50%);
}

.bild-container {
 /*  background-color: #095540; */
 height: 230px;
 
}



.bild  {
  opacity: .9;

	
	
 
}

.bild img {
  object-fit: cover;
  width: 100%;
  height: 230px;
}

.bild::after {
	background-color: black;
	content: "";
	display: block;
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 100;
	opacity: .4;
}




.husmodell-container:hover {
 
 opacity:.6;
 transition: 0.3s;
}


/* ==== GRID SYSTEM ==== */

.simple-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  z-index:1;
    
}

.row {
  position: relative;
  width: 100%;

}


.row [class^="col"] {
  float: left;
  margin: 2% 2%;
  min-height: 0.125rem;  
}




.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  width: 100%;
}




.col-1-sm {
  width: 4.33%;
}

.col-2-sm {
  width: 12.66%;
}

.col-3-sm {
  width: 21%;
}

.col-4-sm {
  width: 29.33%;
}

.col-5-sm {
  width: 37.66%;
}

.col-6-sm {
  width: 46%;
}

.col-7-sm {
  width: 54.33%;
}

.col-8-sm {
  width: 62.66%;
}

.col-9-sm {
  width: 71%;
}

.col-10-sm {
  width: 79.33%;
}

.col-11-sm {
  width: 87.66%;
}

.col-12-sm {
  width: 96%;
}

.row::after {
	content: "";
	display: table;
	clear: both;
}

.hidden-sm {
  display: none;
}



/*---- FIX for Husmodeller på tomter  */

#saljare .col-4 {
	width: 100%;
}

.col-4 {
    width: 46%;
  }
  
  .col-6:nth-child(2n+1) {
	margin-left:0px;
	margin-right:0px;
   }

	.col-6:nth-child(2n+2)  {
	margin-left:0px;
	margin-right:0px;
  }
  

@media only screen and (min-width: 45em) {  /* 720px */
  
  .tomt-passande-modeller img  {
  		height:150px;
  	}
  .tomt_fakta_wrapper {
  	margin-top: -20px;
  }
  
  .col-1 {
    width: 4.33%;
  }

  .col-2 {
    width: 12.66%;
  }

  .col-3 {
    width: 21%;
  }

  .col-4 {
    width: 29.33%;
  }

  .col-5 {
    width: 37.66%;
  }

  .col-6 {
    width: 48%;
  }

  .col-7 {
    width: 54.33%;
  }

  .col-8 {
    width: 62.66%;
  }

  .col-9 {
    width: 71%;
  }

  .col-10 {
    width: 79.33%;
  }

  .col-11 {
    width: 87.66%;
  }

  .col-12 {
    width: 96%;
  }

  .hidden-sm {
    display: block;
  }
  
  #saljare .col-4 {
	width: 30.66%;
}
  
  /*---- FIX for Husmodeller  */
   .col-4 {
    width: 30.66%;
  }
  
  .col-6:nth-child(2n+1), 

  .col-4:nth-child(3n+1) {
	margin-left:0px;
	margin-right:2%;
   }

	.col-6:nth-child(2n+2), 
   .col-4:nth-child(3n+3) {
	margin-left:2%;
	margin-right:0px;
  }
  
  
  
}






