/* Gallery page styles. Loaded only by gallery.php. */

.gallery-page {
  background: #050505;
  color: #fff;
}

.gallery-page .page-banner {
  position: relative;
  overflow: hidden;
  padding: 128px 0 68px;
  background:
    radial-gradient(circle at 14% 10%, rgba(120,21,91,.44), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(244,165,28,.16), transparent 28%),
    linear-gradient(180deg, #111 0%, #050505 82%) !important;
}

.gallery-page .page-banner .container,
.gallery-page .our-work .container {
  max-width: min(1420px, calc(100% - 32px));
}

.gallery-page .page-title {
  max-width: 1080px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(34px, 4.6vw, 64px) !important;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gallery-page .page-title::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 20px;
  border-radius: 999px;
  background: #f4a51c;
}

.gallery-page .our-work {
  padding: 76px 0;
  background: #050505;
}

.gallery-page .nav-tabs {
  gap: 10px;
  border-bottom: 0;
}

.gallery-page .nav-tabs .nav-item {
  margin: 0;
}

.gallery-page .our-work .nav-tabs .nav-item .nav-link {
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 10px 18px;
  color: rgba(255,255,255,.78);
  background: #101010 !important;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .2px;
}

.gallery-page .our-work .nav-tabs .nav-item .nav-link:hover,
.gallery-page .our-work .nav-tabs .nav-item .nav-link:focus-visible {
  border-color: rgba(244,165,28,.34);
  color: #fff;
}

.gallery-page .our-work .nav-tabs .nav-item .nav-link.active {
  border-color: rgba(244,165,28,.64);
  background: #78155b !important;
  color: #fff;
}

.gallery-page .our-work .tab-content .work-img {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 0;
  background: #101010 !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
}

.gallery-page .our-work .tab-content .work-img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: var(--gallery-fit, cover);
  object-position: var(--gallery-position, center);
  transition: transform .28s ease, filter .28s ease;
}

.gallery-page .our-work .tab-content .work-img:hover img,
.gallery-page .our-work .tab-content .work-img:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.03) saturate(1.03);
}

.gallery-page .our-work .tab-content .work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .2s ease, background .2s ease;
}

.gallery-page .our-work .tab-content .work-img:hover::after,
.gallery-page .our-work .tab-content .work-img:focus-visible::after {
  border-color: rgba(244,165,28,.42);
  background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.34));
}

.gallery-page .work-modal .modal-content {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: #080808;
}

.gallery-page .work-modal .modal-body {
  padding: 16px;
}

.gallery-page .gallery-modal-image {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  background: #050505;
}

.gallery-page .gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border-radius: 50%;
  background-color: #fff;
  opacity: 1;
}

@media (max-width: 767px) {
  .gallery-page .page-banner {
    padding: 104px 0 52px;
  }

  .gallery-page .our-work {
    padding: 48px 0;
  }

  .gallery-page .nav-tabs {
    justify-content: flex-start !important;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .gallery-page .nav-tabs .nav-link {
    white-space: nowrap;
  }
}
