#single-journal .left-bar {width: 170px;}
#single-journal .post-content {
    width: calc(100% - 170px);
    padding-left: 20px;
   }
img {max-width: 100%; height: auto;}
#single-journal .shared-counts-wrap a {
    width: calc(100% / 4) !important;
}

/*carousel */
#single-journal .carousel-nav .flickity-prev-next-button {
/*CUSTOM (arrows fuori dal perimetro)*/
  width: 40px;
  height: 40px;
  background: transparent;
}
#single-journal .carousel-nav .flickity-prev-next-button.previous {
    /*CUSTOM (arrows fuori dal perimetro)*/
  left: -40px;
}
#single-journal .carousel-nav .flickity-prev-next-button.next {
    /*CUSTOM (arrows fuori dal perimetro)*/
  right: -40px;
}

#single-journal .flickity-viewport {/*border: 2px solid green;*/}
#single-journal .flickity-viewport a{color: black;}

#single-journal .carousel-nav {
    width: 480px; /*CUSTOM (larghezza totale del carosello); con trasform rotate diventa altezza totale del carosello; 
    diminuendo questo valore, avendo impostato .carousel-cell 100/3, riduciamo anche l'altezza della singola cella */
/*  width: 100%;*/
    -webkit-transform: rotate(90deg) translate(30px, -100%);
          transform: rotate(90deg) translate(30px, -100%);
  -webkit-transform-origin: left top;
          transform-origin: left top;
          /*border: 2px solid yellow;*/
 /*         transform: rotate(90deg) translate(30px, -100%);
        -webkit-transform-origin: left top;
          transform-origin: left top;*/
          
}



#single-journal .carousel {
    /*background: green;*/
    content: none;
    /*left: 50px; CUSTOM (margine per arrows fuori dal perimetro) NB non serve con trasform rotate */
}

/*CUSTOM*/
#single-journal .carousel-cell p {
    transform: rotate(-90deg) translate(-164px);
    transform-origin: left top;
    text-align: left;
   /*border: 2px solid black;*/
    width: 160px;/*larghezza spazio testo*/ 
    padding-top: 8px;/*vertical align testo */ 
}

#single-journal .carousel-cell {
    width: calc(100% / 3); /* con trasform rotate determina l'altezza totale */
    height:170px; /* CUSTOM: altezza cella singola,  con trasform rotate diventa larghezza  */
    /* height: 300px; */
    /* margin-right: 10px; */
    /* display: flex; */
    align-items: center;
    /* justify-content: center; */
    /* counter-increment: carousel-cell; */
    /*border: 2px solid red;*/
    font-size: small !important;
     /*line-height: 20px;*/
}



#single-journal .carousel-cell.is-selected {
/* background: blue;*/
background: white;
}

/* cell number */
#single-journal .carousel-cell:before {
  /*  display: block;
  text-align: center;
 /*  content: counter(carousel-cell);
  line-height: 200px;
  font-size: 80px;
  color: white;*/
  content: none;
}

@media screen and (min-width: 992px) {
    #single-journal .carousel-mobile{display: none;}
    }

@media screen and (max-width: 991px) {
    .left-bar{display: none;}
    .post-content{width: 100% !important;}
    
    #single-journal .carousel-mobile {
    width: 100%; /*CUSTOM (larghezza totale del carosello); con trasform rotate diventa altezza totale del carosello; 
    diminuendo questo valore, avendo impostato .carousel-cell 100/3, riduciamo anche l'altezza della singola cella */
/*  width: 100%;*/
    -webkit-transform: none;
          transform: none;
  -webkit-transform-origin: none;
          transform-origin: none;
          /*border: 2px solid yellow;*/
 /*         transform: rotate(90deg) translate(30px, -100%);
        -webkit-transform-origin: left top;
          transform-origin: left top;*/
          
}
    .carousel-mobile .carousel-cell{
     width: calc(100% / 4) !important; 
        }
    .carousel-mobile .carousel-cell p {
    transform: none !important;
    transform-origin:none;
    text-align: center;
   /*border: 2px solid black;*/
    width: 160px;/*larghezza spazio testo*/ 
    padding-top: 8px;/*vertical align testo */ 
}
    .carousel-mobile .flickity-prev-next-button.previous{ top: 40px;}
    .carousel-mobile .flickity-prev-next-button.next{ top: 40px;}
    
    }
@media screen and (max-width: 768px) {
        .carousel-mobile .carousel-cell{
     width: calc(100% / 3) !important; 
        }
    #single-journal .post-content h1{text-align: center;font-size: 34px; line-height:34px;}
    }
@media screen and (max-width: 500px) {
        .carousel-mobile .carousel-cell{
     width: 100% !important; 
        }
    #single-journal .carousel-cell p {width: 100%; text-align: center;}
    #single-journal .carousel-nav .flickity-prev-next-button.previous{left: 4px;}
    #single-journal .carousel-nav .flickity-prev-next-button.next{right: 4px;}
    }

/* Single post related */
#related {border-top: 1px solid lightgrey;padding-top:30px;padding-bottom:30px;text-align:center;}
#related h3 {
    background: black;
    color: white;
    padding: 10px;
    margin-bottom: 20px;
}
div#at_zurlpreview {
    max-width: inherit;
    margin: 0px auto;
}
.wplinkpreview{width: 100% !important;}
#related img{width: 100% !important;}
#related a{color: #212529 !important;}
#related a:hover{color: #800000 !important;}
#related h2 {
    font-size: 1.5em;
}

div#at_zurlpreview h2 {font-size: 1.5em;}
p.imgd {
    text-align: left;
}

p.imgs {
    text-align: right;
    font-style: italic;
    padding-bottom: 10px;
    border-bottom: 1px solid lightgrey;
}