/* Gallery-only additions; layout, headings and controls reuse the theme. */
.portfolio-filter.pj-gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.portfolio-filter.pj-gallery-filter a {
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
}

.portfolio-filter.pj-gallery-filter a:hover,
.portfolio-filter.pj-gallery-filter a:focus,
.portfolio-filter.pj-gallery-filter a.active {
  border: 1px solid #017FAD;
  background: #017FAD;
  color: #fff;
}

.portfolio-filter.pj-gallery-filter a:focus-visible,
.pj-gallery .pj-gallery-card--link:focus-visible {
  outline: 2px solid #01A3DE;
  outline-offset: -2px;
}

.pj-gallery .pj-gallery-card {
  display: block;
}

.pj-gallery .pj-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, .08);
  background: #08141f;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}

.pj-gallery .pj-gallery-placeholder i {
  color: #01A3DE;
  font-size: 34px;
}

.pj-gallery .pj-gallery-caption {
  padding: 14px 4px 24px;
}

.pj-gallery .pj-gallery-caption__title {
  margin: 0 0 4px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.pj-gallery .pj-gallery-caption__meta {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

.pj-gallery .thumb {
  overflow: hidden;
}

.pj-gallery .thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .4s;
}

.pj-gallery .pj-gallery-card--link,
.pj-gallery .pj-gallery-card--link:hover,
.pj-gallery .pj-gallery-card--link:focus {
  text-decoration: none;
}

.pj-gallery .pj-gallery-card--link:hover img {
  transform: scale(1.04);
}

.pj-gallery .pj-gallery-card--link:hover .pj-gallery-caption__title,
.pj-gallery .pj-gallery-card--link:focus .pj-gallery-caption__title {
  color: #01A3DE;
}

/* The theme already uses two columns below 768px and one below 480px. */
@media (max-width: 480px) {
  .pj-gallery.gallery-isotope.grid-3 .gallery-item {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-gallery .thumb img {
    transition: none;
  }
}

/* Job details retain the theme's banner and body typography. */
.pj-job p.pj-inner-header__title {
  color: #b3b3b3;
}

.pj-job .pj-job__cover {
  border-radius: 0;
}

.pj-job .pj-job__info {
  margin: 16px 0 22px;
  padding-left: 14px;
  border-left: 3px solid #01A3DE;
}

.pj-job .pj-gallery-caption__meta {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}
