/* ==========================================================
   TRADE GRID
========================================================== */

.trade-grid-card {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.trade-popup-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.trade-popup-link:hover {
  text-decoration: none;
}


/* ==========================================================
   TRADE GRID IMAGE
========================================================== */

.trade-grid-image {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 15px;
}

.trade-grid-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.trade-grid-card:hover .trade-grid-image img {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}


/* ==========================================================
   TRADE GRID TITLE
========================================================== */

.trade-grid-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #333333;
}

.trade-grid-card:hover .trade-grid-title {
  color: #5387ce;
}


/* ==========================================================
   HIDDEN POPUP CONTENT
========================================================== */

.trade-popup-hidden {
  display: none;
}


/* ==========================================================
   POPUP CONTENT
========================================================== */

.trade-popup-content {
  width: 100%;
  max-width: 950px;
  padding: 30px;
  box-sizing: border-box;
  background: #ffffff;
}


/* Popup Title */

.trade-popup-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #5387ce;
  margin: 0 0 25px;
}


/* Popup Description */

.trade-popup-description {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 30px;
}

.trade-popup-description p {
  margin-top: 0;
  margin-bottom: 18px;
}


/* ==========================================================
   POPUP VIDEO
========================================================== */

.trade-popup-video {
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.trade-popup-video .field__item,
.trade-popup-video .media,
.trade-popup-video .media--type-remote-video {
  width: 100%;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.trade-popup-video iframe,
.trade-popup-video .media-oembed-content {
  display: block;
  width: 850px !important;
  max-width: 100% !important;
  height: 478px !important;
  margin: 0 auto;
  border: 0;
  border-radius: 12px;
}


/* ==========================================================
   COLORBOX WINDOW
========================================================== */

#colorbox {
  max-width: 95% !important;
}

#cboxWrapper {
  max-width: 100% !important;
}

#cboxContent {
  max-width: 100% !important;
}

#cboxLoadedContent {
  max-width: 100% !important;
  box-sizing: border-box;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 992px) {

  .trade-grid-image {
    max-width: 160px;
  }

  .trade-grid-image img {
    height: 160px;
  }

  .trade-popup-title {
    font-size: 2rem;
  }

  .trade-popup-description {
    font-size: 1.2rem;
  }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

  .trade-grid-image {
    max-width: 150px;
  }

  .trade-grid-image img {
    height: 150px;
  }

  .trade-grid-title {
    font-size: 1.1rem;
  }

  .trade-popup-content {
    padding: 20px;
  }

  .trade-popup-title {
    font-size: 1.7rem;
  }

  .trade-popup-description {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .trade-popup-video iframe,
  .trade-popup-video .media-oembed-content {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}