body {
	font-family: Raleway, Arial, sans-serif;
	background-image: url(../img/binding_dark.png);
	-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #ccc;
}

div.ccm-panel-content ul.nav>li, div.ccm-panel-content menu>li {
    margin-top: 10px;
    margin-left: 0px;
    width: 100%;
}

.mywrapper a {
	transition: 0.2s;
}

.mywrapper a:hover {
	transition: 0.2s;
}

.topbar {
	background-color: #222;
	height: 70px;
	background-image: url(/application/themes/juhavaarakangas/img/topbar.jpg);
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid #000;
}

.ccm-image-block {
	width: 100%;
	height: auto;
	margin: 20px 0;
}

.logo img {
	width: 180px;
	height: auto;
	margin-top: 15px
}

.mywrapper .jumbotron h1 {
    font-family: "Source Sans Pro";
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0,0,0,0.9);
    padding-top: 90px;
    font-size: 4.2rem;
}

.carousel-item {
	box-shadow:inset 0 80px 60px -50px rgba(0,0,0,0.2);

}

.carousel-item {
	height: 72vh;
}


.carousel-item {
	background-position: center;
	background-size: cover;
}

.carousel-caption h2 {
	font-size: 3rem;
	font-weight: bold;
	margin-bottom: 3rem;
	text-shadow: 2px 2px 5px #000000;
}

.card-img {
    height: 240px;
    background-position: center;
    background-size: cover;
    border-radius: 0;
}

.card-title {
    font-size: 1.7rem;
    line-height: 2.3rem;
    font-weight: 600;
    color: #ccc;
    margin-top: -7px;
    transition: 0.2s;
}

.card-title:after {
    font-family: FontAwesome;
    content: "\f105";
    margin-left: 12px;
    position: relative;
    top: 1px;
    color: #A49182;
}

.card-text {
	color: #ccc;
    transition: 0.2s;
    font-size: 0.9rem;
}

.card {
	background-color: #000;
	margin-bottom: 2rem;
	 box-shadow: 0 0 20px 0 rgba(0,0,0,0.5);
}

.card-img {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.card:hover {
    box-shadow: 0 0 20px 0 rgba(255,255,255,0.2);
    text-decoration: none;
    transition: box-shadow 0.2s;
}


.card:hover .card-title, 
.card:hover .card-text 
{
    color: #fff;
    transition: 0.2s;
}

.card-body {
	padding: 1.6rem;
}

.frontpage-lead {
	padding: 3rem 0;
}

.frontpage-lead h2 {
	padding-bottom: 2rem;
}

.frontpage-lead h2:after {
    content: "";
    display: block;
    border-top: 5px solid #ccaf94;
    width: 16%;
    left: 42%;
    position: absolute;
    margin-top: 15px;
}


.subpage-lead {
	padding: 3rem 0;
}

@media screen and (max-width: 767px) {
	.subpage-lead {
		padding: 6rem 0 3rem 0;
	}
}

.subpage-lead h1 {
	padding-bottom: 2rem;
	font-weight: bold;
}

.subpage-lead h1:after {
    content: "";
    display: block;
    border-top: 5px solid #ccaf94;
    width: 16%;
    left: 42%;
    position: absolute;
    margin-top: 15px;
}

.subpage-lead p {
	font-size: 1.3rem;
}


.footer {
	background-color: #000;
	margin-top: 4rem;
	padding-top: 2rem;
	padding-bottom: 2rem;
	border-top: 2px solid #000;
	background-image: url(/application/themes/juhavaarakangas/img/topbar.jpg);
	background-size: cover;
	background-position: top center;
	box-shadow:inset 0 -100px 100px -50px rgba(0,0,0,1);
}

.footer p {
	font-size: 0.9rem;
	color: #aaa;
}

.footer a {
	font-size: 0.9rem;
	color: #aaa;
	border-bottom: 1px dotted #555;
}

.footer a:hover {
	border-bottom: 1px dotted #fff;
	text-decoration: none;
}


.topbar .nav {
	margin: 0;
	padding: 0;
	justify-content: flex-end;
}

.topbar .nav>li {
	display: inline-block;
}

.topbar .nav>li>a {
	color: #fff;
	display: inline-block;
	padding: 24px 16px;
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 700;
	opacity: 0.8;
}

.topbar .nav>li>a:hover {
	text-decoration: none;
	opacity: 1;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
	.topbar .nav a {
		color: #fff;
		display: inline-block;
		padding: 22px 15px 23px 15px;
		font-family: "Source Sans Pro", Arial;
		text-transform: uppercase;
		font-size: 0.9em;
	}
}

.topbar .nav-path-selected>a {
	background-color: rgba(0,0,0,0.7);
	opacity: 1;
}

.topbar .dropdown-menu {
	margin-top: -3px;
	border-top-right-radius: 0;
	border-top-left-radius: 0;
	background-color: rgba(0,0,0,0.8);
}

.topbar .dropdown-menu a {
	color: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.2);
}

.topbar .dropdown-menu a:hover {
	background-color: #000;
}


