/*
Theme Name: Building America's Future
Theme URI: 
Description: A child theme of Twenty Twenty-Five
Author: Jonathan McKinstry
Author URI: 
Template: twentytwentyfive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baf
*/

/* Import parent theme styles */
@import url("../twentytwentyfive/style.css");

/* Custom styles */

:where(.wp-site-blocks *:focus) {
	 outline-width: 0 !important; 
    outline-style: none !important;
}

/*.project-group:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, .3);
    scale: 1.05;
    transition: .5s;
}

.project-group {
    scale: 1;
    transition: .5s;
}
*/

.h2-home-tag {
    font-weight: 700;
}

/*.h2-home-tag .has-inline-color {
       font-weight: 900; 
}
*/
a:hover { 
text-decoration: none !important; }

.has-link-color:hover {
    color: var(--wp--preset--color--accent-1);
}

.hidden {
    display: none;
}

.home-navigation {
    z-index: 1000;
    color: #fff;
}

.hero-video {
    margin-top: -120px !important;
}

.home-navigation img {
/*    display: none;*/
}

.wp-block-gutena-forms .wp-block-gutena-form-field .gutena-forms-field {
font-family: var(--wp--preset--font-family--zona-pro) !important;
}

@media screen and (max-width: 767px) {

    #project-hero-section .is-layout-constrained > .alignwide {
        max-width: 100% !important;
    }
    .about-section-animated {
        padding-top:30px !important;
        padding-bottom: 30px !important;
    }
    .hero-video {
        min-height: unset !important;
        height: auto !important;
        aspect-ratio: 16/9 !important; /* Assuming 16:9 video ratio */
        margin-top: 0 !important;
    }
    
    .hero-video video.wp-block-cover__video-background {
        object-fit: contain !important;
        height: auto !important;
    }
    .home-navigation {
         background-color: var(--wp--preset--color--contrast);
    }
    .wp-container-core-group-is-layout-6 > .alignwide {
        max-width: 100% !important;
    }
}

.hero-video {
    background-color: var(--wp--preset--color--contrast);
}

/* Logo animation for homepage */
.home .home-navigation .wp-block-image {
    opacity: 0;
    animation: fadeInLogo 1s ease-in-out forwards;
    animation-delay: 5s;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Project grid card logo fixes */
.project-group .wp-block-post-featured-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px; /* Fixed height for all logos */
    margin-bottom: 1rem;
    overflow: hidden;
}

.project-group .wp-block-post-featured-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-group .wp-block-post-featured-image {
        height: 100px; /* Slightly smaller on tablets */
    }
    
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on tablets */
    }
}

@media (max-width: 480px) {
    .project-group .wp-block-post-featured-image {
        height: 80px; /* Even smaller on mobile phones */
    }
    
    .wp-block-post-template.is-layout-grid {
        grid-template-columns: 1fr !important; /* Force 1 column on mobile */
    }
    
    .project-group {
        min-height: auto !important; /* Remove fixed height on mobile */
    }
}

/* Make sure project cards remain consistent height */
.project-group {
    display: flex;
    flex-direction: column;
}

.project-group .wp-block-post-title {
    flex-grow: 0;
    min-height: 3em; /* Ensures consistent title height */
}

.project-group .wp-block-post-excerpt__excerpt {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.project-group .wp-block-read-more {
    margin-top: auto;
}

/* Make news section columns full width on mobile */
@media (max-width: 781px) {
    .section-news .wp-block-columns.is-not-stacked-on-mobile {
        flex-direction: column !important;
    }
    
    .section-news .wp-block-column {
        flex-basis: 100% !important;
        width: 100% !important;
    }
    
    .section-news .wp-block-buttons.is-content-justification-right {
        justify-content: flex-start !important;
    }
}