
main#ev-main .entry-content {
  display: flex;
  max-width: 1280px;
  justify-content: center;
  margin: 0 auto;
}

main#ev-main h2 {
  margin-top: 30px;
}

.photo-gallery-large {
  display: block;
  max-width: 100%;
  position: relative;
}

.photo-gallery-large .photo-gallery-full {
  display: block;
  max-width: 100%;
  position: relative;
}

.photo-gallery-large .photo-gallery-full:hover > a {
  opacity: 1;
  filter: alpha(opacity=100);
}

.photo-gallery-large .photo-gallery-full > a {
  display: block;
  position: absolute;
  background-color: rgba(0,0,0,0.3);
  color: #fff;
  z-index: 10;
  left: 0px;
  top: 50%;
  padding: 20px;
  margin-top: -32px;
  border-radius: 0 5px 5px 0;
  text-decoration: none;
  opacity: 0;
  filter: alpha(opacity=0);
}

.photo-gallery-large .photo-gallery-full > a > svg {
  pointer-events: none;
}

.photo-gallery-large .photo-gallery-full > a.next {
  left: auto;
  right: 0px;
  transform: rotate(180deg);
}

.photo-gallery-large .photo-gallery-full > a:hover {
  background-color: rgba(0,0,0,0.5);
}

.photo-gallery-large .photo-gallery-full .the-image {
  display: block;
  text-align: center;
  position: relative;
  font-size: 0;
}

.photo-gallery-large .photo-gallery-full .the-image img {
  display: inline-block;
  max-width: 100%;
  position: relative;
  height: auto;
}

.photo-gallery-thumbs {
  background: #1f2531;
  position: relative;
  margin-bottom: 60px;
}

.photo-gallery-thumbs .photo-gallery-thumb-list {
  padding: 13px 0;
  margin: 0 60px;
  font-size: 0;
  overflow: hidden;
  display: flex;
}

.photo-gallery-thumbs .photo-gallery-thumb-list .item {
  font-size: 14px;
  margin-right: 12px;
  opacity: 0.5;
  flex-shrink: 0;
  filter: alpha(opacity=50);
}

.photo-gallery-thumbs .photo-gallery-thumb-list .item.active:hover,
.photo-gallery-thumbs .photo-gallery-thumb-list .item.active {
  box-shadow: 0 0 0 1px #000, 0 0 0 4px #E2E2E2;
  opacity: 1;
  filter: alpha(opacity=100);
}

.photo-gallery-thumbs .photo-gallery-thumb-list .item:hover {
  opacity: 1;
  filter: alpha(opacity=100);
}

.photo-gallery-thumbs .photo-gallery-thumb-list .item img {
  display: block;
  width: 70px;
  height: 70px;
}

.photo-gallery-thumbs .photo-gallery-nav {
  position: absolute;
  z-index: 1;
  border: 0px;
  background: rgba(50, 50, 50, 0.8);
  color: #fff;
  top: 13px;
  left: 13px;
  cursor: pointer;
  height: 70px;
  width: 36px;
  font-size: 16px;
  transition: all 0.2s;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.photo-gallery-thumbs .photo-gallery-nav.nav-me-right {
  left: auto;
  right: 13px;
  transform: rotate(180deg);
}

.photo-gallery-thumbs .photo-gallery-nav:hover {
  background: rgba(82, 82, 82, 0.8);
}

.photo-gallery-thumbs .photo-gallery-nav:active {
  background: rgba(42, 42, 42, 0.8);
}


.photo-gallery-description {
  display: block;
  padding: 40px 50px 15px 50px;
}

.photo-gallery-description h2 {
  display: block;
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 25px;
}


.photo-gallery-items > .item {
  width: 31.33%;
  margin-left: 3%;
}

.photo-gallery-items > .item:nth-child(3n+1) {
  clear: both;
  margin-left: 0px;
}

.photo-gallery-items > .item:nth-child(n+4) {
  margin-top: 28px;
}


.photo-gallery-items {
  display: block;
}

.photo-gallery-items:after {
  display: block;
  clear: both;
  content: '';
}

.photo-gallery-items .item {
  display: block;
  float: left;
}

.photo-gallery-items .item .item-content {
  display: block;
  padding: 25px;
  background: #f0f4f6;
}

.photo-gallery-items .item .item-content h3 {
  display: block;
  margin-bottom: 8px;
  color: #4b95d4;
  font-size: 19px;
  line-height: 130%;
  font-weight: bold;
  letter-spacing: 0;
}

.photo-gallery-items .item .item-content h3 a {
  color: #232323;
}

.photo-gallery-items .item .item-content h3 a:hover {
  color: inherit;
}

.photo-gallery-items .item .item-content .item-category {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
  font-weight: 500;
  color: #4b95d4;
}

.photo-gallery-items .item .item-content .item-category a {
  color: inherit;
}

.photo-gallery-items .item .item-content .item-category a:hover {
  color: #232323;
}

.photo-gallery-items .item .item-content p {
  display: block;
  margin-bottom: 20px;
  line-height: 150%;
  font-size: 14px;
}

.photo-gallery-items .item .item-content .view-more {
  display: inline-block;
  border: 0px;
  font-weight: bold;
  padding: 10px 24px 13px 24px;
  cursor: pointer;
  background: #464f61;
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08), inset 0 -100px 0 rgba(255,255,255,0);
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  text-align: center;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
}

