/* Mobile-first layout */

/* Default: stacked with text above media */
.one_over_two-block {
  display: flex;
  flex-direction: column;
  /* gap: 0.75rem; */
}

/* Consistent vertical spacing between blocks */
.one_over_two-gap {
  margin-bottom: 1.5rem; /* same as gap in .one_over_two-pair */
}

.one_over_two-title {
  font-size: 1.25rem;           /* smaller than default h4 */
  font-weight: 300;             /* thinner, clinical feel */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.25px;       /* slight spacing for clarity */
  margin-bottom: 0.25rem;
  line-height: 1.4;
  text-transform: none;         /* avoid all-caps unless intentional */
}

.one_over_two-title--lead {
  font-weight: 600;
}

.one_over_two-pair {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.one_over_two-fixed,
.one_over_two-flex {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Media elements */
.one_over_two-media {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.one_over_two-media--parallax {
  transform: scale(1);
  transition: transform 0.3s ease-out;
  will-change: transform;
}

/* Caption styling */
.one_over_two-caption {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.one_over_two-text {
  font-size: 1.125rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* Frames shrink to content on mobile */
.one_over_two-frame--match,
.one_over_two-frame--hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Desktop overrides */
@media (min-width: 768px) {
  .one_over_two-pair {
    flex-direction: row;
    align-items: flex-start;
  }

  .one_over_two-fixed {
    flex-shrink: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
  }

  .one_over_two-fixed img {
    height: 300px;
    width: auto;
    object-fit: contain;
  }

  .one_over_two-flex {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .one_over_two-frame--match {
    height: 300px;
  }

  .one_over_two-frame--match img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .one_over_two-frame--hero {
    height: 300px;
    max-height: 300px;
  }

  .one_over_two-frame--hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .one_over_two-fixed .one_over_two-title,
  .one_over_two-flex .one_over_two-title {
    order: 2; /* move title below media */
  }

  .one_over_two-fixed img,
  .one_over_two-flex .one_over_two-frame {
    order: 1;
  }

}