﻿/* image gallery container */
.image-gallery-container-outer {
  margin-top: 38px;
}
.image-gallery-container {
  padding: 4px 0;
}

.nGY2GThumbnail.nGY2GThumbnail_l1 {
  border: 1px solid #cecece !important;
}

@media (max-width: 992px) {
  .image-gallery-container {
    padding: 4px 30px 30px;
  }
}

/* tabs */
.custom-tabs-links {
  border: none !important;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  overflow-x: auto;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 8px auto 10px !important;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 1240px;
  list-style-type: none;
}
.custom-tabs-links .nav-item {
  margin: 0;
  padding: 0;
}
.custom-tabs-links .nav-item:not(:last-of-type) {
  border-right: 1px solid white;
}
.custom-tabs-links .nav-link {
  border-radius: 0;
  color: inherit;
  background-color: #961a4a;
  color: white;
  text-decoration: none !important;
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 80%;
  border: none !important;
  position: relative;
  display: block;
  padding: 10px 16px;
}
.custom-tabs-links .nav-link:hover,
.custom-tabs-links .nav-link.active {
  background-color: #ffa400 !important;
  border-bottom: none !important;
  color: white;
}
.custom-tabs-links .nav-link.active .tab-pane {
  padding: 0;
}

.toolbar .description {
  display: none !important;
}

/* image grid */
.grid {
  margin: 0 -10px 10px 0;
  text-align: center;
  overflow: hidden;
}

.grid-sizer,
.grid-item {
  width: calc(25% - 10px);
  margin: 0 10px 10px 0;
}
.grid-item {
  overflow: hidden;
  background-color: black;
}

/* image grid - large card */
.grid-item--large,
.grid-item:nth-child(2) {
  width: calc(50% - 10px);
}

.grid-item img,
.nGY2GThumbnail .nGY2GThumbnailImage.nGY2TnImg {
  display: block;
  max-width: 100%;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.grid-item:hover img,
.nGY2GThumbnailSub:hover img,
.nGY2GThumbnail:hover .nGY2GThumbnailImage.nGY2TnImg {
  opacity: 0.5 !important;
  -webkit-transform: scale(1.04) !important;
  -ms-transform: scale(1.04) !important;
  transform: scale(1.04) !important;
}

.grid-item:before,
.nGY2GThumbnail:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  background: url(/images/plus.svg) center center no-repeat;
  background-size: 35px;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
  opacity: 0;
  -webkit-transform: scale(1.8);
  -ms-transform: scale(1.8);
  transform: scale(1.8);
  z-index: 1;
}

.grid-item:hover:before,
.nGY2GThumbnail:hover:before {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
}

.popup-youtube:before {
  background: none !important;
}

/* caption */
.mfp-title,
.nGY2GThumbnailLabel,
.nGY2GThumbnailImageTitle {
  font-size: 100%;
  background: transparent !important;
  font-family: inherit !important;
}
.nGY2GThumbnailLabel {
  bottom: -40px !important;
  transition: all 0.4s ease-in-out;
}

.nGY2GThumbnail:hover .nGY2GThumbnailLabel {
  bottom: 0 !important;
}

.nGY2 .nGY2GThumbnailAlbumTitle,
.nGY2 .nGY2GThumbnailDescription,
.nGY2 .nGY2GThumbnailImageTitle {
  text-shadow: none !important;
}

/* load more button */
.btn-loadmore {
  padding: 14px 26px;
  font-size: 120%;
  cursor: pointer;
  margin-top: 20px;
  background-color: #263746;
  border: none;
}
.btn-loadmore:hover {
  background-color: #81153f;
}

.custom-tabs-links {
  margin-bottom: 10px;
}
.hide-me {
  display: none;
}
.mfp-inline-holder .mfp-content iframe {
  display: block;
  margin: 0 auto;
  width: 1080px;
  height: 640px;
  max-width: 100% !important;
}

@media only screen and (max-width: 992px) {
  .grid-item {
    width: calc(50% - 10px);
  }
}

@media only screen and (max-width: 640px) {
  .grid-item,
  .grid-item--large,
  .grid-item:nth-child(2) {
    width: 100%;
  }

  .grid {
    margin: 0;
  }
}

.btn-custom {
  background-color: black;
  margin: 6px;
  padding: 10px 20px;
  border-color: black;
  color: white;
}
.btn-custom.active,
.btn-custom:hover {
  background-color: white;
  border-color: black !important;
  color: black !important;
}

@media (max-width: 992px) {
  .btn-custom {
    margin: 4px;
    padding: 4px 12px;
  }
}

.custom-negative-margin {
  margin-top: -2em;
}
