// -------------------------
// fullscreen
// -------------------------
.fullscreen {
  position: fixed;
  z-index: 10000;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba($grey--darkest, 0.9);
  color: $grey;
  font-size: fontSize(1);
  @include fontPrimaryMedium;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  pointer-events: none;
  opacity: 0;
  transition: $easeOutQuart;
}

.app-fullscreen .fullscreen {
  opacity: 1;
  pointer-events: all;
}

// -------------------------
// fullscreen Image
// -------------------------

.fullscreen__image-container {
  position: absolute;
  z-index: 0;
  padding-top: 70px;
  padding-bottom: 70px;
  padding-left: 70px;
  padding-right: 70px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
 }
 
 .fullscreen__image {
   object-fit: contain;
   max-width: 100%;
   max-height: 100%;
 }

// -------------------------
// fullscreen - Elements
// -------------------------
.fullscreen__close,
.fullscreen__date,
.fullscreen__nav,
.fullscreen__actions,
.fullscreen__count {
  position: absolute;
  z-index: 1;
}

.fullscreen__close {
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  cursor: pointer;
}

.fullscreen__close-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  fill: $grey;
  transition: $easeOutQuart;
}

.fullscreen__close:hover .fullscreen__close-icon{
  fill: $grey--lightest;
}

.fullscreen__date {
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
}

.fullscreen__nav {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  display: inline-block;
  cursor: pointer;
}

.fullscreen__nav--right {
  left: auto;
  right: 24px;
}

.fullscreen__count {
  bottom: 30px;
  right: 24px;
}

.fullscreen__nav-icon {
  display: inline-block;
  width: 13px;
  height: 36px;
  fill: $grey;
  transition: $easeOutQuart;
}

.fullscreen__nav:hover {
  .fullscreen__nav-icon {
    fill: $grey--lightest;
  }
}

.fullscreen__nav--left .fullscreen__nav-icon {
  transform: scaleX(-1);
}

// -------------------------
// fullscreen actions
// -------------------------

.fullscreen__actions {
  bottom: 0;
  left: 50%;
  height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.fullscreen__action {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.fullscreen__action-icon-container {
  border-radius: 100px;
  background-color: rgba(#fff, 0.05);
  height: 32px;
  width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transition: $easeOutQuart;
}

.fullscreen__action:hover .fullscreen__action-icon-container {
  background-color: rgba(#fff, 0.10);
}

.fullscreen__action:active .fullscreen__action-icon-container{
  background-color: rgba(#fff, 0.05);
}

.fullscreen__action-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  fill: $grey--lightest;  
}

.fullscreen__action-text {
  color: $grey;
  font-size: fontSize(0);
}

.fullscreen__action:hover .fullscreen__action-text {
  color: $grey--lightest;
}
