/* Gallery page — image tiles with a hover overlay + source badge, and a
   matching video card grid below. */

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--default-color), transparent 92%);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-overlay i {
  font-size: 20px;
}

/* ---------- Source badges (shared by image tiles and video cards) ---------- */
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.gallery-badge-product {
  background: var(--accent-color);
}

.gallery-badge-service {
  background: var(--heading-color);
}

.gallery-badge-about-us {
  background: #6b7280;
}

/* ---------- Videos ---------- */
.gallery-video-card {
  height: 100%;
}

.gallery-video-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--default-color), transparent 92%);
}

.gallery-video-frame video {
  width: 100%;
  display: block;
}

.gallery-video-title {
  margin: 12px 2px 0;
  font-weight: 600;
  color: var(--heading-color);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item img,
  .gallery-item:hover img,
  .gallery-overlay {
    transition: none;
    transform: none;
  }
}
