/* Shared "Our Recent Work" marquee gallery (service pages; home uses home-section-gallery-home in home.css) */

.recent-work-gallery {
  background: var(--gray-50);
}

.recent-work-gallery__head {
  text-align: center;
  margin-bottom: 3rem;
}

.recent-work-gallery__head .badge {
  margin-bottom: 1rem;
}

.recent-work-gallery__head .wedding-pricing-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(to right, var(--emerald-600), var(--emerald-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.recent-work-gallery__head .section__sub {
  margin: 0 auto;
  max-width: 42rem;
}

.recent-work-gallery .gallery-marquee-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  margin: 0 -1rem;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.recent-work-gallery .gallery-marquee-wrap::-webkit-scrollbar {
  display: none;
}

.recent-work-gallery .gallery-marquee-wrap.is-dragging {
  cursor: grabbing;
}

.recent-work-gallery .gallery-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  width: max-content;
}

.recent-work-gallery .gallery-marquee-track .gallery-item {
  flex: 0 0 auto;
  width: 280px;
  min-width: 280px;
}

.recent-work-gallery .gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: grab;
}

.recent-work-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.recent-work-gallery .gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 40%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.recent-work-gallery .gallery-item:hover::after {
  opacity: 1;
}

.recent-work-gallery .gallery-item-cat {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 9999px;
  color: var(--white);
  font-size: 0.875rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

.recent-work-gallery .gallery-item-location {
  font-size: 0.75rem;
  opacity: 0.9;
}

.recent-work-gallery .gallery-item-location::before {
  content: '·';
  margin-right: 0.35rem;
  opacity: 0.8;
}

.recent-work-gallery .gallery-item:hover .gallery-item-cat {
  opacity: 1;
}

@media (max-width: 640px) {
  .recent-work-gallery .gallery-marquee-wrap {
    margin: 0 max(-1rem, calc(-1 * env(safe-area-inset-left)));
    padding-left: max(1rem, env(safe-area-inset-left));
  }

  .recent-work-gallery .gallery-marquee-track .gallery-item {
    width: 220px;
    min-width: 220px;
  }
}

@media (max-width: 767px) {
  .recent-work-gallery .gallery-marquee-wrap {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .recent-work-gallery .gallery-marquee-track .gallery-item {
    width: 200px;
    min-width: 200px;
  }
}
