@media all and (min-width: 800px) {
  /* Give space around main area */
  .fancybox-custom-layout .fancybox-outer {
    top: 50px;
    left: 50px;
    bottom: 50px;
    right: 50px;
    margin: auto;
    max-width: 1024px;
    max-height: 495px;
    overflow: visible;
    background: #333;
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
    transition: opacity .3s;
  }
  /* Make it to fade-out while closing */
  .fancybox-custom-layout.fancybox-is-closing .fancybox-outer {
    opacity: 0;
  }
  .fancybox-custom-layout.fancybox-is-open .fancybox-bg {
    opacity: 1;
  }
  /* Move caption area to the right side */
  .fancybox-custom-layout .fancybox-caption-wrap {
    top: 0;
    right: 44px;
    bottom: 0;
    left: auto;
    width: 256px;
    padding: 0;
    background: #333;
    pointer-events: all;
    /* Make text selectable */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  /* Remove top border from the caption */
  .fancybox-custom-layout .fancybox-caption {
    padding: 30px 20px;
    border: 0;
  }
  /* Align buttons at the right side  */
  .fancybox-custom-layout .fancybox-toolbar {
    border-left: 1px solid #222;
  }
  /* Remove background from all buttons */
  .fancybox-custom-layout .fancybox-button,
  .fancybox-custom-layout .fancybox-navigation button:before {
    background: transparent;
  }
  /* Change arrow color */
  .fancybox-custom-layout .fancybox-navigation button {
    color: #333 !important;
    padding: 10px;
  }
  /* Reposition arrows */
  .fancybox-custom-layout .fancybox-button--arrow_left {
    left: -60px;
  }
  .fancybox-custom-layout .fancybox-button--arrow_right {
    right: -60px;
  }
  .fancybox-custom-layout.fancybox-show-thumbs .fancybox-button--arrow_right {
    right: -272px;
  }
}
/*

Animated message (from ajax example)

*/
/* Default styling */
#message {
  top: -200px;
  transition: all .5s;
}
/* When inside current slide */
.fancybox-slide--current #message {
  top: 0;
}
/* Different effect when fanyBox is closing; optional */
.fancybox-is-closing #message {
  top: 0;
  transform: scale(1.5);
}
/*

Advanced example - Customized layout

*/
@media all and (min-width: 600px) {
  /* Change color for backdrop */
  .fancybox-custom-layout .fancybox-bg {
    background: rgba(255, 255, 255, 0.7);
  }
  .fancybox-custom-layout.fancybox-is-open .fancybox-bg {
    opacity: 1;
  }
  /* Move caption area to the right side */
  .fancybox-custom-layout .fancybox-caption {
    background: #333;
    bottom: 0;
    left: auto;
    padding: 30px 20px;
    right: 44px;
    top: 0;
    width: 400px;
  }
  .fancybox-custom-layout .fancybox-caption h3 {
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
    margin: 0;
    font-weight: normal;
  }
  .fancybox-custom-layout .fancybox-caption a {
    color: #444;
  }
  /* Remove gradient from caption*/
  .fancybox-custom-layout .fancybox-caption::before {
    display: none;
  }
  /* Adjust content area position */
  .fancybox-custom-layout .fancybox-stage {
    right: 350px;
    padding-left: 50px;
  }
  /* Align buttons at the right side  */
  .fancybox-custom-layout .fancybox-toolbar {
    background: #3b3b45;
    bottom: 0;
    left: auto;
    right: 0;
    top: 0;
    width: 44px;
  }
  .fancybox-slide--image {
    padding: 0px 0px 0px 40px !important;
  }
  /* Remove background from all buttons */
  .fancybox-custom-layout .fancybox-button {
    background: transparent;
  }
  /* Navigation arrows */
  .fancybox-custom-layout .fancybox-navigation a {
    padding: 0;
  }
  .fancybox-custom-layout .fancybox-navigation a:not(.disabled) {
    /*color: #333;*/
  }
  /* Reposition right arrow */
  .fancybox-custom-layout .fancybox-button--arrow_right {
    right: 308px;
  }
}
/*

Advanced example - Morphing modal window

https://codepen.io/fancyapps/pen/rmwyXN

*/
.morphing-btn-wrap {
  display: inline-block;
  position: relative;
  text-align: center;
}
.morphing-btn {
  box-sizing: border-box;
  -webkit-transition: background .3s, color .2s .2s, width .2s 0s;
  -moz-transition: background .3s, color .2s .2s, width .2s 0s;
  -o-transition: background .3s, color .2s .2s, width .2s 0s;
  transition: color .3s .2s, width .2s 0s;
  white-space: nowrap;
}
.morphing-btn_circle {
  color: transparent !important;
  padding-left: 0;
  padding-right: 0;
  /* Override inline style rule */
  -webkit-transition: color .2s 0s, width .3s .2s;
  -moz-transition: color .2s 0s, width .3s .2s;
  -o-transition: color .2s 0s, width .3s .2s;
  transition: color .2s 0s, width .3s .2s;
  width: 35.6px !important;
}
.morphing-btn-clone {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #ff5268;
  border-radius: 50%;
  position: fixed;
  -webkit-transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  -moz-transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  -o-transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  transition: all 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: 3;
}
.morphing-btn-clone_visible {
  display: block;
  -webkit-transform: scale(1) !important;
  -moz-transform: scale(1) !important;
  -ms-transform: scale(1) !important;
  -o-transform: scale(1) !important;
  transform: scale(1) !important;
}
.fancybox-morphing .fancybox-bg {
  background: #ff5268;
  opacity: 1;
}
.fancybox-morphing .fancybox-toolbar {
  right: 40px;
  top: 20px;
}
.fancybox-morphing .fancybox-button--close {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  color: #fff;
}
.fancybox-morphing .fancybox-button--close:hover {
  background: rgba(0, 0, 0, 0.25);
}
/* Styling for element used in example */
#morphing-content {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: transparent;
  line-height: 2;
  margin: 0;
  padding: 6em 10vw;
  position: relative;
  z-index: 3;
}
#morphing-content * {
  color: #fff;
}
/*

Advanced example - Confirm dialog

https://codepen.io/fancyapps/pen/PmpePO

*/
.fc-container .fancybox-bg {
  background: #eee;
}
.fancybox-is-open.fc-container .fancybox-bg {
  opacity: .95;
}
.fc-content {
  box-shadow: 10px 10px 60px -25px;
  max-width: 550px;
}
/* Custom animation */
.fancybox-fx-material.fancybox-slide--previous,
.fancybox-fx-material.fancybox-slide--next {
  opacity: 0;
  transform: translateY(-60px) scale(1.1);
}
.fancybox-fx-material.fancybox-slide--current {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/*

Advanced example - Product quick view

*/
.quick-view-container {
  background: rgba(10, 10, 10, 0.85);
}
.quick-view-content {
  bottom: 0;
  height: calc(60%);
  left: 0;
  margin: auto;
  max-height: 650px;
  max-width: 980px;
  position: absolute;
  right: 0;
  top: 0;
  width: calc(60%);
}
.quick-view-carousel {
  background: #fff;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 57%;
}
.quick-view-carousel .fancybox-stage {
  bottom: 30px;
}
.quick-view-aside {
  background: #fff;
  bottom: 30px;
  color: #777;
  left: auto;
  padding: 50px 0 30px 0;
  position: absolute;
  right: 0;
  top: 30px;
  width: 43%;
}
.quick-view-aside::before,
.quick-view-aside::after {
  bottom: 0;
  content: '';
  left: 0;
  position: absolute;
  top: 0;
}
.quick-view-aside::before {
  background: #f4f4f4;
  width: 8px;
}
.quick-view-aside::after {
  background: #e9e9e9;
  width: 1px;
}
.quick-view-aside > div {
  height: 100%;
  overflow: auto;
  padding: 5vh 30px 0 30px;
  text-align: center;
}
.quick-view-aside > div > p {
  font-size: 90%;
}
.quick-view-close {
  background: #f0f0f0;
  border: 0;
  color: #222;
  cursor: pointer;
  font-family: Arial;
  font-size: 14px;
  height: 44px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  text-indent: -99999px;
  top: 30px;
  transition: all .2s;
  width: 44px;
}
.quick-view-close:hover {
  background: #e4e4e4;
}
.quick-view-close::before,
.quick-view-close::after {
  background-color: #222;
  content: '';
  height: 18px;
  left: 22px;
  position: absolute;
  top: 12px;
  width: 1px;
}
.quick-view-close:before {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.quick-view-close:after {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.quick-view-bullets {
  bottom: 0;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-align: center;
  width: 100%;
  z-index: 99999;
}
.quick-view-bullets li {
  display: inline-block;
  vertical-align: top;
}
.quick-view-bullets li a {
  display: block;
  height: 30px;
  position: relative;
  width: 20px;
}
.quick-view-bullets li a span {
  background: #d4d2d2;
  border-radius: 99px;
  height: 10px;
  left: 50%;
  overflow: hidden;
  position: absolute;
  text-indent: -99999px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
}
.quick-view-bullets li.active a span {
  background: #ff4453;
}
