/* misc content modules */
.cm {
  margin-left: 16px;
  margin-right: 16px;
}
.richtext {
  color: #010101;
}
.richtext img {
  max-width: 100%;
}
.richtext.richtext-style-2 {
  padding: 16px 16px 8px 16px;
  margin: 16px 0 32px 0;
  background-color: #ff008c;
  color: #ffffff;
  border-radius: 5px;
}
.richtext.richtext-style-2 .btn {
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: #ff008c;
  padding: 8px 12px 4px 12px;
}

/* content modules */
.cm_startpic {
  margin-bottom: 32px;
}
.cm_startpic .img-canvas {
  position: relative;
}
.cm_startpic img {
  width: 100%;
  border-radius: 5px;
}
.cm_startpic .gradient-canvas {
  border-radius: 0 0 5px 5px;
}


.cm_richtext_1 {
  margin-bottom: 32px;
}

.cm_richtext_2 {
  margin-bottom: 32px;
}

.cm_press_release_view .press-release-preview {
  background-color: #ffffff;
  padding: 16px 0;
  margin: 0 0 20px 0;
}
.cm_press_release_view a {
  text-decoration: none;
}

ul.merchant-cat-filter {
  list-style-type:none;
  margin: 2px 0 0 0;
  padding: 0;
}

ul.merchant-cat-filter li {
  padding: 8px 8px 4px 8px;
  margin: 0 12px 12px 0;
  display: inline-block;
  font-family: 'nippon_connectionbold';
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 15px;
  background-color: #ffffff;
  color: #ff008c;
  border-radius: 5px;
  cursor:pointer;
}
ul.merchant-cat-filter li.selected,
ul.merchant-cat-filter li:hover {
  color: #ffffff;
  background-color: #ff008c;
}
ul.merchant-cat-filter li:last-child {
  margin-right: 0;
}

.merchant-slot {
  display: block;
  margin-bottom: 24px;
}
.merchant-slot h4 {
  margin-bottom: 0;
}
.merchant-slot img {
  margin-bottom: 8px;
}


.cm_merchants_slider.merchant-random a,
a.merchant-slot,
a.merchant-product {
  text-decoration: none;
}
.cm_merchants_slider.merchant-random a img,
a.merchant-slot img,
a.merchant-product img {
  border-radius: 5px;
}

.cm.merchant .merchant-info-box {
  padding: 16px 16px 8px 16px;
  margin-bottom: 16px;
  background-color: #ebebef;
  border-radius: 5px;
}
.merchant-info-box p {
  font-size: 14px;
}
.merchant-info-box .merchant-logo {
  padding-bottom: 16px;
  width: 100%;
  text-align: center;
}
.merchant-info-box .merchant-logo img {
  width: 120px;
  height: 120px;;
}
.merchant-info-box .sign-flex {
  text-decoration: none;
  display: flex;
}
.merchant-info-box .sign-flex p {
  min-width: 32px;
}

.cm_iframe {
  margin-bottom: 32px;
}

.cm_html {
  margin-bottom: 32px;
}
.cm_html .the-html {
  overflow:hidden;
}

.cm_newsletter_subscription {
  background-color: #010101;
  color: #ffffff;
  border-radius: 5px;
  padding: 40px 0;
  margin-bottom: 32px;
}
.cm_newsletter_subscription form {
  margin: 16px 0;
}
.cm_newsletter_subscription .btn {
  background-color: #ff008c;
  border: none;
  color: #ffffff;
  font-family: 'nippon_connectionbold';
  padding: 8px 12px 4px 12px;
}
.cm_newsletter_subscription .btn:hover {
  background-color: #f8f8fb;
  border: none;
  color: #ff008c;
}

