/* ==========================================================
   TRADE CONTENT TYPE
========================================================== */


/* ==========================================================
   Trade Image
   Floats Left
========================================================== */

.tradecontentimage {
  float: left;
  width: 300px;
  max-width: 40%;
  margin: 0 30px 20px 0;
}

.tradecontentimage img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}


/* ==========================================================
   Trade Description
   Displays to Right of Image
========================================================== */

.tradecontentdescription {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333333;
  overflow: hidden;
  margin-bottom: 30px;
}

.tradecontentdescription p {
  margin-top: 0;
  margin-bottom: 18px;
}


/* ==========================================================
   Trade YouTube Video
   Large and Centered
========================================================== */

.tradecontentvideo {
  clear: both;
  width: 100%;
  margin: 40px auto 0;
  text-align: center;
}

.tradecontentvideo .field__item,
.tradecontentvideo .media,
.tradecontentvideo .media--type-remote-video,
.tradecontentvideo .media-oembed-content {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.tradecontentvideo iframe {
  width: 900px !important;
  max-width: 100% !important;
  height: 506px !important;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}


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

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


/* ==========================================================
   Trade Popup Link
========================================================== */

.trade-popup-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.trade-popup-link:hover,
.trade-popup-link:focus {
  color: inherit;
  text-decoration: none;
}


/* ==========================================================
   Trade Grid Image
========================================================== */

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

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


/* Grid Image Hover */

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


/* ==========================================================
   Trade Grid Title
========================================================== */

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

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


/* ==========================================================
   Hidden Popup Container
========================================================== */

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


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

.trade-popup-content {
  width: 100%;
  max-width: 1000px;
  padding: 35px;
  box-sizing: border-box;
  background: #ffffff;
  text-align: left;
}


/* ==========================================================
   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 YouTube Video
========================================================== */

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

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

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


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

#colorbox {
  max-width: 95vw !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) {

  /* Content Type Video */

  .tradecontentvideo .media,
  .tradecontentvideo .media--type-remote-video,
  .tradecontentvideo iframe,
  .tradecontentvideo .media-oembed-content {
    width: 100% !important;
    max-width: 800px !important;
  }


  /* Grid Image */

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

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


  /* Popup */

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

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

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

  .trade-popup-video iframe {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }
}


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

@media (max-width: 768px) {

  /* ========================================================
     Content Type
  ======================================================== */

  /* Stack image above description */

  .tradecontentimage {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 25px 0;
  }

  .tradecontentdescription {
    overflow: visible;
    font-size: 1.15rem;
  }


  /* Responsive centered content-type video */

  .tradecontentvideo {
    width: 100%;
    margin-top: 30px;
  }

  .tradecontentvideo .field__item {
    width: 100%;
  }

  .tradecontentvideo .media,
  .tradecontentvideo .media--type-remote-video,
  .tradecontentvideo iframe,
  .tradecontentvideo .media-oembed-content {
    width: 100% !important;
    max-width: 100% !important;
  }

  .tradecontentvideo iframe,
  .tradecontentvideo .media-oembed-content {
    aspect-ratio: 16 / 9;
    height: auto !important;
  }


  /* ========================================================
     Trade Grid
  ======================================================== */

  .trade-grid-card {
    margin-bottom: 25px;
  }

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

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

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


  /* ========================================================
     Popup
  ======================================================== */

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

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

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

  .trade-popup-video {
    margin-top: 25px;
  }

  .trade-popup-video .field__item,
  .trade-popup-video .media,
  .trade-popup-video .media--type-remote-video,
  .trade-popup-video .media-oembed-content {
    width: 100% !important;
    max-width: 100% !important;
  }

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