---
title: 'Capstone Lawyer 2025'
date: '2026-01-16T16:05:53-06:00'
type: page
word_count: 612
char_count: 9220
tokens: 796
---

# Capstone Lawyer 2025

/* Override theme styles that might interfere with Shorthand */
            #shorthand-embed-container {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow: visible !important;
                position: relative !important;
                left: 0 !important;
                right: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            #shorthand-embed-container > * {
                overflow: visible !important;
                width: 100% !important;
            }
            
            /* Target common block theme container classes */
            .wp-site-blocks, 
            .entry-content, 
            .wp-block-post-content,
            .alignfull,
            .alignwide,
            .wp-block-group,
            .wp-block-group-is-layout-flow {
                max-width: 100% !important;
                width: 100% !important;
                padding: 0 !important;
                margin: 0 !important;
                overflow: visible !important;
                position: static !important;
            }
            
            /* Reset any transformations or positioning */
            #shorthand-embed-container {
                transform: none !important;
                -webkit-transform: none !important;
                -moz-transform: none !important;
                -ms-transform: none !important;
            }
            
            /* Hide sidebar elements */
            .sidebar, aside, #sidebar, #secondary {
                display: none !important;
            }
          
         


    /**
     * Shorthand Embed Helper
     * 
     * A consolidated script to handle various display issues with embedded Shorthand content.
     */
    (function() {
        // Configuration
        const config = {
            selectors: {
                embedContainer: '#shorthand-embed-container',
                commonContainers: [
                    '.wp-site-blocks',
                    '.entry-content',
                    '.wp-block-post-content',
                    '.wp-block-group',
                    '.wp-block-group-is-layout-flow',
                    '.alignfull',
                    '.alignwide'
                ],
                targetBlankLinks: 'a[target="_blank"]',
                headerElements: 'header.wp-block-template-part',
                footerElements: 'footer.wp-block-template-part',
                mainElement: '#wp--skip-link--target',
                postTitle: '.wp-block-post-title',
                headerBar: '.HeaderBarContainer',
                uaMinerva: '.ua_minerva',
                mediaElements: 'img, figure, video, .media-wrapper',
                fullSizeElements: '.FullSize, .FullSize--fullWidth, .FullSize--fullHeight, .ObjectFit--cover'
            },
            styles: {
                container: {
                    overflow: 'visible',
                    maxWidth: '100%',
                    width: '100%',
                    padding: '0',
                    margin: '0',
                    position: 'static'
                }
            },
            timing: {
                initialFix: 500,
                contentLoaded: 1000,
                finalCheck: 2000
            }
        };

        /**
         * Apply container reset styles to an element
         */
        function applyResetStyles(element) {
            const styles = config.styles.container;
            for (const [property, value] of Object.entries(styles)) {
                element.style[property] = value;
            }
        }

        /**
         * Fix overflow issues in parent elements
         */
        function fixOverflowIssues() {
            const embedContainer = document.querySelector(config.selectors.embedContainer);
            if (!embedContainer) return;
            
            // Fix the embed container itself
            embedContainer.style.overflow = 'visible';
            embedContainer.style.maxWidth = '100%';
            embedContainer.style.width = '100%';
            embedContainer.style.position = 'relative';
            embedContainer.style.left = '0';
            embedContainer.style.right = '0';
            embedContainer.style.marginLeft = '0';
            embedContainer.style.marginRight = '0';
            
            // Fix all parent elements
            let parent = embedContainer.parentElement;
            while (parent && parent !== document.body) {
                applyResetStyles(parent);
                parent = parent.parentElement;
            }
            
            // Fix common WordPress theme containers
            config.selectors.commonContainers.forEach(selector => {
                document.querySelectorAll(selector).forEach(applyResetStyles);
            });
        }

        /**
         * Remove target="_blank" from all links
         */
        function removeTargetBlank() {
            const links = document.querySelectorAll(config.selectors.targetBlankLinks);
            links.forEach(link => {
                link.removeAttribute('target');
            });
        }

        /**
         * Handle UA Minerva class assignments
         */
        function handleUAMinervaClasses() {
            // Remove ua_minerva class from app element
            const appElement = document.getElementById('app');
            if (appElement) {
                appElement.classList.remove('ua_minerva');
            }
            
            // Add ua_minerva class to headers and footers
            const headerElements = document.querySelectorAll(config.selectors.headerElements);
            const footerElements = document.querySelectorAll(config.selectors.footerElements);
            
            [...headerElements, ...footerElements].forEach(element => {
                element.classList.add('ua_minerva');
            });
        }

        /**
         * Fix main element styling
         */
        function fixMainElement() {
            const mainElement = document.querySelector(config.selectors.mainElement);
            if (mainElement) {
                mainElement.className = '';
                applyResetStyles(mainElement);
            }
        }

        /**
         * Hide header elements
         */
        function hideHeaderElements() {
            // Hide post titles
            document.querySelectorAll(config.selectors.postTitle).forEach(element => {
                element.style.display = 'none';
            });
            
            // Hide header bars
            document.querySelectorAll(config.selectors.headerBar).forEach(element => {
                element.style.display = 'none';
            });
        }

        /**
         * Handle media styles for images and videos
         */
        function handleMediaStyles() {
            // Reset styles for elements within ua_minerva
            const minervaElements = document.querySelectorAll(config.selectors.uaMinerva);
            
            minervaElements.forEach(container => {
                const mediaElements = container.querySelectorAll(config.selectors.mediaElements);
                mediaElements.forEach(element => {
                    element.style.display = '';
                    element.style.width = '';
                });
            });
            
            // Set full width for elements with specific classes
            document.querySelectorAll(config.selectors.fullSizeElements).forEach(element => {
                if (element.tagName.toLowerCase() === 'img') {
                    element.style.width = '100%';
                    
                    if (element.classList.contains('ObjectFit--cover')) {
                        element.style.objectFit = 'cover';
                    }
                }
            });
        }

        /**
         * Apply all fixes
         */
        function applyAllFixes() {
            fixOverflowIssues();
            removeTargetBlank();
            handleUAMinervaClasses();
            fixMainElement();
            hideHeaderElements();
            handleMediaStyles();
        }

        // Initialize on DOMContentLoaded
        document.addEventListener('DOMContentLoaded', function() {
            applyAllFixes();
            
            // Run again after initial content might have loaded
            setTimeout(applyAllFixes, config.timing.initialFix);
        });

        // Final check after everything is loaded
        window.addEventListener('load', function() {
            // Short delay to let any dynamic content settle
            setTimeout(applyAllFixes, config.timing.contentLoaded);
            
            // One final check for good measure
            setTimeout(applyAllFixes, config.timing.finalCheck);
        });

        // For cases where the script is loaded after DOMContentLoaded has fired
        if (document.readyState === 'complete' || document.readyState === 'interactive') {
            applyAllFixes();
        }
    })(); // Immediately invoke function to create a local scope
