/* GENERAL ================================================================== */
body, .container {
    min-width: 360px;
}

#output .et_pb_section.et_section_regular > div {
    transition: all .5s;
    filter: opacity(0.8) grayscale(0.1);
}

#output .et_pb_section.et_section_regular > div:hover {
    filter: opacity(1) grayscale(0);
}

.flex-sb{
  display: flex;
  justify-content: space-between;
}

@media all and (max-width:980px){
  .et_pb_section {
    padding: 0;
  }

  .et_pb_section.et_section_regular > div {
      filter: none;
  }

  .et_pb_section.et_section_regular > div:hover {
      filter: none;
  }

}

/* +++++ NO RESULTS TEXT +++++ */
.noResults {
  margin: 50px auto;
  max-width: 1080px;
}

/* +++++ MORE INFORMATION +++++ */
.moreText {
  display: none;
}

#main-content .showmoreBtn{
  font-size: 15px !important;
  color: #aaaaaa;
  position: relative;
  padding: .3em 1em;
  border: 2px solid;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-weight: 500;
  line-height: 1.7em !important;
  -webkit-transition: all .2s;
  -moz-transition: all .2s;
  transition: all .2s;
}

#main-content .showmoreBtn:hover{
  background-color: #eeeeee;
  color: #333333;
  cursor: pointer;
}

#main-content .infobox{
  padding: 0;
}

@media all and (max-width:980px){
  #more10 div{
    padding-bottom: 0;
  }

  #main-content .showmoreBtn:hover{
    background-color: transparent;
    color: #aaaaaa;
    cursor: auto;
  }
}

/* +++++ DONATION BUTTON +++++ */
.already-donated {
  font-weight: bold;
  font-style: italic;
  padding: .3em 1em;
  text-align: end;
}

/* +++++ MORE DESCRIPTION +++++ */
.less .et_pb_all_tabs .et_pb_tab.clearfix::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(255,255,255,0.75) 50%, rgb(255, 255, 255) 100%);
    font-weight: bold;
    min-height: 60px;
}

.less .et_pb_all_tabs .et_pb_tab.clearfix{
  height: 140px;
  overflow: hidden;
  position: relative;
}

/* IMAGE LIGHTBOX =========================================================== */
img.lightbox-image{
  max-height: 175px;
  min-width: 100%;
  object-fit: cover;
  object-position: top center;
  transition: all .5s;
}

img.lightbox-image:hover{
  transform: scale(1.1);
  box-shadow: 0px 10px 30px gray;
  cursor: nesw-resize;
}

div.lg-backdrop, div.lg-outer{
  z-index: 99999;
}

@media all and (max-width:980px){
  img.lightbox-image{
    max-height: 300px;
    min-width: 50%;
    object-fit: cover;
    object-position: top center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all .5s;
  }

  img.lightbox-image:hover{
    transform: none;
    box-shadow: none;
    cursor: none;
  }
}

/* LOAD MORE PROJECTS ======================================================  */
/* +++++ LOAD MORE PROJECTS BUTTON +++++*/
.showMoreProjects {
  display: none;
  padding: .3em 1em;
  border: 2px solid;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-weight: 500;
  line-height: 1.7em !important;
  -webkit-transition: all .2s;
  -moz-transition: all .2s;
  transition: all .2s;
  margin: 30px auto;
  color: #a66a12;
  font-size: 1.3em !important;
  -webkit-animation: pulse 0.7s linear infinite alternate; /* Safari */
  animation: pulse 0.7s linear infinite alternate;
}

/* Safari */
@-webkit-keyframes pulse {
  0% { -webkit-box-shadow: none; }
  100% { -webkit-box-shadow: 0px 10px 30px gray; }
}

@keyframes pulse {
  0% { box-shadow: none; }
  100% { box-shadow: 0px 10px 30px gray; }
}

.showMoreProjects:hover{
  animation: none;
  background-color: #eeeeee;
  color: #333333;
  cursor: pointer;
}

/* +++++ LOADER SPINNER +++++ */
#projectLoader {
  display: none;
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #a66a12;
  width: 50px;
  height: 50px;
  margin: auto;
  -webkit-animation: spin 0.7s linear infinite; /* Safari */
  animation: spin 0.7s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* FILTER =================================================================== */
div .filter {
  padding-bottom: 0px;
}

.filter nobr {
  margin: auto 20px;
}

.filter input:disabled, .filter select:disabled {
  opacity: 0.3;
}

.filter .filter-options {
  display: inline-block;
}

.filter .filter-button {
  float: right;
  display: inline;
  text-align: right;
}

.filter .filter-button button {
  font-size: 15px !important;
  color: #666;
  position: relative;
  padding: .3em 1em;
  border: 2px solid;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-weight: 500;
  line-height: 1.7em !important;
  -webkit-transition: all .2s;
  -moz-transition: all .2s;
  transition: all .2s;
}

.filter .filter-button button:hover {
  background-color: #eee;
  color: #333;
  cursor: pointer;
}

