/*
 CSS for Vimeo Website
 (c) 2013 Hammertime (www.hammerti.me)
 Designed by Supertusch (supertusch.dk)
 AHJ / MB
*/

/* A little space to the bottom of the page */
* {
  box-sizing: border-box;
}
html {
  padding-bottom: 25px;
  overflow-y: scroll;
}

/* Structure */
#wrapper {
  width: 720px;
  max-width: 100%;
  margin: 0px auto;
}
#masthead {
  position: relative;
  margin-top: 35px;
}
#logo {
  position: absolute;
  left: 0px;
  bottom: 40px;
}
#logo-name-container {
  display: flex;
  justify-content: space-between;
  font-size: 32px;
  font-family: "Quicksand", sans-serif;
}
#logo-name-container p:nth-child(2) {
  font-weight: 300;
}
#menu {
  display: none;
  /* position: absolute; */
  /* left: 0px; */
  /* bottom: 0px;  */
}
#content {
  padding-top: 10px;
}

.greyscale {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.8;
}

/* Header Menu */
ul.header-nav {
  margin: 0px;
  padding: 0px;
}
ul.header-nav li {
  padding: 0px;
  float: left;
  list-style-type: none;
  margin-right: 25px;
}
ul.header-nav li.first {
  margin-left: 0px;
}
ul.header-nav li a {
  font-size: 12px;
  /*color: #b2b2b2; /* Grey */
  color: #444444;
}

ul.header-nav li a:hover {
  /* color: #444444; /* Black-ish */
  color: #b2b2b2;
  text-decoration: none;
}
ul.header-nav li a.nav-selected {
  color: #b2b2b2;
}

/* Video category page */
#videowrapper {
  clear: both;
}

#videowrapper.frontpage {
  /* margin-top: 240px; */
}

.portfolioelement {
  /* float: left; */
  /* margin-right: 10.5px; */
  margin-top: 2px;
  cursor: pointer;
  /* Ease all transitions */
  -webkit-transition: all 0.05s;
  -moz-transition: all 0.05s;
  -o-transition: all 0.05s;
  transition: all 0.05s;
  /*     border: 1px solid #000000; */
}
/* .portfolioelement:nth-child(4n+0) {
 margin-right: 0px;
} */

.portfolioelement:hover {
  opacity: 1 !important;
}

.portfolioimg {
  width: 100%;
  height: 100px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
  position: relative;
}
.animthumb_anim {
  width: 100%;
  height: 100px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
  position: relative;
  display: none;
}
.portfoliocaption {
  /*	display: none;
	position: absolute;
	bottom: 75px;
	left: 0px;
	width: 190px;
	background-image: url(https://www.maasboel.com/themes/nicolaibruel/images/opaque_bg.png);
	color: #FFF;
	padding-top: 15px;
	padding-bottom: 15px;
	padding-right: 20px;
	padding-left: 20px;
	text-align: left;
	font-size: 14px;
	text-align: center;
	word-wrap: break-word; */
  /*display: none;*/
  font-family: "Quicksand", sans-serif;
  position: absolute;
  bottom: 0px;
  left: 0px;
  background-color: transparent;
  color: #fff;
  padding-left: 10px;
  padding-bottom: 10px;
  text-transform: uppercase;
  text-align: left;
  font-size: 12px;
  word-wrap: break-word;
}

.portfoliocaption p {
  margin: 0;
  padding: 0;
}
.name-caption {
  font-size: 28px;
  line-height: 28px;
}
.director-caption {
  font-size: 15px;
  line-height: 18px;
}

/*
.portfoliocaption.full-wrap {

	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 190px;
	background-color: initial;
	background-image: url(https://www.maasboel.com/themes/nicolaibruel/images/opaque_bg.png);
	color: #fff;
	padding-top: 115px;
	padding-bottom: 115px;
	padding-right: 20px;
	padding-left: 20px;
}
*/

.byline,
.byline a {
  font-weight: normal;
  font-size: 14px;
  color: #b2b2b2;
}

#playerwrapper {
  position: relative;
  height: 542px;
  overflow: hidden;
  margin-top: 2px;
}

#vimeo_player {
  margin: 20px;
  max-width: 720px;
}

#vimeo_player iframe {
  width: 1104px;
  height: 621px;
}

#playerwrapper iframe {
  max-width: 100% !important;
}

#playercaption {
  font-size: 11px;
  /*  font-weight: bold; */
}

#playerframe {
  /* border: 1px solid #000000; */
  width: 100%;
  height: 414px;
}
#playerframe.square {
  height: 534px;
}

#share {
  position: absolute;
  right: 0px;
  top: 10px;
  list-style: none;
  margin: 0px;
  padding: 0px;
}
#share li {
  float: right;
}
#share li a {
  display: block;
  float: right;
  width: 19px;
  height: 19px;
  margin: 0 0 0 9px;
  cursor: pointer;
}
#share li a:hover {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
  -moz-opacity: 0.9;
  -khtml-opacity: 0.9;
  opacity: 0.9;
}

