/* Trang chi tiết công trình: lưới ảnh + xem ảnh lớn */
.nh-ct-tt li { background: var(--nh-be); border: 1px solid var(--nh-vien); border-radius: 99px; padding: 5px 14px; font-weight: 600; font-size: .92rem; color: var(--nh-navy-dam); }
.nh-ct-tt i { color: var(--nh-cam-chu); margin-right: 4px; }
.nh-tv { columns: 3 280px; column-gap: 16px; }
.nh-tv-o { break-inside: avoid; margin: 0 0 16px; background: #fff; border: 1px solid var(--nh-vien); border-radius: 14px; overflow: hidden; }
.nh-tv-o a { display: block; cursor: zoom-in; }
.nh-tv-o img { width: 100%; height: auto; display: block; }
.nh-tv-o figcaption { padding: 10px 14px; font-size: .92rem; font-weight: 500; color: var(--nh-chu); }
/* Điện thoại: 2 cột để nhà nhiều ảnh (12–16 ảnh) không thành một dải quá dài */
@media (max-width: 575.98px) {
  .nh-tv { columns: 2; column-gap: 10px; }
  .nh-tv-o { margin-bottom: 10px; border-radius: 10px; }
  .nh-tv-o figcaption { padding: 7px 9px; font-size: .82rem; line-height: 1.35; }
}

.nh-xem { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 20, 34, .96); color: #fff; }
.nh-xem[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.nh-xem::backdrop { background: rgba(8, 20, 34, .9); }
.nh-xem img { max-width: 100%; max-height: calc(100dvh - 72px); object-fit: contain; align-self: center; }
.nh-xem-chu { margin: 0; padding: 14px 64px 18px; text-align: center; font-weight: 500; }
.nh-xem-nut { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.3rem; display: grid; place-items: center; }
.nh-xem-nut:hover, .nh-xem-nut:focus-visible { background: rgba(255, 255, 255, .28); }
.nh-xem-dong { top: 12px; right: 12px; }
.nh-xem-truoc { left: 12px; top: 50%; transform: translateY(-50%); }
.nh-xem-sau { right: 12px; top: 50%; transform: translateY(-50%); }
