/* News list: prevent thumbnail link from taking full row width */

/*.div-posts-news-list .elementor-posts-container .elementor-post__thumbnail img {
  margin-top: 4px;
}*/

.div-posts-news-list .elementor-posts .elementor-post__thumbnail__link{
  width: auto;
  max-width: 280px;
  flex-shrink: 0;
}
/* News list item layout + thumbnail crop */
.post-type-archive-news .br-news-list .elementor-post {
  display: flex;
  gap: 24px;
  align-items: flex-start; /* keeps text starting at top */
}

/* Thumbnail column */
.post-type-archive-news .br-news-list .elementor-post__thumbnail {
  width: 320px;    /* adjust to taste */
  height: 200px;   /* adjust to taste */
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px; /* optional */
}

/* Link fills the box */
.post-type-archive-news .br-news-list .elementor-post__thumbnail__link {
  display: block;
  width: 100%;
  height: 100%;
}

/* Image covers the box */
.post-type-archive-news .br-news-list .elementor-post__thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* No news message */
.br-news-empty {
  padding: 40px 0;
  font-size: 18px;
  color: #666;
}


/************* News detail view: *************/


/* Single News hero image */
.br-news-hero img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px){
  .br-news-hero img{
    height: 240px;
  }
}



/* Single News gallery grid */
.br-news-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.br-news-gallery img{
  width: 100%;
  height: 180px !important;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  cursor: zoom-in;
}

@media (max-width: 767px){
  .br-news-gallery{
    grid-template-columns: 1fr;
  }
  .br-news-gallery img{
    height: 220px;
  }
}

/* Elementor lightbox arrows: visible + clickable */
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;

  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 48px !important;
  height: 48px !important;
  border-radius: 999px !important;

  align-items: center !important;
  justify-content: center !important;

  z-index: 999999 !important;
  pointer-events: auto !important;

  background: rgba(0,0,0,.45) !important; /* optional */
}

/* Place left/right */
.elementor-lightbox .elementor-swiper-button-prev { left: 16px !important; }
.elementor-lightbox .elementor-swiper-button-next { right: 16px !important; }

/* Ensure no overlay blocks clicks */
.elementor-lightbox .swiper,
.elementor-lightbox .swiper-wrapper,
.elementor-lightbox .swiper-slide,
.elementor-lightbox .swiper-zoom-container {
  pointer-events: none;
}
.elementor-lightbox .elementor-swiper-button-prev,
.elementor-lightbox .elementor-swiper-button-next,
.elementor-lightbox .dialog-close-button,
.elementor-lightbox .elementor-slideshow__header,
.elementor-lightbox .elementor-slideshow__footer {
  pointer-events: auto;
}


