/*
 * Contact / portfolio fixes
 * Bootstrap 4 modal: 1050, backdrop: 1040.
 * The original scrolling navbar was assigned z-index: 999999, which placed
 * it above modal dialogs. Keep the nav above page content, but below modals.
 */
.navbar.fixed-top,
.navbar.top-nav-collapse {
    z-index: 1030 !important;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

/* Keep modal dialogs clear of the fixed navigation at all viewport sizes. */
.modal-dialog {
    margin-top: 1.75rem;
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 1rem .5rem;
    }
}

/* Make the remaining preview icon the sole portfolio overlay control. */
#portfolio .overlay .icons a:not([data-toggle="modal"]) {
    display: none !important;
}
