html,
body {
	height: 100%;
}

div.row{
    height: 100%;
}

div.dettaglio{
    width: 100%; 
    height: 100%;
}

div.text-container{
    font-family: Playfair Display;
    color: #8c8c8c;
    background: #ffffff;
    width: 55%;
    height: 100%;
    float: left;
}

div.text-container div.text{
    width: 80%;
    height: 100%;
    padding: 3em 3em 0 3em;
    display: flex;
    flex-direction: column;
}

div.text-container div.back{
    font-family: SF Pro Display;
    font-size: 1.5em;
    position: absolute;
    left: 2.1em;
    top: 1em;
}

div.text-container div.back img{
    width: 0.8em;
    margin-top: -0.2em;
}

div.text{
    height: 100%;
    display: flex;
    flex-flow: column;
}

div.text h1.title{
    margin-top: 0.7em;
    font-size: 4.0vw;
    line-height:1em;
    overflow-wrap: break-word;
 	word-wrap: break-word;
    /*-webkit-hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;*/
}

div.text h1.subtitle{
    margin-top: 1em;
    font-size: 1.6vw;
    font-family: 'Montserrat';
    font-weight: 300;
    color:#8c8c8c;
    font-style: italic;
}

div.text h1.subtitle span{
  /*background-color:#EBEBEB;*/
  padding: 0.4em;
  padding-left:3em;
  padding-right:0.7em;
}

/* div.text div.scrollbar-wrapper{
    height: calc( 100% - 29em );
    margin-top: 2em;
    padding-bottom: 2em;
    transform: scaleX(-1);
    overflow-y: auto;
    flex: 1;
} */

/* 30/03/2019 */

div.text div.scrollbar-wrapper {
    margin-top: 2em;
    padding-bottom: 2em;
    transform: scaleX(-1);
    overflow-y: auto;
    overflow-x: hidden;
    height: 19em; 
    flex-grow : 1;
}

div.text div.scrollbar-wrapper > *{
    transform: scaleX(-1);
}

div.text div.scrollbar-wrapper .description{
    font-weight: 400;
    font-size: 1.1vw;
    padding-left: 3em;
    padding-right: 1em;
    line-height: 1.9em;
    letter-spacing: 1px;
    font-family: "Montserrat";
}

div.text div.scrollbar-wrapper .description b{
    font-weight: 700;
    /*color:#DD005A;*/
}

div.text div.scrollbar-wrapper div.details{
    width: 100%;
    height: auto;
    font-size: 1.7em;
    font-weight: 300;
    padding-left: 3em;
    margin-top: 2.5em;
    font-family: "SF Pro Display";
}

div.text div.scrollbar-wrapper div.details span.name{
    line-height: 2em;
    font-weight: bold;
}

div.text div.scrollbar-wrapper div.details span.value{
    display: inline;
}

div.text div.scrollbar-wrapper div.section{
    height: auto;
    padding-top: 2.3em;
}

div.text div.scrollbar-wrapper div.section h1.title{
    font-size: 3em;
    padding-left: 1.5em;
    float: left;
}

div.text div.scrollbar-wrapper div.section div.section-content{
    height: auto;
    width: 100%;
    padding-left: 4.5em;
    float: left;
    padding-bottom: 2em;
}

div.text div.scrollbar-wrapper div.section div.section-content div.download-item:hover{
    cursor: pointer;
}

div.text div.scrollbar-wrapper div.section div.section-content div.download-item:hover span.name{
    text-decoration: underline;
}

div.text div.scrollbar-wrapper div.section div.section-content div.download-item span{
    font-size: 2.8em;
    margin-top: 0.3em;
}

div.text div.scrollbar-wrapper div.section div.section-content div.download-item span.name{
    font-weight: bold;
}

div.text div.scrollbar-wrapper div.section div.section-content div.download-item span.name, div.text div.scrollbar-wrapper div.section div.section-content div.download-item span.size{
    font-family: "SF Pro Display";
    font-weight: 300;
    font-size: 1.4em;
    margin-left: 1em;
}

div.text div.scrollbar-wrapper div.details span.value::after, div.text div.scrollbar-wrapper div.section div.section-content div.download-item span.size::after{
    content: "\A";
    white-space: pre; 
}

