/* Loren theme – Videos and In the News pages (loaded only on those pages). */

/* ---------- Shared ---------- */
.loren-media-intro {
  margin: 0 0 25px;
  font-size: 14px;
  line-height: 1.7;
  color: #484848;
}
#myslider .sidebar__inner .loren-media-intro { margin: 10px 0 20px; }

/* ---------- Videos: grid ---------- */
#myslider #content section.loren-videos .loren-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
#myslider #content section.loren-videos article.loren-video-card {
  margin: 0;
  padding: 0;
  border: 0;
}
.loren-video-card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 15px;
  background: #214E47;
  margin-bottom: 10px;
}
.content-display .loren-video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.loren-video-card .thumb:hover img { transform: scale(1.04); }
#myslider #content section article .play,
.loren-video-single .play,
.loren-more-item .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(35, 57, 54, 0.75);
}
#myslider #content section article .play::after,
.loren-video-single .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
}
#myslider #content section article .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #233936;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
#myslider #content section.loren-videos article.loren-video-card span.date {
  padding-bottom: 5px;
  font-size: 12px;
}
#myslider #content section.loren-videos article.loren-video-card .title {
  font-family: 'Merriweather', 'Poppins', serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Videos: single ---------- */
.loren-video-single {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.loren-video-main { flex: 999 1 560px; min-width: 0; }
.loren-video-more { flex: 1 1 260px; max-width: 360px; }
.loren-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #214E47;
  font-weight: 500;
  text-decoration: none;
}
.loren-back:hover { text-decoration: underline; }
.loren-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background: #233936;
  margin-bottom: 20px;
}
.loren-player iframe,
.loren-player-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.loren-player .loren-player-btn,
.loren-player .loren-player-btn:hover {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: #233936;
}
.content-display .loren-player-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loren-video-single .play { width: 76px; height: 76px; margin: -38px 0 0 -38px; transition: background 0.3s ease; }
.loren-player-btn:hover .play,
.loren-player-btn:focus-visible .play { background: #408874; }
.loren-video-main .date {
  display: block;
  clear: both;
  color: #214E47;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 13px;
}
.loren-video-main h1.title {
  margin: 8px 0 18px;
  color: #214E47;
  font-family: 'Merriweather', 'Poppins', serif;
  font-weight: 700;
  font-size: calc(18px + 0.8vw);
  line-height: 1.4;
}
.loren-video-desc { line-height: 1.9; overflow-wrap: anywhere; }
.loren-video-desc a { color: #214E47; }
.loren-video-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.loren-video-actions a.btn { margin: 0; }
.loren-video-actions a.btn-outline { background: #fff; color: #214E47; border-color: #214E47; }
.loren-video-actions a.btn-outline:hover { background: #C6DDD1; }
.loren-video-more .title {
  margin: 0 0 18px;
  color: #214E47;
  font-family: 'Merriweather', 'Poppins', serif;
  font-size: 20px;
}
.loren-video-single .loren-more-item {
  display: flex;
  align-items: flex-start; /* keep thumbnails 16:9, not stretched to the text */
  gap: 12px;
  margin-bottom: 16px;
  color: #214E47;
  text-decoration: none;
}
.loren-video-single .loren-more-item .thumb {
  display: block;
  flex: 0 0 120px;
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #214E47;
}
.content-display .loren-more-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.loren-video-single .loren-more-item .text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.loren-video-single .loren-more-item .t {
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* long titles end with … after 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.loren-video-single .loren-more-item .d { font-size: 11px; color: #484848; }
.loren-video-single .loren-more-item:hover .t { text-decoration: underline; }

/* ---------- In the News ---------- */
#myslider #content section.loren-news article.loren-news-item {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}
.loren-news-item .photo {
  flex: 0 0 220px;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  background: #F4F4F4;
}
.content-display .loren-news-item .photo img { width: 100%; height: 100%; object-fit: cover; }
.loren-news-item .body { flex: 1 1 300px; min-width: 0; }
#myslider #content section.loren-news article .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
#myslider #content section.loren-news article .meta span.outlet {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: #214E47;
  color: #fff;
  font-size: 12px;
}
#myslider #content section.loren-news article .meta span.date {
  display: inline-block;
  padding: 0;
  font-size: 12px;
}
#myslider #content section.loren-news article .title {
  font-family: 'Merriweather', 'Poppins', serif;
  font-size: 20px;
  line-height: 1.45;
}
#myslider #content section.loren-news article .title a:hover { text-decoration: underline; }
#myslider #content section.loren-news article a.btn { margin-bottom: 0; }
#myslider #content section.loren-news article a.btn span,
#myslider #content section.loren-news article .title span { display: inline; }

/* Outlet dropdown in the sidebar (desktop; phones use the filter in the top bar) */
#myslider .sidebar__inner form.loren-outlet-select { margin: -20px 0 30px; }
#myslider .sidebar__inner form.loren-outlet-select label {
  display: block;
  margin-bottom: 6px;
  color: #214E47;
  font-size: 13px;
  font-weight: 500;
}
#myslider .sidebar__inner form.loren-outlet-select select {
  width: 90%;
  padding: 10px 20px;
  border: 1px solid #484848 !important;
  border-radius: 10px;
  color: #214E47;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23214E47' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: inherit;
  cursor: pointer;
}

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
  .loren-video-more { max-width: none; }
  .loren-news-item .photo { flex-basis: 100%; }
}

/* Keep the sidebar from being cut off when a filter returns only a few items */
@media (min-width: 769px) {
  #myslider #content section.loren-news,
  #myslider #content section.loren-videos { min-height: 720px; }
}
