/* New project photos added at the top of the gallery page. */

.revo-gallery-new {
  box-sizing: border-box;
  color: #333333;
  font-family: Montserrat, Poppins, sans-serif;
  margin: 0 auto;
  max-width: 1170px;
  padding: 10px 16px 28px;
  width: 100%;
}

.revo-gallery-new *,
.revo-gallery-new *::before,
.revo-gallery-new *::after {
  box-sizing: border-box;
}

.revo-gal-featured {
  margin: 0 auto 28px;
  max-width: 560px;
}

.revo-gal-set {
  margin: 0 0 32px;
}

.revo-gal-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .revo-gal-grid-2,
  .revo-gal-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .revo-gal-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.revo-gal-item {
  margin: 0;
}

.revo-gal-open {
  background: #f3f4f6;
  border: 0;
  border-radius: 10px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.revo-gal-open:focus-visible {
  outline: 2px solid #188bf6;
  outline-offset: 3px;
}

.revo-gal-item img {
  border-radius: 10px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.revo-gal-caption {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  margin: 10px 0 0;
  text-align: center;
}

.revo-gal-label {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 6px;
  padding: 3px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.revo-gal-label-before {
  background: #e5e7eb;
  color: #374151;
}

.revo-gal-label-after {
  background: #dcfce7;
  color: #166534;
}

.revo-gal-label-progress {
  background: #fef3c7;
  color: #92400e;
}

.revo-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 24px 16px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
}

.revo-lightbox.is-open {
  display: flex;
}

.revo-lightbox img {
  max-height: min(92vh, 1600px);
  max-width: min(96vw, 1600px);
  object-fit: contain;
}

.revo-lightbox-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 10px;
}

body.revo-lightbox-open {
  overflow: hidden;
}
