
html.cakebox-active,
.cakebox-active body { height: 100%; }

.cakebox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background-color: rgba(0,0,0,0.6);
  z-index: 99; }

.cakebox-content-wrap {
  display: none;
  position: fixed;
  top: 10%;
  left: 0;
  width: 100%;
  z-index: 100; }

.cakebox-head {
  position: relative;
  text-align: right;
  z-index: 10;
  width: 75px;
  margin: 0 10px 0 0;
  float: right;
  padding: 5px 0; }

.cakebox-close {
  text-decoration: none;
  line-height: 1; }

.cakebox-close .icon {
  display: inline-block;
  margin-left: 0.3em;
  padding: 0.01em 0.2em;
  color: #9c9c9c;
  border: 1px solid #9c9c9c;
  vertical-align: text-top; }

.cakebox-close:hover .icon {
  color: #fff;
  background-color: #9c9c9c; }

.cakebox-content {
  position: relative;
  display: block;
  width: auto;
  margin: 0 5%;
  text-align: center;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.6);
  overflow: hidden; }


.cakebox-content-inner {
  margin: 10px 10px 0 10px;
  line-height: 0; }

.cakebox-content .inner img {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 50%;
  max-height: 100%;
  vertical-align: top; }

.cakebox-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5; }

.cakebox-nav a {
  display: block;
  position: absolute;
  height: 100%;
  width: 15%;
  top: 0;
  line-height: 1;
  text-decoration: none; }

.cakebox-nav a:hover { text-decoration: underline; }

.cakebox-nav .next,
.cakebox-nav .prev {
  text-align: center;
  width: 75px;
  height: 75px;
  background: #ccc;
  position: absolute;
  top: 40%;
  border: 1px #fff solid;
  border-radius: 10px;
  opacity: 0.35;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=35);
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=35);
  filter:alpha(opacity=35);
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.3); }
  
.cakebox-nav .next:hover,
.cakebox-nav .prev:hover {
  background: #666;
  opacity: 0.90;
  -ms-filter:"progid:DXImageTransform.Microsoft.Alpha"(Opacity=90);
  filter: progid:DXImageTransform.Microsoft.Alpha(opacity=90);
  filter:alpha(opacity=90); }
  
.cakebox-nav .prev { left: 10px; }

.cakebox-nav .next { right: 10px; }

.cakebox-nav a .link {
  display: block;
  font-size: 1.3em;
  font-weight: bold;
  letter-spacing: -2px; }

.cakebox-nav a:hover { text-decoration: none; }

.cakebox-nav .next .link,
.cakebox-nav .prev .link {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
  color: #fff; }
