/*
Theme Name: silviolorusso2019
Theme URI: http://www.silviolorusso.com/
Author: Silvio Lorusso
Author URI: http://www.silviolorusso.com/
Version: 1.0
*/

/* 
@font-face {
    font-family: 'Work Sans';
    src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/work-sans/worksans-regular-webfont.woff2') format('woff2'),
         url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/work-sans/worksans-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;

}
@font-face {
    font-family: 'Work Sans';
    src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/work-sans/worksans-semibold-webfont.woff2') format('woff2'),
         url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/work-sans/worksans-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
} 
*/

@font-face {
  font-family: 'Liberation Sans';
  src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans.woff') format('woff'), url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;

}
@font-face {
  font-family: 'Liberation Sans';
  src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Italic.woff') format('woff'), url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;

}
@font-face {
  font-family: 'Liberation Sans';
  src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Bold.woff') format('woff'), url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Bold-Italic.woff') format('woff'), url('https://silviolorusso.com/wp-content/themes/silviolorusso.com/library/fonts/liberation-sans/Liberation-Sans-Bold-Italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
}




html {
  font-size: 19px;
}

body {
  font-family: 'Liberation Sans', sans-serif;
  font-size: 1rem;
  color: #222;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px #aaa solid;
  outline: 0;
}

a.image_link {
  border-bottom: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  padding-top: 1rem;
}

h3, h4, h5, h6 {
  font-style: italic;
}

strong {
  font-weight: 600;
}

.clear {
  clear: both;
}

img {
  -webkit-box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
  -moz-box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
  box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
}

#container {
  margin: 0 40px;
}

#header {
  margin: 2em auto 3em auto;
  font-size: 0.8rem;
}

#header a:first-child {
  float: left;
  border-bottom: none;
}

.menu {
  float: right;
}

.menu ul {
  float: right;
  padding: 0;
  list-style: none;
  margin: 0;
}

.menu ul li {
  display: inline;
}

.menu ul li a {
  margin-left: 3rem;
}

.menu ul li.current_page_item a {
  border-bottom: 1px #222 solid !important;
}

.page-item-886 {
  display: none !important;
}


/* footnotes  */

.sdfootnoteanc {
  border: none;
}

sup {
  font-weight: 600;
}

.sdfootnotesym {
  font-weight: 600;
  border: none;
  margin-right: 1em;
}


/* --- HOME --- */

#works {
  position: absolute;
  width: calc(100% - 80px);
  padding-bottom: 100px;
}

.works-header {
  margin: 20px 0;
}

.works-header .work-image, .works-header .work-title, .works-header .work-year, .works-header .work-type, .works-header .work-partners, .works-header .work-publication, .works-header .work-url {
  height: auto;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.works-header .work-image {
  text-align: left;
}

#search {
  width: calc(100% - 14px);
  padding: 7px;
  border: 1px solid #aaa;
  margin-top: -7px;
}

.not-found {
  display: none !important;
}

.work-url {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.work {
  border-top: 1px #aaa solid;
  padding: 3rem 0;
}

.category-selected {
  display: block;
}

.work-image, .work-title, .work-year, .work-type, .work-partners, .work-publication, .work-url {
  max-height: 300px;
  float: left;
  box-sizing: border-box;
  padding: 0 10px;
}

.work-title {
  width: 20%;
}

.work-title a {
  border-bottom: none;
}

.work-type {
  width: 10%;
}

.work-image {
  width: 25%;
  padding: 0 2rem;
  text-align: center;
}

.work-image img {
  max-width: 210px;
  max-height: 300px;
  height: auto;
  width: auto;
}

video {
  max-width: 100%;
  height: auto;
  width: auto;
}

.work-title h2 {
  padding-top: 0;
  margin: 0;
}

.work-year {
  width: 5%;
}

.work-partners, .work-publication {
  width: 15%;
}

.work-url {
  width: 25%;
}

.work {
  font-size: 0.8rem;
}



/* --- ABOUT ---  */

.about-list, .about-list ul {
  padding-left: 9rem;
  list-style: none;
}

.about-list span {
  position: absolute;
  margin-left: -9rem;
  padding: 10px 0;
}

.about-list ul {
  padding-left: 0;
}

.no-indent {
  padding-left: 0 !important;
}

.about-list ul li {
  padding: 10px 0;
}

.upcoming::before {
  content: "UPCOMING";
  background-color: yellow;
  font-size: 10px;
  font-weight: 600;
  margin-right: 10px;
  padding: 3px;
  vertical-align: super;
}

.right-now::before {
  content: "RIGHT NOW";
  background-color: yellow;
  font-size: 10px;
  font-weight: 600;
  margin-right: 10px;
  padding: 3px;
  vertical-align: super;
}

.no-indent {
  padding-left: 0;
}

.no-indent li {
  padding: 10px 0;
}

.only-print {
  display: none;
}

@media print {
  html {
    font-size: 15px;
  }
  a {
    border-bottom: none;
  }
  header {
    display: none;
  }
  .only-print {
    display: block;
  }
  .no-print {
    display: none !important;
  }
  .about-list span {
    margin-left: -70px;
  }
  .about-list, .about-list ul {
    padding-left: 70px;
  }
  .about-list ul li, .about-list span {
    padding: 5px 0;
  }
  .no-indent {
    padding-left: 0;
  }
  .upcoming::before {
    display: none;
  }
  .right-now::before {
    display: none;
  }
}


/* --- SINGLE ---  */

#main {
  margin: auto;
  max-width: 1080px;
  margin-bottom: 5rem;
}