div.text div.scrollbar-wrapper div.section div.section-content div.tag{
    background-color: #ebebeb;
    padding: 0.5em 1.5em;
    margin-bottom: 1em;
    margin-right: 1em;
    float: left;
    width: auto;
    border-radius: 1.5em;
    font-family: "SF Pro Display";
    font-weight: 300;
}

div.text div.scrollbar-wrapper div.section div.section-content div.tag:hover{
    background-color: rgba(220, 4, 92, 0.8);
    color: #ffffff;
}

div.text div.scrollbar-wrapper div.section div.section-content div.tag span{
    font-size: 1.4em;
}

div.text div.scrollbar-wrapper::-webkit-scrollbar-button{ display: none; height: 13px; border-radius: 0px; background-color: #e6e6e6; } 
div.text div.scrollbar-wrapper::-webkit-scrollbar-thumb{ background-color: #dc045c; border-radius: 0.5em; } 
div.text div.scrollbar-wrapper::-webkit-scrollbar-track{ background-color: #e6e6e6; border-radius: 0.5em; } 
div.text div.scrollbar-wrapper::-webkit-scrollbar{ width: 5px; }

div.gallery{
    background: rgba(51, 51, 51, 0.9);
    width: 45%;
    height: 100%;
    right: 0;
    z-index: 100;
    float: right;
    position: fixed;
}

div.gallery div.actions{
    width: 100%;
    min-height: 8em;
    margin-top: 2em;
    padding-right: 3.2em;
    position: absolute;
}

div.gallery div.actions img{
    float: right;
    width: 3em;
}

div.gallery div.actions img:not(:first-child){
    margin-right: 2em;
}

div.gallery div.filters{
    position: absolute;
    bottom: 2em;
    right: 6em;
    width: auto;
    color: #ffffff;
    font-family: SF Pro Display;
    text-align: right;
}

a.btn_custom_filter,
a.btn_custom_filter:visited,
a.btn_custom_filter:active{
    padding: 0.6em;
    padding-left:1em;
    padding-right:1em;
    background-color: #dc045c;
    color:#ffffff !important;
    font-size:10px;
    font-family: 'Montserrat';
    font-weight: 500;
    cursor:pointer;
    border-radius: 4px;
    border:1px solid #dc045c;
}

a.btn_custom_filter:not(:last-child){
    margin-right: 0.4em;
}

div.mmedia-row div.filters a:not(:last-child){
    margin-right: 2em;
}

a.btn_custom_filter:hover{
    text-decoration: none;
  	background-color: #bd0852 !important;
    border-color: #bd0852 !important;
}

/* SWIPER */

.swiper-container.gallery-thumbs {
    width: 120%;
    padding-top: 0em;
    margin-left: -20%;
    padding-right: 6em;
    top: 50%;
    transform: translateY(-50%);
}

.lity .swiper-container{
    max-width: 100%;
}

.gallery-thumbs
{
 	max-height: calc( 100% - 16em ) !important;
}

.gallery-thumbs .swiper-slide-min{
    /*max-width: 640px;*/
    height: auto;
    display:flex;
    flex-wrap: wrap;
}

.gallery-thumbs .swiper-slide-min{
    /*max-width: 640px;
    height: auto;*/
   
}

.gallery-thumbs .swiper-wrapper 
{
   max-height:inherit;
   height: 100% !important;
}

.gallery-thumbs .swiper-wrapper .wrapper
{
   height: 100% !important;
}

.swiper-slide-min img{
    width: 100%;
    height: auto;
}

.swiper-slide-top img{
    width: 100%;
}

.swiper-slide-top{max-width:100% !important;}

.swiper-slide-min img.contentimg{
    width: 100%;
    height:100%;
    max-height:inherit;
    object-fit: cover; 
    display: block;
}


.swiper-slide .dida{
    text-align:left;
    position:absolute;
    display:flex;
    align-items: center;
    bottom:0px;
    left:0;
    width:100%;
    height:42px;
    background-color:rgba(0, 0, 0, 0.45)
}

.swiper-slide .dida span{
    display: inline-block;
    padding-left:10px;
    padding-right:10px;
    color:white;
    font-size: 1.5em;
    font-family: 'Montserrat';
    font-weight: 200;
    max-width: 76%;
    line-height: 1.1em;
}

.swiper-button-dida-top{
    text-align:left;
    position:absolute;
    display:flex;
    align-items: center;
    justify-content: space-between;
    bottom:0;
    left:0;
    width:100%;
    height:5em;
    z-index:1;
    background-color:rgba(0, 0, 0, 0.45)
}

.swiper-button-dida-top div.titledida{
    font-family: Playfair Display;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
    position: absolute;
    left: 1em;
    font-size: 2.5em;
    position:relative;
    display: inline-block;
}

.swiper-button-dida-top div.textdida{
    /*float:right;*/
    display: inline-block;
    padding-left:10px;
    padding-right:10px;
    color:white;
    font-size: 1.6em;
    font-family: 'Montserrat';
    font-weight: 400;
    line-height: 1.2em;
    flex-grow: 1;
    max-width:100%;
}

div.wrapper{
    width: 100%;
    position: relative;
}

div.wrapper img.zoom,
div.wrapper img.zoom_download{
    position: absolute;
    right: 1em;
    bottom: 1em;
    width: 2.5em;
}

div.wrapper img.zoom
{
    bottom: 1.3em;
    width: 5em;
}

div.wrapper img.zoom_download{
    position: absolute;
    right: 7em;
    bottom: 1.3em;
    width: 7.6em;
}

.swiper-slide img.player{
    width: 12em;
    position: absolute;
    left: calc( 50% - 6em );
    top: calc( 50% - 6em );
}

.lity .swiper-slide img.player{
    width: 7em;
    position: absolute;
    left: calc( 50% - 3.5em );
    top: calc( 50% - 3.5em );
}

.lity .swiper-slide img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.lity .swiper-slide video{
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

.lity .swiper-slide iframe{
    height: 100%;
    width: 100%;
}


.lity div.title{
    font-family: Playfair Display;
    color: #ffffff;
    text-shadow: 0 0 5px #000000;
    position: absolute;
    top: 0.6em;
    right: 1em;
    font-size: 2.5em;
    z-index: 100;
}

.swiper-button-close-top
{
    position:absolute;
    left: 2em;
    top: 2em;
    z-index:1000;
    cursor:pointer;
}

.lity .lity-close{
    left: 0.4em;
    top: 0.3em;
    display:none;
}

div.buttons{
    display: block;
    width: 8em;
    height: 8.3em;
    bottom: -0.8em;
    left: -8em;
    position: absolute;
}

.gallery-top{
    padding-top: 0;
    margin-top: 0;
}

.gallery-top .swiper-slide img{
    object-fit: cover;
}

.swiper-button-next, .swiper-button-prev{
    float: left;
    background-image: none;
}

.swiper-button-next img, .swiper-button-prev img{
    width: 25px;
    background-size: auto;
    color: rgba(51, 51, 51, 0.9);
} 

.swiper-button-next-top img, .swiper-button-prev-top img,
.swiper-button-next-mini img, .swiper-button-prev-mini img{
    margin-left: 0em;
    margin-top: 0.2em;
    width: 40px;
    background-size: auto;
    color: rgba(51, 51, 51, 0.9);
} 

.swiper-button-next-top, .swiper-button-prev-top,
.swiper-button-next-mini, .swiper-button-prev-mini{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.0);
    padding: 0em;
}

.swiper-button-next-mini{
    right: 6em;
}

.swiper-button-next-top{
    right: 0em;
}

.swiper-button-prev-top{
    left: 0em;
}

.gallery-thumbs .swiper-wrapper{
    height: auto;
}

.swiper-button-next-mini, .swiper-button-prev-mini,.swiper-button-prev-top, .swiper-button-next-top, .swiper-slide .zoom,.zoom_download, div.text div.scrollbar-wrapper div.section div.section-content div.download-item span.name, 
div.text div.scrollbar-wrapper div.section div.section-content div.tag, div.text-container div.back, .swiper-button-next-top, .swiper-button-prev-top{
    cursor: pointer;
}