@charset "UTF-8";
/* Newssurma 2.0: whole-picture frames, galleries (citypost layout), lightbox.
   Loaded after premium.css. Colours chosen in Theme Options print right after this file. */

:root {
  --ns-vp-bg: #821818;
  --ns-vp-border: #f3e3c4;
  --ns-play-bg: #d81f26;
}

/* ---------- Whole picture frame ----------
   The picture is never cropped. Space it doesn't fill shows a blurred copy of itself. */
.ns-fit {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: inherit;
  margin: 0 0 10px;
  isolation: isolate;
}
.ns-fit img {
  position: absolute !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  aspect-ratio: auto !important;
  transform: none !important;
}
.ns-fit > img:not(.ns-fit-bg) {
  inset: 0;
  margin: auto !important;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: var(--ns-w, 100%) !important;
  max-height: var(--ns-h, 100%) !important;
  object-fit: contain !important;
}
.ns-fit-bg {
  inset: -10%;
  z-index: 0;
  width: 120% !important;
  height: 120% !important;
  max-width: none !important;
  object-fit: cover !important;
  filter: blur(14px) brightness(.85) !important;
}
@supports not (aspect-ratio: 1 / 1) {
  .ns-fit { height: 0; padding-top: 56.25%; }
}

/* Keep the card's rounded top */
.big_news .ns-fit, .middle_news .ns-fit { border-radius: var(--radius) var(--radius) 0 0; }
.big_news > a { display: block; }

/* Small list pictures sit beside the text */
.images_title .ns-fit,
.images_title_1 .ns-fit,
.signle-tab-img .ns-fit {
  float: left;
  width: 34%;
  aspect-ratio: 4 / 3;
  margin: 0 12px 0 0;
  border-radius: var(--radius-sm);
}
.profile_news .ns-fit { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); }
.archive_page .ns-fit, .archive-img .ns-fit { border-radius: var(--radius-sm); }

/* News page: the frame takes the picture's own shape, an upright one gets blurred sides */
.single-img > a { display: block; cursor: zoom-in; }
.single-img .ns-fit {
  aspect-ratio: var(--ns-r, 16 / 9);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.single-img .caption { background: none; opacity: 1; margin: 0 0 8px; color: var(--muted); font-size: 15px; padding: 2px 4px; }
.single-title h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 10px 0;
  color: inherit;
}
.single-dtls img { max-width: 100%; height: auto; }
.single-dtls iframe[src*="youtube"],
.single-dtls iframe[src*="youtu.be"],
.ns-video-body iframe {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .images_title .ns-fit, .images_title_1 .ns-fit, .signle-tab-img .ns-fit { width: 40%; margin-right: 10px; }
  .single-title h1 { font-size: 23px; }
}