.single-work, .single-work-subtitle {
  text-align: center !important;
}

.single-work header {
  margin-bottom: 2rem;
}

.single-work p, .single-work h2, .single-work h3, .single-work h4, .single-work h5, .single-work h6, .single-work ul, .single-work ol {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

blockquote p {
  box-sizing: border-box;
  padding-left: 4rem;
}

.single-work-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0;
}

.single-work-subtitle {
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 0;
  padding-top: 0.5em;
}
.single-work-subtitle a {
  border-bottom: none;
}

.single-work .image_link {
  display: block;
  margin: 3rem auto;
}

.single-work .image_link img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 1080px;
}

.single-work .footnotes {
  font-size: 0.9rem;
}

.noshadow, .noshadow img {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.wp-caption {
  width: 100% !important;
}

.wp-caption-text {
  text-align: center !important;
  font-size: 0.8rem;
  margin: -2.5rem auto 1.5rem auto;
}

.fluid-width-video-wrapper {
  margin: 1.5rem auto;
}

.fluid-width-video-wrapper iframe {
  margin: auto;
}

iframe {
  margin: 1.5rem auto;
}

hr {
  margin: 3rem auto;
  border-top: none;
  width: 60%;
}



/* --- MOBILE --- */

@media only screen
and (max-width : 1024px)  {

  html {
    font-size: 13px;
  }

  #container {
    margin: 0 25px;
  }

  .menu ul li a {
    margin-left: 0.5rem;
  }

  blockquote {
    margin: 0;
  }

  /* --- ABOUT ---  */

  .about-list {
    padding-left: 5rem;
  }

  .about-list span {
    width: 3rem;
    margin-left: -5rem;
  }



  /* --- INDEX --- */

  .vc-toggle-container {
    bottom: 25px;
    right: 20px !important;
    --vc-font-size: 10px;
    --vc-width: 110px;
    -webkit-tap-highlight-color:  rgba(255, 255, 255, 0);
  }

  .vc-toggle-container label {
    -webkit-box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
    -moz-box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
    box-shadow: 5px 5px 25px 0px rgba(0, 0, 0, 0.18);
  }

  .works-header {
    display: none;
  }



  #works {
    margin-top: 30px;
    width: calc(100% - 50px);
  }

  .work {
    border: none;
    padding: 1rem 0;
  }

  .work-image {
    width: 100%;
    height: auto;
    padding: 0;
    float: none;
    max-height: none;
  }

  .work-image img {
    max-width: 60%;
    max-height: 300px;
  }

  .work-title, .work-year {
    margin-top: 1rem;
    font-size: 1rem;
    width: 100%;
    float: none;
    text-align: center;
  }

  .work-year {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .work-type, .work-partners, .work-url, .work-publication {
    display: none;
  }

}


/* --- TOGGLE SWITCH --- */

.vc-toggle-container {
  right: 40px;
  bottom: 30px;
  position: fixed;
  z-index: 3;
}