.filter .filter-block {
  display: inline-block;
  margin-right: 25px;
  width: 200px;
  float: left;
}

.filter select {
  appearance: none;
  border: 1px solid #d9d9d9;
  width: 100%;
  height: 40px;
  padding-left: 10px;
  background: #f6f6f6;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  box-shadow: 2px 2px 3px 1px rgba(0,0,0,0.1);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  position: relative;
}

.filter select option {
  color: #666;
}

.filter select:focus::-ms-value {
  background-color: transparent;
}

.filter input {
  border: 1px solid #d9d9d9;
  background: #f6f6f6;
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 13px;
  box-sizing: border-box;
  border-radius: 3px;
}

.filter .standard-filter {
  display: block;
  height: 72px;
  overflow: hidden;
}

.filter .standard-filter::after {
  display: table;
  content: " ";
  clear: both;
}

.filter .advanced-filter-show,
.filter .advanced-filter-hide {
  cursor: pointer;
  color: #fcd21d;
}

.filter .advanced-filter-show.hidden,
.filter .advanced-filter-hide.hidden {
  display: none;
}

.filter .advanced-filter {
  margin-top: 5px;
  max-height: 0;
  display: block;
  overflow:hidden;
  -webkit-transition: max-height 0.5s ease-in-out;
  -moz-transition: max-height 0.5s ease-in-out;
  -o-transition: max-height 0.5s ease-in-out;
  transition: max-height 0.5s ease-in-out;
}

.filter .advanced-filter.opened {
  max-height: 72px;
  height: 72px;
}

#btnFilterChange {
  cursor: pointer;
  filter: opacity(0.9) grayscale(0.2);
  transition: all 0.2s ease-out;
  max-width: 80px;
}

#btnFilterChange:hover {
  cursor: pointer;
  filter: opacity(1) grayscale(0);
  transform: scale(1.1);
}

@media only screen and (max-width: 1080px) {
  .filter .filter-block {
    width: 180px;
  }

  div .filter {
    padding-bottom: 30px;
  }
}

@media only screen and (max-width: 980px) {
  .filter .filter-options {
    display: block;
  }

  .filter .filter-button {
    float: none;
    display: block;
    text-align: left;
  }

  .filter .filter-block {
    width: 30%;
    margin-right: 3%;
  }
}

@media only screen and (max-width: 768px) {
  .filter .filter-block {
    width: 100%;
    margin: 0 0 10px;
  }

  .filter .standard-filter {
    height: auto;
  }

  .filter .advanced-filter.opened {
    height: 150px;
    max-height: 150px;
  }
}

/* IMAGEGALLERY ============================================================= */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

div .imagegallery-switch{
  margin-top: 20px;
}

div .imagegallery-switch span{
  vertical-align: top;
}

.gallery .lightgallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery .lightgallery a{
  margin: 10px;
  position: relative;
  overflow: hidden;
}

.gallery .lightgallery img {
    height: 200px;
    width: 340px;
    max-width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.gallery .project-id {
  position: absolute;
  top: -15px;
  right: -20px;
  background-color: #0006;
  padding: 15px 25px 5px 5px;
  border-radius: 20px;
  font-style: italic;
  font-weight: bolder;
  transition: all 0.5s ease-out;
  visibility: hidden;
  opacity: 0;
}

.gallery .lightgallery img:hover + .project-id, .project-id:hover{
  visibility: visible;
  opacity: 1;
}

@media only screen and (max-width: 980px) {
  div .imagegallery-switch{
    margin-top: 4px;
    display: inline-block;
    position: absolute;
    right: 0;
  }

  .gallery .project-id{
    visibility: visible;
    opacity: 1;
  }
}

/* HELP FIELD AND MODALBOX ================================================== */
.help {
  position: absolute;
  right: 20px;
  font-weight: bold;
  font-size: 2em;
  border-radius: 50%;
  border: 3px solid #C9C9C9;
  padding: 3px;
  width: 32px;
  height: 32px;
  text-align: center;
  color: #C9C9C9;
  transition: all ease-in-out 0.2s;
  z-index: 10;
}

.help:hover {
  color: #606060;
  border: 3px solid #606060;
  cursor: pointer;
}

.help-modal{
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  display: none;
}

.modal-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  min-height: 40%;
  max-height: 80%;
  min-width: 340px;
  padding: 10px;
  background-color: rgba(255, 255, 255);
  background-color: rgba(255, 255, 255, .9); /* Fallback color */
  box-shadow: 0px 0px 50px rgba(0, 0, 0, .6);
  overflow: auto;
  padding-bottom: 40px;
}

.close{
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: -webkit-sticky;
  position: sticky;
  right: 0;
  top: 0;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-content {
  text-align: left;
  padding: 15px;
  max-width: 700px;
}

.help-modal h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

.help-modal p {
  margin: 0 10px;
}

.help-modal h3 {
  margin: 20px 10px 15px 10px;
}

#main-content .fadeDisplay{
    display: block;
    -webkit-animation: fadeIn 0.5s;
    animation: fadeIn 0.5s;
}
