/* Custom CSS (this was in Fabrik's "custom code" box).
   Tile colours now come from each project's `color:` setting instead of nth-child rules. */
@media screen and (max-width: 680px) {
  .overlay strong, .overlay em{
    font-size: 2.5rem;
    letter-spacing: -0.1rem;
    }
}
.media-grid li a { margin: 0px;}
  .media-grid li { width: 100%;
    position: relative;
    margin-bottom: 0;
}
  #dimmer.open {
  position: fixed;
  background-color: rgba(255, 51, 84, 1);
}
.video-playing #dimmer {
  position: fixed;
  background-color: rgba(255, 51, 84, 1);
}
  @media (hover: hover) {
  .overlay {
    opacity: 0;
    width: auto;
    text-align: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 4.5rem;
    position: absolute;
    background: rgba(255, 51, 84, 1);
    -moz-transition: opacity 0.25s ease-in-out;
    -webkit-transition: opacity 0.25s ease-in-out;
    -o-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
    font-size: 0;
  }
      .menu .active {
    text-decoration: none;
    color: #ff3354;
}
  }
    @media all and (min-width: 1200px) {
  .spotlight-placeholder {
    display: block;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .spotlight-placeholder div.project-link {
    background-color: #e3e3e3;
  }
  .spotlight-placeholder div.project-link a {
    margin: 0;
  }
  .spotlight-4\:3:before {
    padding-top: 75%;
  }
  .spotlight-16\:9:before {
    padding-top: 56.25%;
  }
  .spotlight-3\:2:before {
    padding-top: 66.666666667%;
  }
  .spotlight-1\:1:before {
    padding-top: 100%;
  }
  .spotlight-21\:9:before {
    padding-top: 42.85%;
  }
}
@media all and (min-width: 1200px) and (hover: hover) {
  
  .spotlight-placeholder:not(.spotlight-0) {
    position: relative;
  }
  .spotlight-placeholder:not(.spotlight-0):before {
    display: block;
    content: "";
  }
  .spotlight-placeholder:not(.spotlight-0) .placeholder {
    display: flex;
    width: 100%;
    height: 100%;
  }
  .spotlight-placeholder:not(.spotlight-0) .placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    -moz-object-fit: cover;
    -webkit-object-fit: cover;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .spotlight-placeholder:not(.spotlight-0) .project-link {
    margin: 0;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
  }
}
.container-wrap {
  padding: 0 3.2rem;
  margin-bottom: 3.2rem;
}
.col {
  position: relative;
  min-height: 1px;
  padding: 0 0.4rem 0.8rem;
  display: inline-block;
  vertical-align: top;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */
  box-sizing: border-box;
  /* Opera/IE 8+ */

}


.mc_mailbox {
  background-color: #fff;
  display:block;
}
.mc_mailbox :hover {
    background-color: #ff3354;
}

.mc_mailbox_button {
  margin-top: 3rem;
  display: inline-block;
  border-radius: 4px;
  background-color: #000;
  border: none;
  color: #fff;
  text-align: center;
  font-family: europa;
  font-size: 1.8rem;
  padding: 1.6rem 3.2rem 1.9rem;
  letter-spacing: -0.02rem;
  width: auto;
  transition: all 0.1s;
  cursor: pointer;
}

.mc_mailbox_button span {
font-size:15px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.2s;
}

.mc_mailbox_button:hover {
  color: #fff;
  background-color: #ff3354;
  transition: 0.2s;
}
  
  .mc-icon {
  fill: #000;
}
.mc-icon:hover {
  fill: #ff3354;
}

.mc-icon-wrapper {
  display:block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mc-icon-mainwrapper {
  overflow: hidden;
  display: inline-block;
  position:relative;
  padding: 0px 0px;
  cursor: pointer;
  text-decoration: none;
  width: 25px;
  height: 25px;
  margin: 0 0 0 12px;

}
.filler {
  -webkit-transform: scale(2);
  -moz-transform: scale(2);
  -ms-transform: scale(2);
  -o-transform: scale(2);
  transform: scale(2);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display:block;
}
.social-icons{
  display: block;
  margin-bottom: 5rem;
  margin-right: 2.8rem;
  text-align:right;
}
@media all and (min-width: 1200px) {
  .spotlight-placeholder {
    display: block;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }
  .spotlight-placeholder div.project-link {
    background-color: #e3e3e3;
  }
  .spotlight-placeholder div.project-link a {
    margin: 0;
  }
  .spotlight-4\:3:before {
    padding-top: 75%;
  }
  .spotlight-16\:9:before {
    padding-top: 56.25%;
  }
  .spotlight-3\:2:before {
    padding-top: 66.666666667%;
  }
  .spotlight-1\:1:before {
    padding-top: 100%;
  }
  .spotlight-21\:9:before {
    padding-top: 42.85%;
  }
}
@media all and (min-width: 1200px) and (hover: hover) {
  .spotlight-placeholder:not(.spotlight-0) {
    position: relative;
  }
  .spotlight-placeholder:not(.spotlight-0):before {
    display: block;
    content: "";
  }
  .spotlight-placeholder:not(.spotlight-0) .placeholder {
    display: flex;
    width: 100%;
    height: 100%;
  }
  .spotlight-placeholder:not(.spotlight-0) .placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    -moz-object-fit: cover;
    -webkit-object-fit: cover;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .spotlight-placeholder:not(.spotlight-0) .project-link {
    margin: 0;
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
  }
}
@media all and (min-width: 992px) {
  .media-grid.media-grid--block {
    margin: 0 -8px 1.6rem;
  }
}
@media all and (min-width: 1200px) {
  .media-grid.media-grid--block:not(.masonry) li.spotlight-16\:9:nth-child(6n+6) {
    margin-top: -18.75%;
  }
  .media-grid.media-grid--block:not(.masonry) li.spotlight-3\:2:nth-child(6n+6) {
    margin-top: -22.25%;
  }
  .media-grid.media-grid--block:not(.masonry) li.spotlight-4\:3:nth-child(6n+6) {
    margin-top: -25%;
  }
  .media-grid.media-grid--block:not(.masonry) li.spotlight-1\:1:nth-child(6n+6) {
    margin-top: 0%;
  }
  .media-grid.media-grid--block:not(.masonry) li.spotlight-21\:9:nth-child(6n+6) {
    margin-top: -14.28%;
  }
  .media-grid.media-grid--featuredblock:not(.masonry) li.spotlight-16\:9:nth-child(6n+7) {
    margin-top: -18.75%;
  }
  .media-grid.media-grid--featuredblock:not(.masonry) li.spotlight-3\:2:nth-child(6n+7) {
    margin-top: -22.25%;
  }
  .media-grid.media-grid--featuredblock:not(.masonry) li.spotlight-4\:3:nth-child(6n+7) {
    margin-top: -25%;
  }
  .media-grid.media-grid--featuredblock:not(.masonry) li.spotlight-1\:1:nth-child(6n+7) {
    margin-top: 0%;
  }
  .media-grid.media-grid--featuredblock:not(.masonry) li.spotlight-21\:9:nth-child(6n+7) {
    margin-top: -14.28%;
  }
}
@media screen and (min-width: 640px) {
  .main-footer-upper p {
    max-width: 50%;
    margin: 0 auto;
  }
}
@media screen and (min-width: 1024px) {
  .main-footer-upper p {
    max-width: 33.333333333%;
  }
}
@media screen and (min-width: 1280px) {
  .main-footer-upper p {
    max-width: 25%;
  }
}
.media-grid {
  padding: 0;
  list-style: none;
  margin: 0 0 2.4rem;
}
.media-grid li {
  width: 100%;
  position: relative;
  margin-bottom: 16px;
}
@media screen and (min-width: 681px) {
  .media-grid {
    margin: -8px -8px 3.2rem;
  }
  .media-grid li {
    float: left;
    width: 50%;
    margin-bottom: 0;
  }
  .media-grid li a {
    margin: 8px;
  }
}
@media screen and (max-width: 680px) {
  .media-grid.media-grid--small li {
    width: 50%;
    float: left;
  }
  .media-grid.media-grid--small li:nth-child(2n+3) {
    clear: left;
  }
}
@media screen and (min-width: 681px) and (max-width: 991px) {
  .media-grid.media-grid--small li {
    width: 33.333333333%;
  }
  .media-grid.media-grid--small li:nth-child(3n+4) {
    clear: left;
  }
  .media-grid.media-grid--medium li,
  .media-grid.media-grid--large li {
    width: 50%;
  }
  .media-grid.media-grid--medium li:nth-child(2n+3),
  .media-grid.media-grid--large li:nth-child(2n+3) {
    clear: left;
  }
}
@media screen and (min-width: 681px) and (max-width: 1199px) {
  .media-grid.media-grid--block li {
    width: 100%;
  }
  .media-grid.media-grid--block li:nth-child(3n+2),
  .media-grid.media-grid--block li:nth-child(3n+3) {
    width: 50%;
  }
}
@media screen and (min-width: 992px) {
  .media-grid li {
    width: 33.333333333%;
    text-align: center;
    margin: 0;
  }
  .media-grid.media-grid--small li {
    width: 25%;
  }
  .media-grid.media-grid--large li {
    width: 50%;
  }
  .project-media .capped .media-grid--block {
    margin: -8px -8px 0;
  }
}
@media screen and (min-width: 1200px) {
  .media-grid.media-grid--small li {
    width: 20%;
  }
  .media-grid.media-grid--large li {
    width: 33.333333333%;
  }
  .media-grid.media-grid--medium li {
    width: 25%;
  }
  .media-grid.media-grid--block li {
    width: 33.333333333%;
  }
  .media-grid.media-grid--block li:nth-child(3n+2),
  .media-grid.media-grid--block li:nth-child(3n+3) {
    width: 33.333333333%;
  }
  .media-grid.media-grid--block li:nth-child(6n+1),
  .media-grid.media-grid--block li:nth-child(6n+4),
  .media-grid.media-grid--block li:nth-child(6n+5) {
    clear: none;
  }
  .media-grid.media-grid--block li:nth-child(6n+1),
  .media-grid.media-grid--block li:nth-child(6n+6) {
    width: 33.333333333%;
  }
}
@media screen and (min-width: 1824px) {
  .media-grid.media-grid--small li {
    width: 12.5%;
  }
  .media-grid.media-grid--medium li {
    width: 20%;
  }
  .media-grid.media-grid--large li {
    width: 25%;
  }
}

/* Video players at the top of project pages: full width, 16:9 (Fabrik used to size these with a script) */
.media-video .embed iframe.fabrik-embed { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
