/* ========================================================================== */
/* PCTrending Stuff Media Gallery - isolated styles                           */
/* 2026-08-19                                                                 */
/* ========================================================================== */

.StuffMediaGroup{
  position:relative;
  min-width:0;
}
.StuffMediaGroup + .StuffMediaGroup{
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid #edf1f6;
}
.StuffMediaGroupHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:15px;
}
.StuffMediaGroupLabel{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.StuffMediaGroupIcon{
  flex:0 0 auto;
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e5eaf2;
  border-radius:12px;
  background:#f7f9fc;
  color:#4c6fff;
  font-size:16px;
}
.StuffMediaGroupLabel > div{min-width:0;}
.StuffMediaGroupLabel strong{
  display:block;
  color:#1d2939;
  font-size:15px;
  font-weight:800;
  line-height:1.3;
  letter-spacing:-.02em;
}
.StuffMediaGroupLabel > div > span{
  display:block;
  margin-top:3px;
  color:#8a94a6;
  font-size:12px;
  line-height:1.45;
  white-space:normal;
  word-break:keep-all;
}
.StuffMediaCount{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:28px;
  padding:0 10px;
  border:1px solid #e5eaf2;
  border-radius:999px;
  background:#fff;
  color:#687386;
  font-size:11px;
  font-weight:800;
}

/* Image gallery ----------------------------------------------------------- */
.StuffMediaImageGrid{
  margin-top:0!important;
  padding:0!important;
}
.StuffMediaImageGrid > .ViewImgRow{
  min-width:0;
}
.StuffMediaImageCard{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:auto!important;
  aspect-ratio:1/1;
  overflow:hidden;
  padding:12px;
  border:1px solid #e7ecf3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 7px 20px rgba(25,39,66,.055);
  isolation:isolate;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.StuffMediaImageCard::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(145deg,#fbfcfe 0%,#f5f7fb 100%);
}
.StuffMediaImageCard::after{
  content:'\F52A';
  font-family:'bootstrap-icons';
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:2;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.75);
  border-radius:10px;
  background:rgba(17,24,39,.62);
  color:#fff;
  font-size:13px;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.StuffMediaImageCard .StuffMediaImage,
.StuffMediaImageGrid img.StuffMediaImage{
  position:static!important;
  display:block!important;
  float:none!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none;
  cursor:zoom-in;
  transition:transform .28s ease;
}
@media (hover:hover){
  .StuffMediaImageCard:hover{
    transform:translateY(-2px);
    border-color:#d8e2f2;
    box-shadow:0 12px 28px rgba(25,39,66,.10);
  }
  .StuffMediaImageCard:hover .StuffMediaImage{transform:scale(1.025);}
  .StuffMediaImageCard:hover::after{opacity:1;transform:translateY(0);}
}

/* Video gallery ----------------------------------------------------------- */
.StuffMediaVideoScroller,
.StuffMediaVideoGrid{padding:0!important;}
.StuffMediaVideoCard{
  height:100%;
  overflow:hidden;
  border:1px solid #e8edf3;
  border-radius:17px;
  background:#fff;
  box-shadow:0 7px 22px rgba(25,39,66,.06);
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.StuffMediaVideoThumb{
  position:relative;
  overflow:hidden;
  aspect-ratio:16/9;
  background:#111827;
}
.StuffMediaVideoThumb img,
.StuffMediaVideoThumb .video-thumb{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
}
.StuffMediaVideoPlay{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.72);
  border-radius:50%;
  background:rgba(16,24,40,.66);
  color:#fff;
  font-size:24px;
  pointer-events:none;
}
.StuffMediaVideoBody{
  padding:13px 14px 14px;
}
.StuffMediaVideoTitle{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:40px;
  margin:0;
  color:#263244;
  font-size:13px;
  font-weight:750;
  line-height:1.5;
  white-space:normal;
  word-break:keep-all;
}

@media (max-width:767.98px){
  .StuffMediaGroup + .StuffMediaGroup{
    margin-top:22px;
    padding-top:19px;
  }
  .StuffMediaGroupHead{margin-bottom:13px;}
  .StuffMediaGroupIcon{
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:15px;
  }
  .StuffMediaGroupLabel strong{font-size:14px;}
  .StuffMediaGroupLabel > div > span{font-size:11px;}
  .StuffMediaImageCard{
    padding:8px;
    border-radius:14px;
  }
}
