/* Video Callout
   Standalone video + quote block. Separate from the video carousel (.video__card),
   reuses theme tokens: NunitoSans_10pt, #751111, .container, .button.button_border_red */

/* Own section (Traci Hinden after the quote, bottom of other pages): 40px above and below */
.callouts {
  width: 100%;
  padding: 40px 0;
}

/* Traci Hinden: Experience follows right after, its own top margin would double the gap */
.callouts + .tr_road {
  margin-top: 0;
}

/* Inside an existing container: Practice Area, between the intro text and the accordions.
   The top margin collapses with the text margin above, so the gap is 40px on every screen */
.callouts__list_inline {
  margin: 40px 0;
}

/* Homepage: inside "Our practices areas", the text above already has 30px */
.area__callouts {
  margin: 10px 0 40px 0;
}

.callouts__list {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}

.vcallout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 580fr) minmax(0, 482fr);
  -webkit-column-gap: 40px;
     -moz-column-gap: 40px;
          column-gap: 40px;
  row-gap: 24px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

/* Long transcript open: keep the quote next to the video, not in the middle of the text */
.vcallout.reading {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}

/* Video without quote: never full width */
.vcallout_solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 580px;
  margin-inline: auto;
}

.vcallout [hidden] {
  display: none !important;
}

.vcallout__media {
  width: 100%;
  position: relative;
}

/* Default state: poster */

.vcallout__poster {
  width: 100%;
  aspect-ratio: 580 / 300;
  display: block;
  position: relative;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.vcallout__poster:focus-visible {
  outline: 2px solid #751111;
  outline-offset: 3px;
}

.vcallout__poster_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 16px;
  opacity: 0.9;
  -webkit-transition: opacity 0.3s linear;
  -o-transition: opacity 0.3s linear;
  transition: opacity 0.3s linear;
}

.vcallout__poster:hover .vcallout__poster_image,
.vcallout__poster:focus-visible .vcallout__poster_image {
  opacity: 1;
}

.vcallout__poster_play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  line-height: 0;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: -webkit-transform 0.3s linear;
  transition: transform 0.3s linear;
}

.vcallout__poster_play img {
  display: block;
}

.vcallout__poster:hover .vcallout__poster_play {
  -webkit-transform: translate(-50%, -50%) scale(1.1);
      -ms-transform: translate(-50%, -50%) scale(1.1);
          transform: translate(-50%, -50%) scale(1.1);
}

.vcallout__poster_badge {
  position: absolute;
  right: 20px;
  bottom: 20px;
  max-width: calc(100% - 40px);
  padding: 5px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

/* Active state: player card (same look as the carousel card) */

.vcallout__player {
  width: 100%;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
  -webkit-box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
          box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

/* Player follows the YouTube video proportions (16:9), so there are no black bars.
   At 16:9 the card is always at least as tall as the preview */
.vcallout__player_frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.vcallout__player_frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.vcallout__player_content {
  width: 100%;
  padding: 0 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.vcallout__player_caption {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.vcallout .vcallout__player_title,
.vcallout .vcallout__player_author {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 400;
  color: #313131;
  margin: 0;
}

.vcallout .vcallout__player_author {
  color: #515151;
}

.vcallout__player_button {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  padding: 2px 8px;
  font-family: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.vcallout__player.open .vcallout__player_button {
  background: #751111;
  color: #fff;
}

.vcallout__player.open .vcallout__player_button::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border: 1px solid #fff;
  display: block;
  content: "";
}

.vcallout__player_text {
  padding: 4px 8px 8px 8px;
}

.vcallout .vcallout__player_text p {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 400;
  color: #313131;
  margin: 0 0 12px 0;
}

.vcallout .vcallout__player_text p:last-child {
  margin: 0;
}

/* Quote */

.vcallout__quote {
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.vcallout .vcallout__quote_heading {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 500;
  color: #751111;
  margin: 0 0 12px 0;
}

.vcallout .vcallout__quote_text {
  margin: 0 0 30px 0;
  padding: 0;
  border: none;
}

.vcallout .vcallout__quote_text p {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
  color: #313131;
  margin: 0;
}

.vcallout .vcallout__quote_text p + p {
  margin: 12px 0 0 0;
}

.vcallout__quote_author {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 2px;
}

.vcallout__quote_author::before {
  width: 80px;
  height: 2px;
  margin: 0 0 10px 0;
  background: #751213;
  display: block;
  content: "";
}

.vcallout__quote_name {
  font-size: 1rem;
  line-height: 1.36;
  font-weight: 600;
  color: #1E1E1E;
}

.vcallout__quote_role {
  font-size: 0.875rem;
  line-height: 1.36;
  font-weight: 400;
  color: #757575;
}

/* Inside Practice Area accordions: 24px wrapper padding + 16px = 40px above */

.pr__item_wrapper > .vcallout {
  margin: 16px 0 40px 0;
}

/* Closed accordion: keep the buttons out of the tab order */
.drop:not(.open) .vcallout {
  visibility: hidden;
  -webkit-transition: visibility 0s 0.3s;
  -o-transition: visibility 0s 0.3s;
  transition: visibility 0s 0.3s;
}

@media (max-width: 1024px) {
  .vcallout {
    grid-template-columns: minmax(0, 1fr);
  }

  .vcallout__poster {
    aspect-ratio: 720 / 300;
  }

  .vcallout__poster_badge {
    right: 20px;
    bottom: 16px;
    padding: 6px 10px;
    font-size: 0.8125rem;
    line-height: 1.125rem;
  }

  .vcallout__player {
    padding: 8px 8px 12px 8px;
    gap: 12px;
  }

  .vcallout .vcallout__quote_text {
    margin: 0 0 20px 0;
  }

  .vcallout .vcallout__quote_text p {
    font-size: 1.125rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .vcallout__player_content {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 12px;
  }

  .vcallout__player_caption {
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .callouts__list {
    gap: 24px;
  }

  .vcallout__poster {
    aspect-ratio: 350 / 181;
  }

  .vcallout__poster_badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

}
