/* Page background */
body {
  background-color: #f8f9fa !important;
}

/* Tabs */
.gallery-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar {
  display: none;
}
.gallery-tabs .nav-link {
  white-space: nowrap;
  border-radius: 50px;
  border: 2px solid var(--green);
  padding: 0.86rem 1.8rem;
  color: var(--green);
  letter-spacing: 0.04em;
}
.gallery-tabs .nav-link.active {
  background-color: var(--green) !important;
  color: #fff;
}
@media (max-width: 992px) {
  .gallery-tabs .nav-link {
    padding: 0.28rem 0.88rem
  }
}

/* Grid */
.gallery-item {
  background-color: #f1f1f1;
}
.gallery-link img {
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-link:hover img,
.gallery-link:focus img {
  transform: scale(1.06);
}
.gallery-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-link:hover::after,
.gallery-link:focus::after {
  opacity: 0;
}

.gallery-item-video {
  background-color: #2dcb7421;
}

/* Zoom badge */
.gallery-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.gallery-zoom::before,
.gallery-zoom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #212529;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.gallery-zoom::before {
  width: 1.1rem;
  height: 2px;
}
.gallery-zoom::after {
  width: 2px;
  height: 1.1rem;
}
.gallery-link:hover .gallery-zoom,
.gallery-link:focus .gallery-zoom {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Play badge (video items) */
.gallery-zoom-video::before,
.gallery-zoom-video::after {
  background: none;
}
.gallery-zoom-video::before {
  left: calc(50% + 0.15rem);
  width: 0;
  height: 0;
  border-radius: 0;
  border-style: solid;
  border-width: 0.6rem 0 0.6rem 1rem;
  border-color: transparent transparent transparent #212529;
}
.gallery-zoom-video::after {
  content: none;
}

/* Loader */
.gallery-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0;
}
.gallery-loader-circle {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--bs-primary, #0d6efd);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}
@keyframes gallery-spin {
  to {
    transform: rotate(360deg);
  }
}
