/* Portfolio Gallery Grid */
.portfolio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Random Image Styles */
.random-banner {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.random-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(34, 34, 34, 0.6);
}

.decorative-image {
  position: absolute;
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
}

.scrolling-image-strip {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.scrolling-images {
  display: inline-block;
  animation: scroll 40s linear infinite;
}

.scrolling-images img {
  display: inline-block;
  margin: 0 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Page-specific image placements */
.about-hero {
  background-attachment: fixed;
}

.programs-grid-item {
  background-size: cover;
  background-position: center;
  position: relative;
}

.programs-grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
}

.contact-form-decor {
  position: relative;
}

.contact-form-decor::before,
.contact-form-decor::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  opacity: 0.2;
  background-size: cover;
  background-position: center;
}

.contact-form-decor::before {
  top: 20%;
  left: -30px;
}

.contact-form-decor::after {
  bottom: 20%;
  right: -30px;
}