

/* ---------------------------- */
/* Colors */
a, .link {
  color: #003cc5b5;
}

/* ---------------------------- */
/* Resets */ 
.page-wrapper *:focus, .ui-dialog *:focus
 {
  -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.form-element:hover:focus {
  box-shadow: 0 0 0 2px #fff, 0 0 0 0px #26a769, inset 0 0 0 1px #222330;
}

.form-element:focus {
  border-color: #222330;
  box-shadow: inset 0 0 0 1px #222330;
}

/* ---------------------------- */
/* General / Elements */

a {
  text-decoration: none;
}

p {
  margin-top: 0;
}

h3, .heading-c {
  font-weight: normal;
}

.field {
  margin-bottom: 1rem;
}

.field--name-body {
  margin-bottom: 0;
}

/* Directory Layout */
.path-directori aside.layout-sidebar-first {
  float: left;
  width: 17%;
}

.path-directori .page-content {
  float: left;
  width: 83%;
}

.path-directori .page-content {
  margin-top: 0.2rem;
}

.path-directori .view-content {
  clear: both;
}


/* Hierarchical select. */
.shs-field-container {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 1.5rem;
}

.shs-field-container > div {
  background-color: rgba(255, 255, 255, 0.8);
}


/* Chosen */ 

/* chosen-container chosen-container-multi form-select form-element form-element--type-select-multiple */
.chosen-container-single,
.chosen-container-multi {
  line-height: 2.8rem;
  width: 100% !important;
}

.chosen-single {
  padding-top: 10px !important;
  padding-left: 10px !important;
  height: 3rem !important;
  font-size: initial;
}

.chosen-drop {
  font-size: initial;
}

.chosen-single div b {
  background-position: -16px 12px !important;
}


.chosen-container-multi .chosen-choices li.search-choice {
  padding: 0.9rem;
}
.chosen-container-multi .chosen-choices li.search-choice span {
  padding-right: 13px;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 15px;
  right: 10px;
}

/* ---------------------------- */
/* NAV */

.region-navigation {
  float: left;
  width: 100%;
  padding: 1rem 0;
}

.region-navigation > .block {
  /* border: 1px solid red; */
  float: left;
}

#block-lapuntador {
  width: 17%;
  margin: 0;
  /*padding: 0.5rem 0;*/
  /* margin-top: 0.4rem; */
}
#block-lapuntador a {
  color: #000000;
  text-decoration: none;
  font-size: 2.027rem;
  line-height: 0.8;
}

/* Text Cerca */ 
#block-formulariexposatcercapage-1 {
  width: 56%;
  /* margin-left: 2rem; */
  /* padding: 0 3rem 0 0; */
  padding: 0;
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
  border: 0px;
  -webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}
#block-formulariexposatcercapage-1 .claro-autocomplete {
  /* max-width: 100%; */
  width: 100%;
}

input.form-element--api-search-api-autocomplete {
  width: 100%;
}

#block-formulariexposatcercapage-1 > div {
  display: inline-block;
  margin-left: 2rem;
}

#block-formulariexposatcercapage-1 .form-item {
  padding: 0;
  margin: 0;
}

#block-formulariexposatcercapage-1 .views-exposed-form__item--actions {
  margin: 0;
  display: none;
}

.form-item--search-api-fulltext .claro-autocomplete__message,
div#block-formulariexposatcercapage-1 .form-type--search-api-autocomplete .claro-autocomplete__message {
  display: none;
}

.js .form-autocomplete.is-autocompleting {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' height='20' width='40'%3E%3Cstyle type='text/css'%3E @keyframes s%7B0%25%7Btransform:rotate(0deg) translate(-50%25,-50%25)%7D50%25%7Btransform:rotate(-430deg) translate(-50%25,-50%25);stroke-dashoffset:20%7D100%25%7Btransform:rotate(-720deg) translate(-50%25,-50%25)%7D%7Dellipse%7Banimation:s 1s linear infinite%7D%3C/style%3E%3Cg transform='translate(5 5)'%3E%3Cellipse fill='none' ry='4' rx='4' cy='5' cx='5' stroke='%23004adc' stroke-width='1' stroke-dashoffset='6.125' stroke-dasharray='25' transform='translate(-5 -5)' /%3E%3C/g%3E%3C/svg%3E");
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  background: #efefef;
}