.photo-gallery-items .item .item-header {
  position: relative;
  font-size: 0;
}

.photo-gallery-items .item .item-header-overlay {
  display: block;
  position: absolute;
  z-index: 2;
  width: 100%;
  left: 0px;
  bottom: 0px;
  vertical-align: bottom;
  padding: 25px 25px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
  font-size: 13px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  box-shadow: inset 0 -80px 40px -40px rgba(0,0,0,0.4);
}

.photo-gallery-items .item.no-image .item-header-overlay {
  position: absolute;
  top: 10px;
  text-align: right;
  display: block;
  background: transparent;
  text-shadow: none;
  box-shadow: none;
  color: #000;
  padding: 15px 25px;
}

.photo-gallery-items .item.no-image .item-content h3 {
  padding-right: 80px;
}

.photo-gallery-items .item .item-header a img {
  width: 100%;
  backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateX(0);
  -moz-transform: translateX(0);
  -webkit-transform: translateX(0);
  opacity: 1;
  filter: alpha(opacity=100);
  transition: all 0.2s;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
}

.ev-pagination {
  display: block;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  cursor: default;
}

.ev-pagination .page-numbers {
  display: inline-block;
  padding: 9px 13px;
  line-height: 100%;
  font-weight: bold;
  font-size: 13px;
  border: 1px solid #ECECEC;
  border-radius: 3px;
  background: #fff;
  text-decoration: none;
  cursor: default;
}

.ev-pagination a.page-numbers {
  border: 1px solid #ECECEC;
  background: #F9F9F9;
  cursor: pointer;
}

.ev-pagination a.page-numbers:hover {
  border: 1px solid #B1C9D8;
  background: #EEF4F9;
}

.ev-galleries-content {
  display: block;
  width: 100%;
}

.ev-galleries-content .main-title {
  display: block;
  margin-bottom: 30px;
  position: relative;
}

.ev-galleries-content .right {
  float: right;
}

.ev-galleries-content .main-title h3 {
  color: #000;
  font-size: 36px;
  font-weight: bold;
  line-height: 48px;
  clear: none;
}

.ev-galleries-content .main-title a.right {
  margin-top: 15px;
  display: block;
}

.waiter.loading {
  display: block;
  background: #ffffff url(../images/loading.gif) no-repeat center center!important;
  line-height: 0px;
  /*min-height: 400px;*/
}

.waiter.loading img {
  opacity: 0.6;
  filter: alpha(opacity=60);
}

.photo-gallery-items .item .item-content {
  padding: 0;
  background-color: transparent;
}

.photo-gallery-items .item.no-image .item-header {
  display: none;
}

.photo-gallery-items .item.no-image .item-content h3 {
  margin-top: 0;
}

.photo-gallery-items .item .item-content h3 {
  margin-top: 15px;
}

.photo-gallery-items .item .item-content .item-category {
  font-size: 14px;
}

.photo-gallery-items .item .item-content .item-category a {
  border: 0;
}

.ev-galleries-content .main-title h3 {
  margin-top: 0;
}

.photo-gallery-thumbs .photo-gallery-nav {
  font-size: 11px;
}

.photo-gallery-description {
  padding: 0;
}

.photo-gallery-full {
  margin: 30px 0 30px 0;
}

.photo-gallery-description.shortcode-content {
  margin: 0px 0 30px 0;
}

.main-content.photo-gallery-items.lets-do-3 {
  margin: 30px 0 30px 0;
}

a.button.view-more {
  margin: 15px 0 31px 0;
}

.photo-gallery-inner.the-image.waiter.loaded {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 1439px) and (min-width: 990px) {
  .photo-gallery-items .item .item-content h3 a {
    font-size: 20px!important;
  }
}

@media screen and (max-width: 830px) and (min-width: 728px) {
  .photo-gallery-items .item .item-content h3 a {
    font-size: 20px!important;
  }
}

@media screen and (max-width: 989px) and (min-width: 727px) {
  .photo-gallery-items > .item:nth-child(2n+1) {
    clear: both;
    margin-left: 0!important;
  }
  .photo-gallery-items > .item:nth-child(3n+1) {
    clear: none;
    margin-left: 3%;
  }

  .photo-gallery-items > .item:nth-child(n+3) {
    margin-top: 28px;
  }

  .photo-gallery-items > .item {
    width: 48.07692307692308%;
  }
}


@media screen and (max-width: 727px) {
  .photo-gallery-items > .item:nth-child(3n+1) {
    clear: none;
    margin-left: 3%;
  }
  .photo-gallery-items > .item:nth-child(1n+1) {
    clear: both;
    margin-left: 0px;
  }

  .photo-gallery-items > .item {
    width: 100%;
  }
  .photo-gallery-items > .item {
    margin-top: 28px;
  }
}

@media screen and (min-width: 1024px) {
  .photo-gallery-inner.loading {
    min-width: 400px;
  }
}

@media screen and (max-width: 1024px) {
  .photo-gallery-inner.loading {
    min-width: 200px;
  }
}

@media screen and (max-width: 1315px) {
  .ev-gallery-main {
    margin: 0 15px 0 15px;
  }
}
