/**
 * Theme Name:        Target 22 Theme
 * Description:       Target 22 Theme (Child of 2025)
 * Version:           1.0.1
 * Author:            Egret Digital
 * Author URI:        https://egret.digital/
 * Text Domain:       target-22-theme
 * Domain Path:       /assets/lang
 * Tested up to:      6.9
 * License:           GNU General Public License v2.0 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Template:          twentytwentyfive
 */

/* Unset underline on links */
a:not([class]) {
	text-decoration: none;
}

/* Menu Styles */
nav {
    /* Highlight current menu item */
	.current-menu-item > a,
	a:hover,
	a:active {
		color: var(--wp--preset--color--custom-target-red) !important;
	}
	
	/* Add dots between navigation items */
	@media (min-width: 600px) {
    	.wp-block-navigation {
    	    gap: 0 !important;
        	li::after {
                content: "•";
                display: flex;
                text-align: center;
                padding: 0px 0.5em;
                letter-spacing: 0;
            }
            li:last-child:after {
                content: '';
            }
    	}
    }
	
	 /* Home link not needed on desktop */
	@media (min-width: 600px) {
	    .nav-home {
	        display: none !important;
	    }
	}

    /* Improve mobile menu styles */
    @media (max-width: 599px) {
	    .wp-block-navigation__responsive-container {
		    background-color: #fffffff5 !important;
	    }
	    .wp-block-navigation__responsive-container-content {
    		justify-content: center !important;
    		align-items: center !important;
    
    		ul {
    		    justify-content: center !important;
    		    align-items: center !important;
    		}
    		li {
    		    font-size: var(--wp--preset--font-size--large) !important;
    		}
        }
	}
}


/* Archive pages - core fix for loop images sometimes being wider than containers */
.archive .wp-block-post-featured-image {
	max-width: 100% !important;
}
/* Core fix for list items displayed as flex */
.archive .entry-content li {
	display: list-item;
}


/* Header*/
.hero-img {
    aspect-ratio: 5/1;
    
    @media (max-width: 781px) {
        aspect-ratio: 3/1;
    }
    
    img {
        height: 100% !important;
        object-fit: cover;
    }
}


/* Footer */
.footer-bg {
    position: absolute;
    z-index: 1;
    transform: translateY(-50%);
    figure {
        width: 200px;
        max-width: min(22vw, 205px);
    }
}
@media (max-width: 781px) {
    footer {
        .has-text-align-center {
            text-align: left;
            max-width: 55vw;
        }
    }
}

.display-none {
    display: none;
}


/* Homepage */
.equal-height > .wp-block-column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    > * {
        flex-grow: 1;
        width: 100%;
    }
    
    > figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.ready-to-ride {
	img {
		display: inline-block;
		width: 30px;
	}
	p {
		width: calc(100% - 50px) !important;
	}
	.icon-locate {
		img {
			scale: 1.5;
		}
	}
}

.logo-preserve {
    img {
        object-fit: contain !important;
    }
}

.img-flip {
	transform: scaleX(-1);
}




/* Instructors */
.equal-height > figure {
    height: 100%;
}
.equal-height > figure img {
    height: 100%;
    object-fit: cover;
}



/* Locations */
@media (max-width: 781px) {
    .col-reverse {
        flex-direction: column-reverse;
    }
}
