/* Adapted from the supplied Moscow dark demo. Original transition timings retained. */
.bl-main {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  width: 66.6666666667%;
  left: 33.3333333333% !important;
  padding: 0;
  margin: 0;
  top: 0;
}

.bl-main>section {
  position: absolute;
  width: calc(50% - 24px);
  height: calc(50% - 36px);
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}

.bl-main>section:nth-child(2) {
  top: 24px;
  left: 50%;
  background: var(--panel);
}

.bl-main>section:nth-child(3) {
  top: calc(50% + 12px);
  left: 0;
  background: var(--panel);
}

.bl-main>section:nth-child(4) {
  top: calc(50% + 12px);
  left: 50%;
  background: var(--panel);
}

.bl-box {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: default;
  opacity: 1;
}

.bl-main>section:not(.topleft) .bl-box {
  cursor: pointer;
}

.bl-box h2 {
  width: 100%;
  margin: 0 auto;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  z-index: 111;
}

.bl-main>section .bl-icon-close {
  position: absolute;
  top: 32px;
  right: 48px;
  width: 30px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

.bl-content,
div.bl-panel-items>div>div {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  overflow-y: auto;
}

.bl-content>div.container.page-title {
  margin-top: 50px;
}

.bl-main>section.bl-expand {
  width: calc(100% - 24px);
  height: calc(100% - 48px);
  top: 24px;
  left: 0;
  background: var(--panel);
}

.bl-main>section.bl-expand-top {
  z-index: 100;
}

.bl-main.bl-expand-item>section:not(.bl-expand):not(.topleft),
.bl-main.bl-expand-item>section.bl-scale-down {
  -webkit-transform: scale(0.5);
  -moz-transform: scale(0.5);
  -ms-transform: scale(0.5);
  transform: scale(0.5);
  opacity: 0;
}

section:not(.topleft) .bl-box {
  -webkit-transition: opacity 0.2s linear 0.5s;
  -moz-transition: opacity 0.2s linear 0.5s;
  transition: opacity 0.2s linear 0.5s;
}

section.bl-expand .bl-box {
  opacity: 0;
  -webkit-transition: opacity 0s linear;
  -moz-transition: opacity 0s linear;
  transition: opacity 0s linear;
}

.bl-content,
.bl-icon-close {
  -webkit-transition: opacity 0.1s linear 0s;
  -moz-transition: opacity 0.1s linear 0s;
  transition: opacity 0.1s linear 0s;
}

section.bl-expand .bl-content,
section.bl-expand .bl-icon-close {
  pointer-events: auto;
  opacity: 1;
  -webkit-transition: opacity 0.3s linear 0.5s;
  -moz-transition: opacity 0.3s linear 0.5s;
  transition: opacity 0.3s linear 0.5s;
}