@media screen and (max-width: 767px) {

	.topbar {
		height: 50px;
		position: fixed;
		width: 100%;
		top: 0;
		z-index: 98;
		box-shadow: 0 5px 8px 0 rgba(0,0,0,0.3);
	}
	
	.logo img {
		width: 130px;
		margin: 13px 0 0 -12px;
	}

	.topbar .secondary-nav {
		position: fixed;
		top: 7px;
		right: 15px;
	}

	.topbar .secondary-nav li {
		list-style-type: none;
	}

	.topbar .secondary-nav a, .secondary-nav-xs a {
	    width: 86px;
	    height: 36px;
	    text-align: center;
	    line-height: 24px;
	    color: #ccc;
	    background: #000;
	    position: relative;
	    font-family: "Source Sans Pro", Helvetica, Arial;
	    font-weight: bold;
	    border: none;
	    transition: all 0.2s;
	    border: 1px solid #555;
	    font-size: 16px;
	    padding: 5px 5px;
	    display: inline-block;
	}

	.topbar .secondary-nav .fa {
	    margin-right: 3px;
	}


	#nav-xs-content {
		padding-left: 0;
		margin-bottom: 0;
	}

	#nav-xs-content li {
		display: block;
		margin-left: 10px;
		margin-right: 20px;
	}

	#nav-xs-content a {
		color: #000;
		font-family: "Source Sans Pro";
		font-size: 1.4rem;
		border-top: 1px solid #ddd;
		padding: 10px 0;
		text-transform: uppercase;
		display: block;
		font-weight: 600;
		margin-right: 30px;
	}

	#nav-xs-content .nav-path-selected a {
		color: #A49182;
	}

	#nav-xs-content a:active, #nav-xs-content a:focus {
		color: #999;
		text-decoration: none;
	}


	#nav-xs-content li:first-child a {
		border-top: none;
	}


}

.modal .close {
    font-size: 2.5rem;
    margin-top: -14px;
    margin-right: -14px;
    padding: 5px 15px;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	grid-gap: 1rem;
	grid-auto-flow: dense;
	margin: 0rem auto 4rem auto;
	padding: 1rem 1rem 1rem 1rem;
	background-color: #000;
}

@media screen and (max-width: 767px) {
	.portfolio-grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
		grid-gap: 0.5rem;
		padding: 0 0.5rem 0.5rem 0.5rem;
	}
}

.portfolio-item img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.2s;
}

.portfolio-item img:hover {
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(255,255,255,0.7);
	transition: all 0.2s;
}

.portfolio-item.landscape {
	grid-column: span 2;
}

.portfolio-item.portrait.large {
	grid-row: span 2;
	grid-column: span 2;
}

.portfolio-item.landscape.large {
	grid-column: span 3;
}

.main-content a,
.subpage-lead a 
{
	color: #d5b69a;
	border-bottom: 1px dotted #d5b69a;
}

.main-content a:hover,
.subpage-lead a:hover 
{
	text-decoration: none;
	border-bottom: 1px solid #d5b69a;
}


.large-image-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	z-index: 4;
}

.large-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	z-index: 100;
}


.btn-close,
.btn-close-large-image
{
	color: #fff;
	opacity: 0.6;
	background: none;
	font-size: 60px;
	position: absolute;
	right: 35px;
	top: -20px;
	height: 40px;
	border: none;
	z-index: 110;
	text-shadow: 0 0 5px rgba(0,0,0,0.7);
}

.btn-close:hover,
.btn-close-large-image:hover 
{
	opacity: 1;
	color: #fff;
	text-decoration: none;
}


.testimonial-item {
	padding-bottom: 20px;
}

.testimonial-item p {
	font-size: 15px;
	color: #888;
	font-weight: bold;
}

.testimonial-item p i,
.testimonial-item p em
{
	font-family: "Dancing Script";
	line-height: 32px;
	font-weight: normal;
	font-size: 26px;
	color: #fff;
	font-style: normal;
}

.mywrapper h2 {
	font-weight: bold;
	padding-bottom: 1rem;
	font-size: 2rem;
}

.main-content h2:first-child {
	margin-top: -20px;
}

.mywrapper h3 {
	font-weight: bold;
	padding-bottom: 1rem;
	padding-top: 1rem;
	font-size: 1.5rem;
}


.secondary-content {
	padding-top: 3rem;
}


.threesixty-container {
	width: 100%;
	height: 600px;
}

.threesixty {
	background-size: contain;
	background-position: top center;
	background-repeat: no-repeat;
	height: 100%;
	width: 100%;
	padding-top: 30px;
	z-index: 2,
}  

.placement-image {
	opacity: 0;
	position: relative;
	z-index: -1;
	width:100%;
	height: auto;
}

.threesixty.zoom {
	position: fixed;
	z-index: 999;
	display: block !important;
}

.zoom .threesixty-container {
	display: block;
}

.threesixty-caption {
}

.spinner {
	position: absolute;
    width: 60px;
    left: 50%;
    margin-left: -30px;
    color: #fff;
    opacity: 0.4;
    top: 50%;
    margin-top: -30px;
    z-index: -1;
}

.fullscreen {
	position: absolute;
    right: 14%;
    text-align: center;
    bottom: 15px;
    z-index: 99;
    font-size: 18px;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
}

.fullscreen:hover {
	cursor: pointer;
}

@media screen and (max-width: 767px) {
	.fullscreen {
		bottom: 5px;
	}
}

.zoom .fullscreen {
	display: none;
}

.close-fullscreen {
	position: fixed;
    right: 20px;
    text-align: center;
    top: 15px;
    z-index: 1000;
    font-size: 18px;
    background-color: rgba(0,0,0,0.4);
    color: #fff;
    padding: 4px 10px;
    display: none;
    border-radius: 4px;
}

.close-fullscreen:hover {
	cursor: pointer;
}

.zoom .close-fullscreen {
	display: block;
}

.dim {
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: #fff;
	z-index: 98;
}

.zoom .dim {
	display: block;
}

