.project-description {
	max-width: 640px;
	margin-bottom: 24px;
	line-height: 18px;
}

.project-facts {
	max-width: 640px;
	margin: 0 0 28px 0;
	padding: 14px 0;
	border-top: 1px dotted #333;
	border-bottom: 1px dotted #333;
	display: grid;
	grid-template-columns: 150px 1fr;
	column-gap: 24px;
	row-gap: 8px;
}

.project-facts dt {
	color: #989898;
}

.project-facts dd {
	margin: 0;
	color: #777;
}

.project-facts a {
	color: #999;
	text-decoration: underline;
	text-decoration-color: #555;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.project-facts a:hover,
.project-facts a:focus {
	color: #fff;
	text-decoration-color: #777;
}

@media only screen and (max-width: 640px) {
	.project-description,
	.project-facts {
		margin-left: 10px;
		margin-right: 10px;
	}

	.project-facts {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}

	.project-facts dd {
		margin-bottom: 8px;
	}
}

/* ==========================================
   BMA Project Image Motion Styles
   ========================================== */

/* Container for animated project image */
.bma-motion-wrapper.project-img {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Base style for motion images inside the wrapper */
.bma-motion-wrapper img.bma-motion-element {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin: 0;
  max-width: 100%;
}

/* Option 1: Zoom Animation */
.bma-motion-zoom img.bma-zoom-img {
  animation: bma-slow-zoom-loop 18s linear infinite;
}

@keyframes bma-slow-zoom-loop {
  0% {
    transform: scale(1);
    animation-timing-function: ease-in-out;
  }
  33.33% {
    transform: scale(1.07);
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: scale(1);
  }
}

/* Option 2: Pan Animation */
.bma-motion-pan img.bma-pan-img {
  animation: bma-gentle-pan-loop 18s linear infinite;
}

@keyframes bma-gentle-pan-loop {
  0% {
    transform: scale(1.1) translate(-2%, 0);
    animation-timing-function: ease-in-out;
  }
  33.33% {
    transform: scale(1.1) translate(2%, 0);
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: scale(1.1) translate(-2%, 0);
  }
}

/* Option 3: Image-to-Image Crossfade Container */
.bma-motion-crossfade {
  background-color: #000;
  height: auto;
}

.bma-motion-crossfade img.bma-cf-img-1 {
  position: relative; /* Set natural layout height */
  z-index: 1;
  animation: bma-crossfade-animation-1 12s ease-in-out infinite;
}

.bma-motion-crossfade img.bma-cf-img-2 {
  position: absolute; /* Stacked directly on top */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: bma-crossfade-animation-2 12s ease-in-out infinite;
}

@keyframes bma-crossfade-animation-1 {
  0%, 20%, 80%, 100% {
    opacity: 1;
  }
  40%, 60% {
    opacity: 0;
  }
}

@keyframes bma-crossfade-animation-2 {
  0%, 20%, 80%, 100% {
    opacity: 0;
  }
  40%, 60% {
    opacity: 1;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .bma-motion-zoom img.bma-zoom-img,
  .bma-motion-pan img.bma-pan-img,
  .bma-motion-crossfade img.bma-cf-img-1,
  .bma-motion-crossfade img.bma-cf-img-2 {
    animation: none !important;
    transform: none !important;
  }
  .bma-motion-crossfade img.bma-cf-img-2 {
    opacity: 0 !important; /* Always fall back to first still statically */
  }
}