#share li a.facebook {
  background: url(https://www.maasboel.com/themes/nicolaibruel//images/share_glyph.png) no-repeat 0px 0px;
}
#share li a.vimeo {
  background: url(https://www.maasboel.com/themes/nicolaibruel//images/share_glyph.png) no-repeat -19px 0px;
}
#share li a.twitter {
  background: url(https://www.maasboel.com/themes/nicolaibruel//images/share_glyph.png) no-repeat -38px 0px;
}

#share #txt_share {
  text-align: right;
}

/* Contact picture */
#maasboel-contact-container {
  margin-top: 2px;
  /* margin-bottom: 150px; */
  height: 520px;
  /* width: 100%; */
  /*background: url(https://www.maasboel.com/themes/nicolaibruel//images/maasboel.png) no-repeat; */
  background-position-x: -110px;
}

#maasboel-contact-container #message-container {
  /* width: 50%; */
  margin-left: 50%;
  /* height: 100%; */
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
  background-color: white;
  opacity: 0.9;
}

#maasboel-contact-container #message-container #message {
  font-family: "Quicksand", sans-serif;
  width: 80%;
}

#message h1 {
  font-size: 18px;
}

#message h2 {
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 5px;
}

#message p {
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
  margin-bottom: 0px;
  text-align: justify;
}

#message span {
  font-size: 14px;
  font-weight: 300;
}

/* Gallery images */
#gallery_images_wrap {
  position: relative;
  width: 100%;
  height: 430px;
  clear: both;
  overflow: hidden;
  margin-top: 5px;
  border: 1px solid #000000;
}
.galleryimage {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0px;
  left: 0px;
}

/* Grid for Contact page */
.contact-grid {
  position: relative;
  width: 960px;
}
.contact-grid .cell-1 {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 310px;
}
.contact-grid .cell-2 {
  position: absolute;
  left: 325px;
  top: 0px;
  width: 310px;
}
.contact-grid .cell-3 {
  position: absolute;
  left: 650px;
  top: 0px;
  width: 310px;
}

/* 2022 SITE STYLINGS */

#maasboel-contact-container {
  height: auto;
  margin-top: 10px;
}

#message-container {
  background-color: #e5e5e5 !important;
  padding: 100px 0;
}

#message {
  margin: 0 10px;
}

#message div:nth-child(2) {
  margin-top: 40px;
}

@media only screen and (min-width: 760px) {
  #message-container {
    display: flex;
    align-items: center;
  }

  #message {
    display: flex;
    justify-content: space-between;
    max-width: 700px;
  }
  #message div:nth-child(2) {
    margin-top: 0px;
  }
}

.portfolioelement {
  margin-top: 10px;
  height: 45vw;
  max-height: 324px;
  background-color: #e5e5e5;
}

.portfolioimg {
  height: 100%;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  overflow: hidden;
}

#playerwrapper {
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
#playerwrapper:not(.show) {
  pointer-events: none;
}

#playerwrapper.show {
  opacity: 1;
}

#maasboel-contact-container {
  background: none !important;
}
#maasboel-contact-container #message-container {
  margin-left: 0;
  align-items: flex-start;
}

@media only screen and (min-width: 1000px) {
  #vimeo_player {
    margin: 25px;
    max-width: none;
  }

  #wrapper {
    width: 1350px;
  }
  #masthead {
    margin-left: 25px;
    margin-right: 25px;
  }
  #videowrapper {
    margin: 0 25px;
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    grid-auto-rows: 7vw;
    gap: 10px;
    grid-auto-flow: row;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-9) {
    grid-column-start: 1;
    grid-column-end: 13;
    grid-row: span 4;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-8) {
    grid-column-start: 13;
    grid-column-end: 19;
    grid-row: span 2;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-7) {
    grid-column-start: 13;
    grid-column-end: 19;
    grid-row: span 2;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-6) {
    grid-column-start: 1;
    grid-column-end: 10;
    grid-row: span 3;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-5) {
    grid-column-start: 10;
    grid-column-end: 19;
    grid-row: span 3;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-4) {
    grid-column-start: 1;
    grid-column-end: 7;
    grid-row: span 2;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-3) {
    grid-column-start: 7;
    grid-column-end: 19;
    grid-row: span 4;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-2) {
    grid-column-start: 1;
    grid-column-end: 7;
    grid-row: span 2;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n-1) {
    grid-column-start: 1;
    grid-column-end: 10;
    grid-row: span 3;
  }
  #videowrapper > .portfolioelement:nth-of-type(10n) {
    grid-column-start: 10;
    grid-column-end: 19;
    grid-row: span 3;
  }

  #maasboel-contact-container {
    margin: 10px 25px 0 25px;
  }

  .portfolioelement {
    margin: 0;
    max-height: none;
    height: 100%;
  }

  .portfolioimg {
    width: 100%;
    height: 100%;
  }

  .portfoliocaption {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    padding: 0;
    opacity: 0;
    background: rgba(255, 255, 255, 0.3);
    transition: opacity 0.3s ease-in-out;
  }

  .portfolioelement:hover .portfoliocaption {
    opacity: 1;
  }

  #maasboel-contact-container #message-container {
    opacity: 1;
  }
}
@media only screen and (min-width: 1400px) {
  #videowrapper {
    grid-auto-rows: 94.5px;
  }
}
