/* Related posts styles (child theme) */
.related-posts{margin-top:30px;clear:both}
.related-posts .section-title{margin-bottom:15px}
.related-posts .row{display:flex;flex-wrap:wrap;margin-left:-10px;margin-right:-10px}
.related-posts .related-item{flex:1 1 calc(33.333% - 20px);max-width:calc(33.333% - 20px);padding:0 10px;box-sizing:border-box;margin-bottom:20px}
.related-posts .related-thumb img{width:100%;height:auto;display:block}
.related-posts .related-title{font-size:16px;margin:8px 0 4px}
.related-posts .meta.small{color:#777;font-size:12px}
@media (max-width:768px){
  .related-posts .related-item{flex:1 1 100%;max-width:100%}
}

/* Force visible tags area if hidden by other styles */
.tag-content, .tag-content .meta-info, .tag-content .meta-item, .meta-item.meta-tags {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #333 !important;
  font-size: 13px !important;
}
.tag-content .meta-info p{margin:8px 0 0}

/* Carousel-specific styles */
.related-posts .lcam-carousel-container{position:relative}
.related-posts .section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:15px;
  padding-left:0;
  padding-right:0;
  width:100%;
}
.related-posts .section-title .heading{
  margin:0;
  font-size:20px;
  padding:0;
  text-align:left;
  flex:0 1 auto;
}
.related-posts .section-title .related-controls{
  display:flex;
  gap:8px;
  margin-left:auto;
  align-items:center;
}
.related-posts .related-prev,.related-posts .related-next{background:#fff;border:1px solid #e6e6e6;padding:8px;width:36px;height:36px;border-radius:3px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#333}
.related-posts .related-prev i,.related-posts .related-next i{color:#f7941e;font-size:16px}
.related-posts .related-carousel-viewport{overflow:hidden}
.related-posts .related-carousel{display:flex;gap:15px;list-style:none;margin:0;padding:0;transition:transform 0.45s ease;will-change:transform}
.related-posts .related-carousel li.related-slide{box-sizing:border-box}
.related-posts .related-item .thumbnail-media img{width:100%;height:auto;display:block}
.related-posts .related-item .thumbnail-body{padding:18px;background:#fff}
.related-posts .related-item .button{display:inline-block;margin-top:10px}

@media (max-width:991px){
  .related-posts .related-carousel li.related-slide{flex:0 0 calc((100%/2) - 10px);width:calc((100%/2) - 10px)}
}
@media (max-width:600px){
  .related-posts .related-carousel li.related-slide{flex:0 0 100%;width:100%}
  .related-posts .related-controls{top:4px;right:4px}
}


/* Carousel overrides to prevent narrow wrapping and ensure consistent visuals */
.related-posts .lcam-carousel-container{position:relative}
.related-posts .related-carousel-viewport{width:100%;overflow:hidden}
.related-posts .related-carousel{display:flex;gap:15px;list-style:none;margin:0;padding:12px 0;align-items:stretch}
.related-posts .related-carousel{ -ms-overflow-style: none; scrollbar-width: none; }
.related-posts .related-carousel::-webkit-scrollbar{ display: none; }
.related-posts .related-carousel li.related-slide{flex:0 0 360px;min-width:260px;box-sizing:border-box;width:360px}
.related-posts .related-carousel li.related-slide .related-item{max-width:100%;padding:0;margin:0}
.related-posts .related-carousel li.related-slide .thumbnail-body{padding:18px;min-height:120px;display:flex;flex-direction:column;justify-content:space-between}
.related-posts .thumbnail-media{height:160px;overflow:hidden}
.related-posts .thumbnail-media img{width:100%;height:100%;object-fit:cover;display:block}
.related-posts .related-title a{display:block;white-space:normal;word-break:break-word;line-height:1.25}
.related-posts .related-controls{display:flex;gap:8px}
.related-posts .related-prev,.related-posts .related-next{background:#fff;border:1px solid #e6e6e6;padding:8px;width:36px;height:36px;border-radius:3px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.related-posts .related-prev i,.related-posts .related-next i{font-size:16px;color:#f7941e}

/* Disabled state */
.related-posts .related-prev.disabled, .related-posts .related-next.disabled, .related-posts button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width:991px){
  .related-posts .related-carousel li.related-slide{flex:0 0 calc(50% - 15px);width:calc(50% - 15px)}
}
@media (max-width:600px){
  .related-posts .related-carousel li.related-slide{flex:0 0 100%;width:100%}
  .related-posts .related-controls{top:8px;right:8px;flex-direction:row}
  .related-posts .lcam-carousel-container{padding-right:16px}
}


/* Clamp titles to 2 lines with ellipsis */
.related-posts .article-title .heading a,
.related-posts .related-title a,
.related-posts h4.heading a {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.25;
}


/* Excerpt: clamp to 3 lines with ellipsis */
.related-posts .copy.push-bottom,
.related-posts .copy {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

/* Theme-aligned overrides */
.related-posts { margin-top:30px; clear:both; }
.related-posts .section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; padding-left:0; padding-right:0; width:100%; }
.related-posts .section-title .heading { margin:0; font-size:20px; padding:0; text-align:left; flex:0 1 auto; font-family: "Lora", serif; color: #333333; line-height:1.4; padding-bottom:8px; margin-bottom:12px; border-bottom:1px dotted #d3d3d3; position:relative; }
.related-posts .section-title .heading:after { content:""; position:absolute; left:0; bottom:-1px; width:50px; height:3px; background-color:#eb7a00; }
.related-posts .section-title .related-controls { display:flex; gap:8px; margin-left:auto; align-items:center; }
.related-posts .related-prev, .related-posts .related-next { background:#fff; border:1px solid #e6e6e6; padding:8px; width:36px; height:36px; border-radius:3px; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#eb7a00; transition:all .15s; }
.related-posts .related-prev:hover, .related-posts .related-next:hover { background:#eb7a00; color:#fff; }
.related-posts .related-prev:hover i, .related-posts .related-next:hover i { color:#fff; }
.related-posts .thumbnail-media { height:160px; overflow:hidden; border-bottom:1px solid #f0f0f0; }
.related-posts .thumbnail-media img { width:100%; height:100%; object-fit:cover; display:block; }
.related-posts .related-item .thumbnail-body { padding:18px 20px; background:#fff; border:1px solid #f0f0f0; box-shadow:0 1px 2px rgba(0,0,0,0.03); min-height:140px; display:flex; flex-direction:column; justify-content:space-between; }
.related-posts .related-item .button { display:inline-block; margin-top:10px; background:#eb7a00; color:#fff; border-color:#eb7a00; padding:8px 14px; border-radius:3px; text-decoration:none; }
.related-posts .copy, .related-posts .copy.push-bottom { color:#595959; font-size:14px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; text-overflow:ellipsis; white-space:normal; }
.related-posts .related-title a, .related-posts h4.heading a { font-family:"Lora", serif; color:#333; font-size:16px; font-weight:700; text-decoration:none; display:block; line-height:1.25; -webkit-line-clamp:2; -webkit-box-orient:vertical; display:-webkit-box; overflow:hidden; }

/* Global thumbnail standardization (child theme) */
.media-image img,
.thumbnail-media img,
.featured-image img,
.post-news-item .thumbnail a img,
.layers-content-widget .media-image img,
.lcam-posts-widget-section .thumbnail-media img,
.widget .featured-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Slightly smaller thumbs on narrower screens */
@media (max-width: 991px) {
  .media-image img,
  .thumbnail-media img,
  .lcam-posts-widget-section .thumbnail-media img {
    height: 200px;
  }
}

/* Single post: allow full-width featured image with natural height */
.single-post .has-post-thumbnail .thumbnail-media img,
.single-post .featured-image img,
.single-post .media-image img {
  height: auto;
  max-height: none;
  object-fit: cover;
}

/* Sidebar small thumbs */
.sidebar .popular-posts .wpp-list li a img,
.sidebar .sidebar-tva .layers-masonry-column .featured-image img {
  width: 75px;
  height: 75px;
  object-fit: cover;
}

/* Ensure content images keep natural aspect ratio */
.entry-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.single-post article .section-title .heading,
.single-post .meta-item {
    padding-left: 0 !important;
}

.single-post .meta-info{
    margin-bottom:0 !important;
}

.push-bottom{
    margin-top: 2%;
}

.content-vertical-massive {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}