.search-api-autocomplete-search .ui-menu-item-wrapper.ui-state-active .search-api-autocomplete-suggestion {
  background: transparent;
  /* color: #003cc5b5; */
  color: #003bc5;
}


/* Main Navigation */

nav#block-apuntador-claro-navegacioprincipal {
  float: right;
}

#navigation nav > ul {
  margin: 7px 0;
  margin-bottom: 0;
  line-height: normal;
}

#navigation nav > ul > li {
  list-style: none;
  display: inline-block;
  text-transform: uppercase;
  font-weight: bold;
  padding: 0;
  position: relative;
}

#navigation  nav > ul > li.menu-item--active-trail a,
#navigation  nav > ul > li a {
  text-decoration: none;
  padding: 0 1rem;
  line-height: 2;
  display: inline-block;
}

/* #navigation > ul.menu > li.menu-item--active-trail a,
#navigation > ul.menu > li a.is-active {
  background-color: #f3f4f9;
} */

#navigation .menu--main ul.menu > li:first-child.menu-item--active-trail a,
#navigation .menu--main ul.menu li:first-child a {
  /* padding: 0 1rem 0 0; */
}


#navigation nav > ul > li > ul {
  display: none;
  position: absolute;
  margin-top: 0px;
  /* padding: 1rem 1.2rem 1rem 0.5rem; */
  padding: 0.8rem;
  font-size: 0.8rem;
  /* min-height: 65px; */
  background: #f3f4f9;
  background: #e5ecff;
  z-index: 1000;
  left: -30px;
  margin: 0;
  min-width: 180px;

}

#navigation nav > ul > li:hover > ul {
  display: block;
}

#navigation nav > ul > li > ul > li {
  list-style: none;
  /* background: transparent; */
  /* display: inline-block; */
  /* text-transform: uppercase; */
  /* font-weight: bold; */
  /* padding: 8px 15px 8px 0; */
}


/* Sidebar First */
.region-sidebar-first h2 {
  font-size: medium;
}


/* Facets */

.block-facet-blocktipus h2 {
  margin-top: 0;
}

ul.js-facets-checkbox-links {
  list-style-type: none;
  margin: 0;
}
ul.js-facets-checkbox-links input {
  margin-right: 6px;
}
select.facets-dropdown {
  width: 88%;
}

/* .block-facet-blockautor span {
  font-size: 14px;
} */



/* ---------------------------- */
/* Search */


/* Header */ 
.path-directori .region.region-highlighted {
  width: 100%;
  float: left;
  margin-bottom: 1.5rem;
}


#block-resum {
  float:left;
}

#block-resum ul {
  margin: 0;
  /* float: left;
  width: 100%; */
}  

#block-resum li {
  list-style: none;
  color: #999999;
  /* display: inline-block; */
  /* margin-right: 1.5rem; */
}

.facet-summary-item--facet {
  display: none;
}

#block-sortbyviewcercadisplaypage {
  float: right;
  display: none;
}

#block-sortbyviewcercadisplaypage h2 {
  font-size: 100%;
  color: #999;
  font-weight: normal;
  text-align: right;
  padding: 0;
  margin: 0;
  float: left;
  line-height: 1.5;
}

#block-sortbyviewcercadisplaypage .item-list {
  float: left;

  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  }

#block-sortbyviewcercadisplaypage .item-list ul {
  display: inline-block;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-left: -1px;
  padding-right: 4rem;
}

#block-sortbyviewcercadisplaypage .item-list li {
  display: inline-block;
  padding-right: 0.6rem;
  flex-grow: 1;
  flex-basis: auto;
  /* margin: .25em 0; */
  padding: 0 1em;
  text-align: center;
  border-left: 1px solid #ccc;
  background-color: #fff;
}


#block-sortbyviewcercadisplaypage ul {
  margin: 0;
}

#block-sortbyviewcercadisplaypage li {
  list-style: none;
  margin: 0;
}

#block-sortbyviewcercadisplaypage li a {
  color: #003bc581;;
}

a.sort-item.is-active {
  color: #003cc5 !important;
  font-weight: bold;
}

a.sort-item > .tablesort {
  top: 56%;
  color: #003cc5;
}



a.sort-item span.tablesort {
  color:red;
}

a.sort-item.is-active span.tablesort {
  color: #003cc5;
}



.path-directori header.content-header {
  height: 1px;
  padding: 0;
}

.path-directori header.content-header .layout-container {
  height: 0px;
}

