/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* Inkludera extra-styles.css från css-mappen */
@import url("css/lightbox.css");

/* Adjustments Lightbox */
.lightbox .lb-image {
border:none;
}
.lb-data {
  display: none;
}
.lightboxOverlay {
background-color:transparent;
cursor: pointer;
}
.lightbox {
top:0!important;
background-color:rgba(0,0,0,0.8);
padding-top:90px;
height:150vh;
z-index: 9000;
}

/* header & menu style */

footer, #wpadminbar {
    display:none!important;
}

html.admin-mode {
margin-top:0!important;
}

@media (max-width: 569px) {
  body.logged-in.admin-bar {
    padding-top: 74px !important;
  }
}

#page-header {
    max-width: 1200px;
  }

/* body {
    margin-top: -32px!important;
} */

/* @media (max-width: 782px) {
body {
    margin-top: -46px!important;
}
} */

/* @media (max-width: 600px) {
body {
    margin-top: 0px!important;
}
} */

/*
@media (max-width: 569px) {
body.logged-in.admin-bar {
    padding-top: 0px !important;
}
}
*/

.idagboken-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

.idagboken-text {
    width: 600px;
    max-width:100%;
    margin: 30px 0;
}


.sc-slider {
position: relative;
  margin: 0 -30px;
  width: 100vw;
  height: 100vw;
}

.sc-slide a {
width: 100%;
  height: 100%;
  display: inline-block;
}

.sc-slider .sc-ctrl {
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  text-align: center;
  color: #000;
background-color: #fff;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size:0;
}

/*.sc-slider .sc-ctrl:hover {
      opacity: 0.2;
} */

.sc-slider .sc-ctrl-prev {
  right: 0;
}

.sc-slider .sc-ctrl-next {
  left: 0;
}

.sc-slider .sc-ctrl-wrapper {
  display: table;
  height: 100%;
}

.sc-slider .sc-ctrl-wrapper .sc-ctrl-inner {
  vertical-align: middle;
  display: table-cell;
}

.sc-slider .sc-slides {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.sc-slider .sc-slides .sc-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}


.sc-slider .sc-slides .sc-slide img {
  width: 100%;
}

.sc-slider .sc-slides .sc-slide.active {
  display: block;
}

#slider-indicator {
position: absolute;
  bottom: 30px;
  text-align: center;
  left: 0;
  width: 100vw;
  opacity:0.6;
}
.sc-slide {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

@media (min-width: 831px) {
.sc-slider {
  width: 800px;
  height: 800px;
  margin: 0 auto;
}

.sc-slider .sc-ctrl {
width: calc(50vw - 300px);
}

.sc-slider .sc-ctrl-prev {
  right: calc(400px - 50vw);
}

.sc-slider .sc-ctrl-next {
  left: calc(400px - 50vw);
}


#slider-indicator {
  width: 800px;
}
}

@media (max-width: 569px) {
.sc-slider {
  margin:0;
}
}

/* LOG OUT PANEL */
#logoutPanel {
display:none;
z-index:999999999;
position:fixed;
top:40vh;
left:calc(50vw - 125px);
width: 250px;
background: rgba(0,0,0,0.8);
padding: 25px;
font-size: 16px;
text-align:center;
}

#logoutPanel p {
font-size: 16px;
margin-top: 0;
  margin-bottom: 20px;
  color:#fff;
}

#logoutPanel a {
width: 80px;
padding:10px;
cursor: pointer;
color:#fff!important;
}

#logOut {
float: left;
background: green;
}

#cancelLogout {
float: right;
background: red;
}


/* Edit post */
.editImageButton {
  width: 60px;
}
.edit .image-buttons {
  display: none;
}
.edit .active.hasImage .image-buttons {
  display: none !important;
}
.list-item.active .image-buttons {
  display: flex !important;
  margin-left: -6px !important;
  margin-right: -8px;
}
.list-item.active .editImageButton {
  display: none;
}
.edit .list-item .list-item-image {
  display: none;
}
.edit .list-item.active .list-item-preview {
  background: none;
  width: auto;
}
.edit .list-item .image-preview img,
.edit .list-item .list-item-preview img {
  width: 60px !important;
  border-radius: 5px;
  height: 100%;
  width: auto;
  min-width: 60px;
  object-fit: cover;
  object-position: center;
}
.edit .list-item .image-preview,
.edit .list-item .list-item-preview  {
  width: 0px !important;
}
.edit .list-item.hasImage .image-preview,
.edit .list-item.hasImage .list-item-preview  {
  width: 60px !important;
}
.edit .list-item.hasImage .editImageButton {
  display: none;
}
.edit .deleteListimage {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  display: none;
  z-index: 90;
  border-radius: 50%;
  background: url(/wp-content/uploads/trash.png);
  background-size: contain;
  background-color: #fff;
  border: 4px solid white;
}
.edit .deleteListimage {
  position: relative;
  margin-left: -54px;
  margin-right: 32px;
  margin-top: 5px;
  width: 22px;
  height: 22px;
  z-index: 9;
}
.edit .list-item.hasImage .deleteListimage {
  display: block;
}