:root {
  /*Background color when it's turned off*/
  --vc-off-color: #d1d3d4;

  /*Background color when it's turned on*/
  --vc-on-color: #555;

  /*Animation speed and type*/
  --vc-animation-speed: 0.15s ease-out;

  /*Font used by the text*/
  --vc-font-family: Arial;

  /*The size used*/
  --vc-font-size: 12px;

  /*The font weight*/
  --vc-font-weight: 300;

  /*Font color when the switch is on*/
  --vc-on-font-color: #222;

  /*Font color when the switch is off*/
  --vc-off-font-color: white;

  /*How far the OFF text is from the right side*/
  --vc-label-position-off: 12px;

  /*How far the ON text is from the left side*/
  --vc-label-position-on: 11px;

  /*Small switch width*/
  --vc-width: 130px;

  /*Small switch height*/
  --vc-height: 25px;

  /*Border radius for the handle*/
  --vc-handle-border-radius: 20px;

  /*Border radius for the box*/
  --vc-box-border-radius: 18px;

  /*Shadow for the handle*/
  --vc-handle-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);

  /*Handle color*/
  --vc-handle-color: white;

  /*Handle width*/
  --vc-handle-width: 15px;

  /*Handle height*/
  --vc-handle-height: 15px;

  /*The handle's width while the toggle is clicked*/
  --vc-onclick-width: 30px;

  /*Handle's distance from the top*/
  --vc-handle-top: 5px;
}

.vc-toggle-container * {
  font-family: var(--vc-font-family);
  -webkit-transition: var(--vc-animation-speed);
  -moz-transition: var(--vc-animation-speed);
  -o-transition: var(--vc-animation-speed);
  transition: var(--vc-animation-speed);
}

.vc-switch {
  width: var(--vc-width);
  height: var(--vc-height);
}

.vc-toggle-container label {
  position: relative;
  display: inline-block;
  vertical-align: top;
  border-radius: var(--vc-box-border-radius);
  cursor: pointer;
}

.vc-switch-input {
  position: absolute;
  transform: translate3d(5px, 5px, 0);
}

.vc-switch-label {
  position: relative;
  display: block;
  height: inherit;
  font-size: var(--vc-font-size);
  font-weight: var(--vc-font-weight);
  background: var(--vc-off-color);
  border-radius: inherit;
}

.vc-switch-label:before,
.vc-switch-label:after {
  position: absolute;
  top: 50%;
  margin-top: -0.5em;
  line-height: 1.1;
}

.vc-switch-label:before {
  content: attr(data-off);
  color: var(--vc-on-font-color);
}

.vc-switch-label:after {
  content: attr(data-on);
  color: var(--vc-off-font-color);
  opacity: 0;
}

.vc-switch-label:before {
  right: var(--vc-label-position-off);;
}

.vc-switch-label:after {
  left: var(--vc-label-position-on);;
}

.vc-switch-input:checked ~ .vc-switch-label {
  background: var(--vc-on-color);
}

.vc-switch-input:checked ~ .vc-switch-label:before {
  opacity: 0;
}

.vc-switch-input:checked ~ .vc-switch-label:after {
  opacity: 1;
}

.vc-handle {
  position: absolute !important;
  top: var(--vc-handle-top);
  left: 5px;
  background: var(--vc-handle-color);
  border-radius: var(--vc-handle-border-radius);
  box-shadow: var(--vc-handle-shadow);
}

.vc-handle {
  width: var(--vc-handle-width);
  height: var(--vc-handle-height);
}

.vc-handle:before {
  content: "";
  top: 50%;
  left: 50%;
  position: absolute !important;
  margin: -6px 0 0 -6px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
}

.vc-switch-label:active ~ .vc-handle, .vc-handle:active {
  width: var(--vc-onclick-width);
}

.vc-switch-input:checked ~ .vc-handle {
  left: unset;
  right: 5px;
}



/* --- POP EFFECT --- */

@-webkit-keyframes hvr-pop {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
@keyframes hvr-pop {
  50% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
  }
}
.hvr-pop {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);

  -webkit-animation-name: hvr-pop;
  animation-name: hvr-pop;
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
}


/* --- DARK MODE --- */

@media (prefers-color-scheme: dark) {
  body {
      background-color: #333;
      color: #ddd;
  }
  a {
    color: #ddd;
  }

  #search {
    border-color: #ddd;
    background-color: #333;
    color: #ddd;
  }

  .work {
    border-color: #ddd;
  }

  .vc-switch {
    border: 1px solid #ddd;
  }

  .vc-switch-label {
    background: #333;
  }

  .vc-switch-input:checked ~ .vc-switch-label {
    background: #333;
  }

  .vc-switch-label:after {
    color: #ddd;
  }

  .vc-switch-label:before {
    color: #ddd;
  }

  .right-now::before, .upcoming::before {
    color: #333;
  }

  .menu ul li.current_page_item a {
    border-bottom: 1px #ddd solid !important;
  }
}