/* Search results */ 


.view-cerca .views-row {
  margin-bottom: 2rem;
  display: flex;
}

.view-cerca .views-row > .views-field:first-child {
  flex: 1 1 0px;
  padding-right: 1.5rem; 
}
.view-cerca .views-row > .views-field {
  /* flex: flex-grow flex-shrink flex-basis|auto|initial|inherit; */
  flex: 6 1 0px

}

.view-cerca .field-content {
  margin: 0;
  padding: 0;
  
}

.view-cerca .field-content p {
  margin: 0;
}

.views-field.views-field-body {
  clear: both;
}

.view-cerca .views-field.views-field-type,
.views-field.views-field-any {
  float: left;
  margin-right: 1.5rem;
}

.view-cerca .views-field.views-field-type,
.views-field.views-field-field-author-txt-1,
.views-field.views-field-any {
  color: #999;
}

.view-cerca img.default-theatre {
  width: 85%;
  opacity: 40%;
}


/* ---------------------------- */
/* BASIC GRID */
.row {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;  
  align-items: left;
}



.col-md-12 {  
  flex-basis: 100%;
  flex-grow: 1;
  flex-shrink: 1;
}

.col-md-10 {
  flex-basis: 82%;
}

.col-md-8 {
  flex-basis: 65%;
}

.col-md-6 {
  flex-basis: 47.5%;
}

.col-md-4 {
  flex-basis: 32%;
}

.col-md-2 {
  flex-basis: 15.6%;
}

.col-md-1 {
  flex-basis: 8%;
}


.content-center {
  text-align: center;
}


.row.margin-bottom-1 {
  margin-bottom: 1rem;
}

.margin-bottom-0 {
  margin-bottom: 0;
}


/* ---------------------------- */
/* WORKS */ 

.work img {
  width: 100%;
  /* border: 1px solid orange; */
  /* max-height: 300px; *
  object-fit: cover; */
}

iframe.media-oembed-content {
  /* max-width: 100% !important; */
  width: 100%;
  height: 350px;
}


.work img.default-work {
  opacity: 25%;
}

/* Termes ocults: direcció i intèrprets. */
.work .term-14,
.work .term-7 {
  display: none;
}

.work .view-content h3 {
  margin-top: 1.5rem;
}

.work .cast-info {
  color: #888;
  display: inline-block;
  margin-left: 1rem;
}

.work .performances {
  margin-top: 2rem;
}

.work .field--name-field-performace-date {
  margin-bottom: 0;
  float: left;
  padding-right: 1rem;
}

.work .performance .field--name-body {
  float: left;
  margin-bottom: 0;
}
.work .performance .field--name-body p {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---------------------------- */
/* THEATRES */ 

.theatre img {
  width: 100%;
  /* max-height: 300px;
  object-fit: cover; */
}

.theatre .work-info img {
  width: 150px;
}

img.default-theatre {
  opacity: 30%;
}


/* .theatre .geofield-map-node-theatre-319-field-address-gf {
  height: 200px !important;
} */


/* ---------------------------- */
/* PROFILES */ 

.profile img.default-profile {
  opacity: 30%;
}

.bold {
  font-weight: bold;
}

/* ---------------------------- */
/* ETC */ 
.group.info .field {
  margin-bottom: 1rem;
}



/* ---------------------------- */
/* ADMIN PAGES */ 

#node-theatre-edit-form .media-library-selection .media-library-item--grid,
#node-work-edit-form .media-library-selection .media-library-item--grid,
#node-profile-edit-form .media-library-selection .media-library-item--grid {
  width: 100%;
}
#node-theatre-edit-form .claro-details__content span.fieldset__label,
#node-theatre-edit-form .form-item--field-address-gf-0-value-map-geocode label,
#node-theatre-edit-form .form-item--field-address-gf-0-value-map-geocode .form-item__description {
  display: none;
}

/* Work form */
.node-work-edit-form .field--name-field-casting-work-ref,
#node-work-form .field--name-field-casting-work-ref {
  display: none;
}
/* Profile form */
.node-profile-edit-form .field--name-field-casting-profile-ref,
#node-profile-form .field--name-field-casting-profile-ref {
  display: none;
}

/* #node-work-form .field--name-field-work-ref { */

/* #node-work-form .field--name-field-casting-work-ref, */
/* .node-work-edit-form .field--name-field-casting-work-ref {
  display: none;
} */

