/*
Theme Name: bm
Theme URI: http://bm-ark.fi
Description: The BM theme!
Author: Futudesign
Author URI: http://bm-ark.fi
Version: 1.0
Tags:

License:
License URI:

*/


html {
  overflow-y: scroll;
}


/* CSS Document */

/*-----------------------------
RESET STYLES
-----------------------------*/

html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6, p, a, li, td {
  margin:0;
  padding:0;
  -webkit-text-size-adjust:none;
}
body{
  font-size: 1.5em;
}

ul, li, ol, dl, dd, dt{
  list-style:none;
  padding:0;
  margin:0;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}

a img {
  border:none;
  outline:none;
}

/*-----------------------------
RESET STYLES
-----------------------------*/


/*-----------------------------
fiksaus
-----------------------------*/

img {
    max-width: 100%;
    height: auto;
    width: auto;         /* The image is made responsive further below for smaller windows (@ 800px) */
}



/*-----------------------------
perus
-----------------------------*/


html {
  background-color:#fff;
  color:#292929;
}

p {
  letter-spacing: 0.02em;
}

.name {
  margin-bottom: 30px;
}

.news {
  margin: 0px 0px 5px 0px;
}

.credit {
  font-size: 12px;
  line-height: 14px;
  color: #bbb;
  float:left;
  margin: 0px;
  width: 100%;
}
.credit a:link {
  color: #bbb;
  text-decoration: none;
}
.credit a:visited {
  color: #bbb;
  text-decoration: none;
}
.credit a:hover {
  color: #bbb;
  text-decoration: none;
}

.project_image {
  margin: 0px;
  width: 100%;
}

.project {
  text-align: center;
  font-size: 1.0em;
  margin-bottom: 1.0em;
  height:2.5em;
  line-height:1.25em;
  overflow: hidden;
}

/*-----------------------------
LAYOUT FIILAUS
-----------------------------*/


#menu {
  position: relative;
  float:right;
  text-align:right;
  padding-top:10px;
  line-height: 55%;
  vertical-align: baseline;
  font-size:22px;
  color: #292929;
}
#menu li {
  display: inline;
  margin-right: 0px;
  margin-left: 40px;
  background: #fff;
  padding: 3px;
}
#menu a {
  color: #292929;
  display: inline-block;
  padding: 4px 4px;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

div#map{
  height: 650px;
}

.map{
  height: 650px;
}

#logo {
  width:120px;
}

div.menu {
  float: right;
}

div.archive-info {
  min-width: 600px;
  max-width: 800px;
  min-height: 400px;
  padding: 30px;
}

div.project-head {
  padding: 10px 0px 25px 0px;
}

.date{
  margin: 0px 0px 10px 0px;
  font-size: 12px;
}

/* ---- NEWS MASONRY ---- */

/* center container with CSS */
.grid {
  margin: 0 auto;
  margin-right: -30px;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- grid-item ---- */

.grid-item {
  float: left;
  border: 0px;
  padding: 0px 30px 35px 0px;
}

.grid-item-content {

}


/* pager */
.cycle-pager {
    text-align: center;
    width: 100%;
    z-index: 500;
    position: center;
    top: 0px;
    overflow: hidden;
    margin-top: -1.5em;
}
.cycle-pager span {
    font-family: arial;
    font-size: 40px;
    width: 16px;
    height: 16px;
    display: inline-block;
    color: #ddd;
    cursor: pointer;
}
.cycle-pager span.cycle-pager-active { color: #292929;}
.cycle-pager > * { cursor: pointer;}

/* caption */
.cycle-caption { position: absolute; color: white; bottom: 15px; right: 15px; z-index: 700; }

/* overlay */
.cycle-overlay {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 600;
}

.feature_text {
  color: #292929;
  background-color:#fff;
  font-size: 4rem;
  padding: .5rem 1.5rem .5rem 1.5rem;
  display: inline-block;
}

.show-second{
  display: block;
}

.show-third{
  display: block;
}

.show-last{
  display: block;
}

.hide-last{
  display: none;
}

.project-show-last{
  display: none;
}

.maintext h5 {
  font-size: 1.25em;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-right: 20px;
}

/* RESPONSIVE */

@media screen and (max-width: 1200px) {
  #menu {
    font-size:20px;
  }
  #menu li {
    margin-left: 20px;
    padding: 3px;
  }
  #menu a {
    padding: 4px 4px;
  }
  .show-last{
    display: none;
  }
  .hide-last{
    display: block;
  }

  .project-show-last{
      display: none;
  }

}


