.card .content {
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.card .content .card-content a{
  color: #0075c9;
}

.link-group {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  transform: translateZ(0);
  will-change: transform;
  box-sizing: border-box;
  background: transparent;
}

.card.slide-up .link-group {
  background: var(--white);
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.card .media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section.card-container:not(.peek-carousel) {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
  place-items: start stretch;
}

.peek-carousel .resource-card-wrapper {
  height: auto;
}

.peek-carousel .resource-card-wrapper .title, .description .button-container {
  text-align: left;
}


:root {
  --card-aspect-ratio: 4 / 3;

  /* ~270:200 (auto scales responsively) */
  --card-min-width: 250px;

  /* smallest allowed card */
  --card-gap: 1.5rem;
}

@media (width >= 1200px) {
  /* Slide-up animation styles for hover effect */
  .card.slide-up {
    position: relative;
    overflow: hidden;
  }

  .card.slide-up .media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .card.slide-up .link-group {
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
  }

  .card-content {
    display: grid;
    gap: 10px;
  }

  .card.slide-up .card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    box-sizing: border-box;
    transform: translateY(calc(100% - 60px));
    height: calc(100% - 200px);
  }

  .card.slide-up .card-content .title,
  .card.slide-up .card-content .title *,
  .card.slide-up .card-content .eyebrow,
  .card.slide-up .card-content .eyebrow * {
    display: block !important;
  }

  .card.slide-up .card-content > :not(.title, .eyebrow) {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .card.slide-up:hover .card-content {
    transform: translateY(0);
  }

  .card.slide-up:hover .card-content > :not(.title) {
    opacity: 1;
  }
}

.card .media .video-player-section {
  position: relative;
}

.card .media.video-player .video-player-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 48px;
  height: 48px;
}

.card .video-player-slot {
  width: 100%;
}

.bc-modal-player-slot video-js,
.bc-modal-player-slot .video-js {
  width: 100% !important;
  height: 100% !important;
}

.card .video-player-slot video-js,
.card .video-player-slot .video-js {
  width: 100% !important;
  height: 100% !important;
}

.video-js .vjs-control-bar {
  color: #bdbfc4 !important;
  background: linear-gradient(to top, rgb(0 0 0 / 100%), rgb(0 0 0 / 0%));
  height: 100px;
  padding: 40px 20px 0;
  transform: translateY(0);
}

.video-js .vjs-dock-text {
  background: #000 !important;
  height: 40px;
}

.card .video-player figcaption {
  font: var( --font-16-24-gotham-book);
  color: var(--off-black);
  margin-top: 20px;
}

.video-js .vjs-play-progress {
  background-color: #38c6f4;
}

.video-js .vjs-progress-control .vjs-progress-holder {
  height: 10px;
}

.vjs-progress-control.vjs-control {
  margin-top: 30px;
  padding: 0 20px;
}

.video-player .video-player-trigger .video-player-button-image {
  height: auto !important;
}

@media (width >= 768px) {
  .video-player .video-player-trigger {
    width: 58px;
    height: 58px;
  }  
}

.bc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgb(0 0 0 / 75%);
  align-items: center;
  justify-content: center;
}

@media (width <= 1199px) {
  .bc-modal-overlay {
    align-items: flex-start !important;
    padding-top: 40px;
  }  
}

.bc-modal-overlay.bc-modal-open {
  display: flex;
}

body.bc-modal-active {
  overflow: hidden;
}

.bc-modal-box {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.bc-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  padding: 0;
}

.bc-modal-close:hover {
  color: #ccc;
}

.bc-modal-player-slot {
  width: 100%;
  height: 100%;
}