/* ---------- Video panel ---------- */
.ns-video-box { padding: 10px 0; background: transparent; }
.ns-vp {
  background: var(--ns-vp-bg);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-1);
}
.ns-vp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ns-vp-title { margin: 0; font-size: 22px; line-height: 1.3; color: #fff; }
.ns-vp-title a { color: #fff; text-decoration: none; }
.ns-vp-arrow { color: #fff; font-size: 26px; line-height: 1; padding: 0 6px; text-decoration: none; }
.ns-vp-arrow:hover, .ns-vp-arrow:focus { color: #fff; opacity: .8; }
.ns-vp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ns-vp-item {
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--ns-vp-border);
  border-radius: 8px;
  padding: 6px;
  min-width: 0;
}
.ns-vp-thumb { position: relative; display: block; }
.ns-vp-thumb .ns-fit { margin: 0; border-radius: 6px; }
.ns-vp-item-title { margin: 8px 2px 4px; font-size: 16px; line-height: 1.45; font-weight: 500; font-family: var(--font-head); }
.ns-vp-item-title a { color: #fff; text-decoration: none; }
.ns-vp-item-title a:hover { opacity: .85; }

.ns-play {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ns-play-bg);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease);
}
a:hover > .ns-play { transform: scale(1.12); }
.ns-play .fa-play { margin-left: 2px; }

/* ---------- Photo gallery on the home page ---------- */
.ns-photo-box { padding: 10px 0; background: transparent; }
.ns-pg-slide { position: relative; }
.ns-pg-slide > a { display: block; cursor: zoom-in; }
.ns-pg-slide .ns-fit { margin: 0; border-radius: var(--radius-sm); }
.ns-pg-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 26px 14px 12px;
  font-size: 18px;
  line-height: 1.45;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.ns-pg-caption a { color: #fff; text-decoration: none; }
.ns-pg-main .owl-nav > div,
.ns-pg-main .owl-nav > button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55) !important;
  color: #fff !important;
  font-size: 22px;
  cursor: pointer;
}
.ns-pg-main .owl-nav .owl-prev { left: 12px; }
.ns-pg-main .owl-nav .owl-next { right: 12px; }
.ns-pg-main .owl-nav .disabled { opacity: .35; }
.ns-pg-thumbs { margin: 10px 0 16px; }
.ns-pg-thumb {
  display: block;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
}
.ns-pg-thumb.is-active { border-color: var(--surma-crimson); }
.ns-pg-thumb .ns-fit { margin: 0; border-radius: 0; }
.ns-pg-side .images_title:last-child { border-bottom: 0; }

/* ---------- Gallery pages ---------- */
.ns-gallery-page, .ns-gsingle { padding: 20px 0 30px; }
.ns-ggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.ns-gcard {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  min-width: 0;
}
.ns-gcard-img { position: relative; display: block; }
.ns-gcard-img .ns-fit { margin: 0; border-radius: 0; }
.ns-gcard-title { margin: 0; padding: 10px 12px 12px; font-size: 16px; line-height: 1.45; font-weight: 500; font-family: var(--font-head); }
.ns-gcard-title a { color: var(--ink); text-decoration: none; }
.ns-gcard-title a:hover { color: var(--surma-crimson); }
.ns-empty { padding: 40px 0; text-align: center; color: var(--muted); }

.ns-gsingle { max-width: 960px; margin: 0 auto; }
.ns-gsingle-title {
  font-size: 26px;
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--card);
  border-left: 5px solid var(--surma-crimson);
  box-shadow: var(--shadow-1);
  color: var(--surma-ink);
}
.ns-gsingle-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: center;
  margin-bottom: 10px;
}
.ns-gsingle-photo .ns-fit-bg { position: absolute; }
.ns-gsingle-photo > a { position: relative; z-index: 1; display: block; cursor: zoom-in; }
.ns-gsingle-photo > a img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.ns-gsingle-caption { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.ns-video-body { margin-bottom: 14px; }
.ns-video-body p { margin-bottom: 10px; }
.ns-gsingle-nav { display: flex; justify-content: space-between; gap: 16px; margin: 16px 0 24px; font-size: 16px; }
.ns-gsingle-nav a { color: var(--surma-azure); text-decoration: none; }

@media (max-width: 991px) {
  .ns-vp-grid, .ns-ggrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ns-vp-grid, .ns-ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ns-vp { padding: 14px 10px; }
  .ns-vp-item-title, .ns-gcard-title { font-size: 15px; }
  .ns-play { width: 32px; height: 32px; top: 8px; right: 8px; font-size: 12px; }
  .ns-pg-caption { font-size: 15px; padding: 18px 10px 8px; }
  .ns-gsingle-title { font-size: 21px; }
}

/* ---------- Share buttons ---------- */
.sgl-page-social ul { padding: 0; margin: 0 0 16px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sgl-page-social ul li { float: none; margin: 0; }
.sgl-page-social ul li a.whatsapp { background: #25d366; color: #fff; }

/* ---------- Lightbox ---------- */
.ns-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, .92);
  padding: 16px;
}
.ns-lb.is-open { display: flex; }
.ns-lb img { max-width: 96vw; max-height: 84vh; object-fit: contain; }
.ns-lb-title { color: #fff; font-size: 17px; margin-top: 10px; text-align: center; max-width: 900px; }
.ns-lb-title a { color: #fff; text-decoration: underline; }
.ns-lb button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.ns-lb button:hover { background: rgba(255, 255, 255, .28); }
.ns-lb-close { top: 14px; right: 14px; }
.ns-lb-prev { left: 14px; top: 50%; margin-top: -23px; }
.ns-lb-next { right: 14px; top: 50%; margin-top: -23px; }

@media print {
  .ns-fit-bg, .sgl-page-social, .ns-lb { display: none !important; }
}