@media screen and (max-width: 992px) {
  #logo {
    width:100px;
  }

  #menu {
    font-size:16px;
  }
  #menu li {
    margin-left: 5px;
    padding: 4px;
  }
  #menu a {
    padding: 3px 3px;
  }
  div#map{
    height: 350px;
  }

  .map{
    height: 350px;
  }

  .show-last{
    display: block;
  }

  .hide-last{
    display: none;
  }

  .show-second{
    display: block;
  }

  .show-third{
    display: none;
  }

  .cycle-overlay {
    top: 25px;
    left: 25px;
  }

  .project-show-last{
    display: block;
  }

  .maintext h5 {
    font-size: 1.2em;
    margin-right: 0px;
  }

}

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

  div.menu {
    float: none;
    width: 100%;
  }

  #menu {
    width: 100%;
    position: relative;
    float:none;
    text-align:center;
    padding-top:40px;
    font-size:16px;
  }
  #menu li {
    margin-right: 2px;
    margin-left:  2px;
    padding: 4px;
  }
  #menu a {
    padding: 0px 3px 0px 3px;
  }

  .submenu{
    line-height: 30px;
  }

  #logo {
    text-align:center;
    position: relative;
    float:none;
    margin: auto;
    width:100px;
  }

  div.container{
    margin-top: -10px;
  }

  div#map{
    height: 300px;
  }

  .map{
    height: 300px;
  }

  div.archive-info {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 20px;
  }

  div.project-head {
    padding: 5px 0px 15px 0px;
  }

  .show-last{
    display: block;
  }

  .hide-last{
    display: none;
  }

  .show-second{
    display: none;
  }

  .show-third{
    display: none;
  }

  .project-show-last{
    display: none;
  }

  .grid {
    margin: 0 auto;
    margin-right: 0px;
  }

  .grid-item {
    padding: 0px 0px 35px 0px;
  }

  .feature_text {
    padding: .25rem .75rem .25rem .75rem;
  }

  .feature_text h4{
    font-size: 0.45em;
  }

  .cycle-overlay {
    top: 15px;
    left: 15px;
  }

  .row h2 {
    font-size: 1.85em;
  }

  .row h3 {
    font-size: 1.85em;
  }

  .maintext h5 {
    font-size: 1.15em;
    margin-right: 0px;
  }

}


@media screen and (max-width: 450px) {
  #menu {
    padding-top:20px;
    font-size:14px;
  }
  #menu ul {
    margin-bottom: 12px;
    margin-top: 0px;
  }
  #menu li {
    margin-right: 6px;
    margin-left:  6px;
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 3px;
    line-height: 24px;
  }
  .show-last{
    display: block;
  }

  .hide-last{
    display: none;
  }

  .date{
    margin: 0px 0px 0px 0px;
    font-size: 10px;
  }

  .grid-item {
    padding: 0px 0px 35px 0px;
  }

}

/*-----------------------------
SPECIAL
-----------------------------*/


img.alignnone {
  margin-top: 10px;
  margin-bottom: 10px;
}

.cycle-slideshow, .cycle-slideshow * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
.cycle-slideshow {
  width: 100%;
}

/* divs */
.cycle-slideshow > div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0;
}

#menu li.current_page_item  a { color: #fff }
#menu li.current_page_item  { color: #fff; background-color:#292929; }

#menu li.current_page_parent  a { color: #fff }
#menu li.current_page_parent { color: #fff; background-color:#292929; }

#menu li.current-page-ancestor  a { color: #fff }
#menu li.current-page-ancestor  { color: #fff; background-color:#292929; }

#menu.front li.current_page_item  a { color: #292929 }
#menu.front li.current_page_item  { color: #292929; background-color:#ffffff; }

.info {
  margin-bottom: 10px;
}
.center {
  text-align: center;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  height: auto;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}





.acf-map {
  width: 100%;
  height: 500px;
  border: #ccc solid 0px;
  margin: 20px 0;
}

/* fixes potential theme css conflict */
.acf-map img {
   max-width: inherit !important;
}





.preview img {
	position: relative;
	width: 100%;
	height: auto;
	-webkit-transition: opacity 200 ease-in-out;
	-moz-transition: opacity 200 ease-in-out;
	-o-transition: opacity 200 ease-in-out;
	transition: opacity 200 ease-in-out;
}

.preview-image {
	background: #446699;
	width: 100%;
	height: auto;
	display: inline-block;
}

.preview img:hover,
.preview.active img {
	filter: alpha(opacity=20);
	-khtml-opacity: 0.20;
	-moz-opacity: 0.20;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
	-webkit-opacity: 0.20;
	opacity: 0.20;
}

.preview a:hover {
	text-decoration: none;
}




article {
  -webkit-column-width: 160px;
  -moz-column-width: 160px;
  column-width: 160px;
  font-size: 0.9em;
}

.more{
  color: #fff;
  background-color:#292929;
  padding: 3px 10px 3px 10px;
  display: inline-block;
  margin: 20px 0px 35px 0px;
}

.salalinkki a:link {
  color: #292929;
}
.salalinkki a:visited {
  color: #292929;
}
.salalinkki a:hover {
  color: #292929;
}

.pieni {
  font-size: 0.8em;
  line-height: 1.5em;
}

.my-label {
    width:200px;
    margin-left: -100px;
    text-align: center;
    font-weight: bold;
}