/* Messages */
.messages {
  background: #f3f4f9;
  color: #000;
  /* border-color: #003cc5b5; */
}
.messages a {
  color: #003cc5b5;
}

.messages a:hover {
  color: #003cc5;
}

.messages h2#message-status-title {
  display: none;
}

/* Autocomplete */
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
  color: #003bc5 ;
}

/* Edit forms */
td.inline-entity-form-node-label {
  width: 51%;
}
th.inline-entity-form-node-status, 
td.inline-entity-form-node-status {
  display: none;
}

.layout-node-form .tabledrag-toggle-weight-wrapper.js-tabledrag-toggle-weight-wrapper {
  display: none;
}

.role-info {
  border: 1px;
}


.field--name-field-performance-role th.field-label {
  padding: 0;
  font-size: 0.889rem;
}


.field--name-field-casting-work-ref input,
.field--name-field-casting-work-ref .claro-autocomplete,
.field--name-field-casting-profile-ref input,
.field--name-field-casting-profile-ref .claro-autocomplete,
.field--name-field-cast-info input {
  width: 100% !important;
}


.node-profile-edit-form .field--name-field-performance-role .form-actions {
  margin-top: 0;
}


/* ---------------------------- */
/* MOBILE */ 

div#block-responsivemenumobileicon {
  position: absolute;
  top: 0.5rem;
  right: 3rem;  
}

div#block-responsivemenumobileicon span.label {
  display: none;
}

a#toggle-icon {
  background-color: #000;
  height: 35px;
  margin-top: 4px;
}
/* // Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1199px) { 
  #block-apuntador-claro-navegacioprincipal {
    display: none;
  }

  #block-formulariexposatcercapage-1 {
    width: 100%;
    padding: 0;
  }

  #block-lapuntador {
    width: 100%;
    margin-bottom: 1rem;
    padding-top: 3px;
  }
  
  #block-lapuntador .group1 {
    float: left;
  }
  
  #block-lapuntador .group2 {
    float: left;
    margin-left: 0.5rem;
    font-size: 1rem;
    color: #777;
  }

  #block-lapuntador a {
    font-size: 1.5rem;
  }

  .path-directori aside.layout-sidebar-first {
    width: 35%;
  }

  .path-directori aside.layout-sidebar-first {
    width: 100%;
  }
  .path-directori .page-content {
    width: 100%;
  }

  .layout-sidebar-first {
    margin-bottom: 1rem;
  }
  .layout-sidebar-first h2 {
    margin-top: 0;
  }

  #block-tipus-2 {
    /* width: auto; */
    float: left;
    margin-right: 2rem;
  }
  #block-any {
    /* width: 33%; */
    float: left;
    margin-right: 2rem;
  }
  #block-autor {
    width: 33%;
    float: left;
  }
  .work .cast-info {
    display: block;
    margin-left: 0;
  }

  .work .performance .field--name-body {
    clear: both;
    /* margin-bottom: 1rem; */
  }
  .work .performance {
    margin-bottom: 1rem;
  }
  
}
/* // Large devices (desktops, 992px and up) */
@media (max-width: 992px) { 

}

/* // Extra small devices (portrait phones, less than 576px)
// No media query for `xs` since this is the default in Bootstrap */


/* // Medium devices (tablets, 768px and up) */
@media (max-width: 768px) { 
  .col-sm-12 {
    flex-basis: 100%;
  } 
  .col-sm-10 {
    flex-basis: 83%;
  }
  .col-sm-8 {
    flex-basis: 66%;
  }
  .col-sm-6 {
    flex-basis: 50%;
  }
  .col-sm-4 {
    flex-basis: 33%;  
  }
  .col-sm-2 {
    flex-basis: 12.5%;
  }

  .field--name-field-teatre-ref,
  .field--name-field-performace-date,
  .field--name-field-author-txt,
  .field--name-field-cast-ref,
  .field--name-field-cast-info {
    margin: 0;
  }


}

/* // Small devices (landscape phones, 576px and up) */
@media (max-width: 607px) { 
  div#block-responsivemenumobileicon {
    right: 1rem;
  }  
  #block-tipus-2 {
    width: 50%;
    margin: 0;
  }
  #block-any {
    width: 50%;
    margin: 0;
  }

  #block-autor {
    display: none;    
  }
  #block-sortbyviewcercadisplaypage h2 {
    display: none;
  }

}
