/* Auto Folder Gallery styles */
.afg-wrap { margin-top: 10px; }
.afg-title { margin: 0 0 15px; }
.afg-controls { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.afg-controls .form-group { margin: 0; }
.afg-empty { margin-top: 10px; }
.afg-card { margin-bottom: 15px; }
.afg-thumb { width: 100%; object-fit: cover; }
.afg-caption { font-size: 12px; margin-top: 6px; word-break: break-word; }
.afg-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.afg-meta .pull-right { margin-left: auto; }
.afg-grid .img-thumbnail { border-radius: 4px; }
.afg-video-tile { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px; }
.afg-video-label { font-weight: bold; letter-spacing: 1px; margin-bottom: 6px; }
.afg-video-name { font-size: 12px; opacity: 0.85; }
.afg-modal-body { text-align: center; }
.afg-modal-body img { max-width: 100%; height: auto; }
.afg-modal-body video { width: 100%; max-height: 70vh; }
.afg-list-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 3px; border: 1px solid #ddd; }
.afg-video-badge { display:inline-block; padding: 6px 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 11px; }
.afg-pagination { margin-top: 10px; }
/* Fix modal/backdrop layering for templates with custom z-index */
.modal { z-index: 99999 !important; }
.modal-backdrop { z-index: 99990 !important; }
.modal-dialog, .modal-content { pointer-events: auto; }
.ed_verticalmenu {display: none;}
