/* PV-PhotoVault: two optional dense layouts; existing layouts are unchanged. */
.detail-gallery.pv-density-ultra:not(.list-mode):not(.masonry-mode) .photo-grid { grid-template-columns: repeat(8,minmax(0,1fr)); }
.detail-gallery.pv-density-promax:not(.list-mode):not(.masonry-mode) .photo-grid { grid-template-columns: repeat(10,minmax(0,1fr)); }
.detail-gallery.masonry-mode.pv-density-ultra .photo-grid { column-count: 8; }
.detail-gallery.masonry-mode.pv-density-promax .photo-grid { column-count: 10; }
/* In these two modes the Viewer is the full-sized action surface. Do not cover tiny photos. */
.detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .photo-card .photo-actions,
.detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .photo-card.pv-actions-open .photo-actions,
.detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .photo-card.pv-actions-open:hover .photo-actions,
.detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .photo-card.pv-actions-open:focus-within .photo-actions {
 display:none!important; visibility:hidden!important; pointer-events:none!important;
}
.pv-gallery-menu-panel .pv-menu-select { flex-wrap:wrap; min-width:0; }
.pv-gallery-menu-panel .pv-menu-select select[aria-label="Mật độ hiển thị ảnh"] { max-width:100%; min-width:0; width:auto; }
@media(max-width:767px) {
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .photo-card { border-radius:3px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .pv-select-check { width:14px;height:14px;left:2px;top:2px;border-width:1px;border-radius:4px;box-shadow:none; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .pv-select-check svg { width:10px;height:10px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode).pv-select-mode .photo-card.pv-card-selected { outline-width:2px;outline-offset:-2px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) :is(.pv-card-note-marker,.pv-card-star-marker) { width:13px;height:13px;bottom:2px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .pv-card-note-marker { right:2px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .pv-card-star-marker { left:2px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) :is(.pv-card-note-marker,.pv-card-star-marker) svg { width:9px;height:9px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .video-indicator { bottom:2px;left:2px;padding:2px;gap:0;font-size:0; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .video-indicator svg { width:10px;height:10px; }
 .detail-gallery:is(.pv-density-ultra,.pv-density-promax):not(.list-mode) .pv-card-tags { display:none; }
}