.cm_sponsors {
  padding-top: 32px;
  padding-bottom: 32px;
}
.cm_sponsors h3 {
  margin-bottom: 32px;
}
.cm_sponsors p {
  margin: 0;
}
.cm_sponsors a {
  cursor: pointer;
  font-size: 16px;
  color: #010101;
}
.cm_sponsors a:hover {
  color: #ff008c;
}
.cm_sponsors button {
  display:none;
}
.cm_sponsors .sponsor-img {
  padding: 0 15px;
}
.cm_sponsors .sponsor-img .img-canvas {
  width: 100%;
  padding-bottom: 100%; /* 1x1 aspect ratio */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.cm_sponsors .white-spot {
  border-radius: 50%;
  background-color: white;
  padding: 5px;
}

/* special teaser styles for special columned teasers */
.cm_teaser_1 .teaser-style-2 .teaser-canvas .text-canvas {
  text-align: center;
  top: 0px;
  background-color: #ffffff;
  width: 100%;
  padding: 16px 0 8px 0;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 0 0 5px 5px;
}
.cm_teaser_1 .teaser-style-2 .teaser-controls {
  bottom: 178px;
}
.cm_teaser_1 .teaser-style-3 .teaser-canvas .img-canvas .the-img {
  height:59%; /* round picture to 16x9 aspect ratio when 33% width */
  top: 5%;
}
.cm_teaser_1 .teaser-style-3 .text-canvas {
  top: 66.666%;
}


.cm_teaser_2 .teaser-canvas .img-canvas {
  padding-bottom: 75%; /* 4x3 aspect ratio */
}
.cm_teaser_2 .teaser-canvas .img-canvas {
  border-radius: 5px 5px 5px 5px;
}
.cm_teaser_2 .teaser-canvas .img-canvas .gradient-canvas {
  border-radius: 0 0 5px 5px;
}
.cm_teaser_2 .teaser-style-2 .teaser-canvas .img-canvas {
  border-radius: 5px 5px 0 0;
}
.cm_teaser_2 .teaser-style-2 .teaser-canvas .img-canvas .gradient-canvas {
  border-radius: 0 0 0 0;
}
.cm_teaser_2 .teaser-style-2 .teaser-canvas .text-canvas {
  justify-content: start;
  height: 160px;
  background-color: #ffffff;
  border-radius: 0 0 5px 5px;
}
.cm_teaser_2 .teaser-style-2 .teaser-canvas .text-canvas .richtext {
  width: 100%;
}
.cm_teaser_2 .teaser-style-2 .teaser-controls {
  bottom: 168px;
}
.cm_teaser_2 .teaser-style-3 .teaser-canvas .img-canvas .the-img {
  height:44%; /* round picture to 4x3 aspect ratio when 33% width */
}
.cm_teaser_2 .teaser-style-3 .text-canvas {
  top: 60%;
}

.cm_teaser_3 .teaser-canvas .img-canvas {
  padding-bottom: 66.66666666666%; /* 3x2 aspect ratio */
  border-radius: 5px 5px 5px 5px;
}
.cm_teaser_3 .teaser-canvas .img-canvas .gradient-canvas {
  border-radius: 0 0 5px 5px;
}
.cm_teaser_3 .teaser-style-2 .teaser-canvas .img-canvas {
  border-radius: 5px 5px 0 0;
}
.cm_teaser_3 .teaser-style-2 .teaser-canvas .img-canvas .gradient-canvas {
  border-radius: 0 0 0 0;
}
.cm_teaser_3 .teaser-style-2 .teaser-canvas .text-canvas {
  justify-content: start;
  height: 160px;
  background-color: #ffffff;
  border-radius: 0 0 5px 5px;
}
.cm_teaser_3 .teaser-style-2 .teaser-canvas .text-canvas .richtext {
  width: 100%;
}
.cm_teaser_3 .teaser-style-2 .teaser-controls {
  bottom: 168px;
}


.cm_thumbnails_lightbox {
  margin-bottom: 32px;
}
.cm_thumbnails_lightbox a {
  cursor: pointer;
}
.cm_thumbnails_lightbox .thumb-canvas {
  margin-bottom: 32px;
  position: relative;
}
.cm_thumbnails_lightbox .thumb-img {
  width: 100%;
  padding-bottom: 100%; /* 1x1 aspect ratio */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 5px;
}
.cm_thumbnails_lightbox .white-spot {
  border-radius: 50%;
  background-color: white;
}
.cm_thumbnails_lightbox .white-spot:not(.thumb-img) {
  padding: 5px;
}

.cm_thumbnails_lightbox .thumb-description {
  position: absolute;
  width: 100%;
  bottom: 8px
}
.cm_thumbnails_lightbox .thumb-description p {
  margin: 0 8px;
  background-color: #f8f8fb;
  color: #010101;
  font-size: 10px;
}

.lightbox {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
}
.lightbox.show {
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.lightbox-close .close-all-lightboxes.btn {
  color: #010101;
  background-color: #fff;
  border-color: #fff;
}
.lightbox-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 133px;
}
.lightbox-logo img {
  width: 100%;
}
.lightbox-canvas {
  height: 100%;
  width: 100%;
  padding: 128px 16px 32px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  color: #010101;
}
.lightbox-canvas-iframe {
  padding: 20% 5% 10% 5%;
}

.lightbox .lightbox-img {
  background-color: rgb(248, 248, 251);
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.lightbox-description {
  position: absolute;
  width: 100%;
  bottom: 0;
  color: #010101;
}

/* yii contents */

/* Filter boxes consisting of h1 and search*/
.cm-event-list h1,
.cm-event-tiles h1,
.cm-film-list h1,
.cm-person-list h1,
.cm-merchant-list h1 {
  color: #010101;
  text-align: center;
  margin: 0;
  padding: 32px 0;
  border-radius: 5px 5px 0 0;
  background-color: #ffffff;
}

.cm-event-list .search,
.cm-event-tiles .search,
.cm-film-list .search,
.cm-person-list .search,
.cm-merchant-list .search {
  border-color: #010101;
  color: #010101;
  padding: 0 16px 16px 16px;
  border-radius: 0 0 5px 5px;
  margin-bottom: 32px;
  background-color: #ffffff;
}

.cm-event-list .grid-view,
.cm-film-list .grid-view {
  overflow-x: auto;
}

.cm-merchant-list {
  padding: 0
}

.cm-merchant-list p {
  margin-bottom: 0;
  padding: 0 16px 32px 16px;
  background-color: #ffffff;
}
.cm-merchant-list .search {
  padding: 0 16px 16px 16px;
}
.cm-merchant-list .search .btn {
  margin: 0;
  display: block;
  width: 100%;
}

.cm-event-tiles .btn {
  display: block;
  width: 100%;
}

.cm-film-detail {
  padding: 0 0 48px 0;
  color: #010101;
}
.cm-film-detail .directors {
  margin-top: 48px;
}
.cm-film-detail .staging {
  margin-top: 4px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #010101;
}
.cm-film-detail .staging .btn {
  width: 100%;
}
.cm-film-detail .staging:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.cm-film-detail .embed-responsive {
  margin-top: 48px;
}
.cm-film-detail .facts {
  margin-top: 64px;
}
.cm-film-detail .facts p {
  margin-bottom: 24px;
  font-size: 14px;
}
.cm-film-detail img {
  max-width: 84px;
}
.cm-film-detail img.laurel {
  max-width: 100px;
}

.cm-coops {
  margin-top: 64px;
  background-color: #e6e6eb;
  padding: 20px 0 40px 0;
  border-radius: 5px;
}
.cm-coops p {
  color: #010101;
  margin-bottom: 20px;
  padding: 0 20%;
}
.cm-coops .coop-logo {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.cm-coops .coop-logo img {
  max-width: 100%;
  padding: 15px 20px;
}

.cm_merchant_teaser .teaser-canvas .img-canvas {
  width: 60%;
  padding-bottom: 33.75%;
  margin-left: 40%;
  border-radius: 0 5px 5px 0;
}
.cm_merchant_teaser .teaser-canvas .img-canvas .gradient-canvas {
  border-radius: 0 0 5px 0;
}
.cm_merchant_teaser .teaser-canvas .text-canvas {
  width: 40%;
  padding: 0 0 0 16px;
  background-color: #ff008c;
  border-radius: 5px 0 0 5px;
}
.cm_merchant_teaser .teaser-canvas .text-canvas h2 {
  margin-top: 0;
}
.event-merchant img {
  border-radius: 5px 5px 0 0;
}

.cm-section-head {
  margin-bottom: 32px;
}

/* new yii tiles */
.cm-new-tiles .event-list {
  display: block;
}
.cm-new-tiles .event-list > div{
  width: 100%;
  margin: 0;
}
.cm-new-tiles .new-tile {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 0 15px;
  border-radius: 5px;
}
.cm-new-tiles .new-tile a {
  text-decoration:none;
}
.cm-new-tiles .tile-img-canvas {
  position:relative;
}
.cm-new-tiles .tile-img-canvas .sign {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  font-family: 'nippon_connectionbold';
  color: #010101;
  font-size: 14px;
  line-height: 23px;
  text-align: center;
  border-radius: 50%;
}
.cm-new-tiles .new-tile img {
  width: 100%;
}
.cm-new-tiles .new-tile h2 {
  margin: 0;
  font-size: 18px;
}
.cm-new-tiles .new-tile h4 {
  margin: 8px 0 0 0;
}

/* yii tabbed search */
ul.nav-tabs {
  border-bottom: 1px solid #fff;
}
.nav-tabs .nav-link {
  background-color: #ebebef;
  color: #ff008c;
  font-family: "nippon_connectionbold";
  text-decoration: none;
  padding: 12px 15px 8px 15px;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-link:hover {
  color: #ff008c;
  background-color: #fff;
  border-color: #fff;
}
.cm-archive-list h1 {
  border-radius: 0;
}
.cm-archive-list .btn {
  width: 100%;
}



/* from mobile landscape */
@media (min-width: 576px) {
  .teaser-canvas .text-canvas p {
    display: block; /* do not show text on mobile */
  }

  .cm_teaser_1 .teaser-style-2 .teaser-canvas .text-canvas {
    top: -32px;
    width: 75%;
    height: 190px;
    padding: 0;
    border-radius: 5px;
  }

  .cm-new-tiles .new-tile .center-inset {
    margin: 0 16px;
  }
  .cm-new-tiles .new-tile .right-inset {
    margin-left: 16px;
  }

  .cm-new-tiles .new-tile img {
    border-radius: 5px 0 0 5px;
  }
}

/* from tablet portrait */
@media (min-width: 768px) {
  .cm_teaser_1 .teaser-style-2 .teaser-canvas .text-canvas {
    top: -32px;
    height: 190px;
  }

  .cm_press_release_view .press-release-preview .inset-left {
    padding-left: 16px;
  }
  .cm_press_release_view .press-release-preview .inset-right {
    padding-right: 16px;
  }
  .cm_merchant_teaser .teaser-canvas .text-canvas {
    padding: 0 0 0 64px;
  }
  .press_release img {
    position: relative;
    display: block;
    width: 75%;
    margin: 64px 12.5%;
  }
}

/* DESKTOP */
@media (min-width: 992px) {
  .cm {
    margin-left: 42px;
    margin-right: 42px;
  }

  .richtext.bigger p {
    font-size: 18px;
  }

  .cm_richtext_1 .top-down-centered {
    display: flex;
    min-height: 50%;
    height: 100%;
    max-height: 75%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .cm_teaser_1 .img-canvas .gradient-canvas {
    border-radius: 0 0 5px 5px;
  }
  .cm_teaser_1 .teaser-style-2 .teaser-canvas .text-canvas {
    top: -64px;
    padding: 60px 0 0 0;
  }
  .cm_teaser_1 .teaser-style-2 .teaser-controls {
    bottom: 210px;
  }

  .merchant-info-box {
    margin-top: 32px;
  }
  .merchant-info-box .merchant-logo {
    margin-top:-68px;
  }

  .cm-film-detail {
    padding: 0 32px 48px 32px;
  }

  /* press releases vie and press release detail page specials for desktop*/
  .cm_press_release_view p {
    font-size: 18px;
  }
  .press_release p {
    font-size: 18px;
  }

  .lightbox-canvas-iframe {
    padding: 20%;
  }

  .lightbox-logo {
    left: 42px;
  }

  /* yii contents */
  .cm-event-list .search,
  .cm-event-tiles .search,
  .cm-film-list .search,
  .cm-person-list .search {
    padding: 0 16px 16px 16px;
  }

  .cm-section-head .richtext {
    text-align: center;
    padding: 0 10%;
  }

  .cm-new-tiles .new-tile .right-inset {
    margin-top: 16px;
  }
  .cm-new-tiles .new-tile h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .cm-new-tiles .new-tile h4 {
    margin: 16px 0 8px 0;
  }

}
