/*
 Theme Name:   PTI
 Description:  PTI Theme as Twenty Twenty-Four Child Theme
 Author:       PTI
 Author URI:   https://pathwaystoinvention.org
 Template:     twentytwentyfour
 Version:      1.1.5
*/

body {
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}
.pti-header {
    padding: 25px 35px !important;
}
.pti-logo {
    width: 55%;
}
footer.wp-block-template-part {
    margin-block-start: 0;
}
footer .wp-block-search__button-inside.wp-block-search__icon-button.alignright.wp-block-search {
    float: none;
    margin-inline-start: 0;
    margin-block-start: 10px;
}
footer .maaia-mark-footer-logo img {
    margin-top: 25px;
}
footer .lemelson-mit-footer-logo.wp-block-image {
    margin-block-start: 0;
}
body.archive .wp-block-post-featured-image:focus,
body.archive a:focus {
    outline-width: 0;
}

.pti-sub-footer.wp-block-columns, .pti-footer.wp-block-columns {
    margin-bottom: 0;
}
.wp-block-cover.alignfull.is-light.pti-homepage-video {
    object-fit: cover;
    min-height: 80vh;
}
.wp-block-search__inside-wrapper {
    background: #FFFFFF;
}
.pti-homepage-video {
    position: relative;
}
.pti-homepage-video::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 23%);
    pointer-events: none;
}
.pti-home-carousel .pti-carousel-item {
    position: relative;
    overflow: hidden;
}
.pti-home-carousel .pti-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}
.pti-home-carousel .swiper-slide {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.pti-home-carousel .pti-carousel-item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    max-width: 220px;

}
.swiper-button-prev::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    transform: translateX(2px) rotate(0deg);
}
.swiper-button-next::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    transform: translateX(-2px) rotate(0deg);
}
.swiper-button-prev::after, .swiper-button-next::after {
    content: '←'; /* Left arrow for prev */
    font-size: 30px;
    color: white;
}
.swiper-button-prev {
    left: 10px; /* Distance from the left edge of the container */
}
.swiper-button-next {
    right: 10px; /* Distance from the right edge of the container */
}
.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
    fill: currentColor;
    display: block;
    height: 48px;
    pointer-events: none;
    width: 48px;
}
.has-modal-open .wp-block-navigation-item__content {
    color: black !important;
    font-size: 18px !important;
}
.wp-block-navigation__responsive-container-close {
    color: black;
}
.wp-block-cover.alignfull.is-light.pti-homepage-video {
    min-height: 80vh;
    position: relative;
}
.wp-block-group.alignfull.has-black-background-color.has-background {
    position: relative;
    margin-top: -1px;
}
.pti-carousel-row {
    position: relative;
    margin-top: -1px;
    z-index: 0;
    min-height: 150px;
    padding-top: 100px;
    z-index: 2;
}
.pti-home-text-row {
    margin-block-start: 0;
}
.pti-home-carousel {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    overflow: hidden;
}
.swiper-button-prev::after, .swiper-rtl .swiper-button-next::after {
    content: 'prev';
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    left: 0;
}
.swiper-button-next::after, .swiper-rtl .swiper-button-prev::after {
    content: 'next';
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    right: 12px;
}
.wp-block-buttons-is-layout-flex {
    gap: 0.4rem;
}
.is-style-outline.is-style-outline.wp-block-button .wp-block-button__link {
    padding-top: 4px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
}

/** Single Inventor **/
.inventor-embed {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}
.inventor-embed iframe,
.inventor-embed object,
.inventor-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/** Next Steps **/
.next-steps figure {
    padding-bottom: 5px !important;
    margin-top: 20px;
}
.next-steps h6 {
    margin-top: 8px !important;
    margin-bottom: 0;
    padding-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
} 
.pti-excerpt {
    text-align: justify;
}
.category-block {
    width: 24%;
    display: inline-block;
    aspect-ratio: 16/9;
}
.category-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.category-showcase-wrapper {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
}
.category-block a {
    text-decoration: none;
    display: inline-block;
    aspect-ratio: 16/9;
    height: 100%;    
}
.category-block a:hover {
    text-decoration: underline;
}
:where(.wp-site-blocks .category-block :focus) {
    outline-style: none;
}
.pti-footer-categories {
    margin-block-start: 0 !important;
}
#speakerToggle {
    position: absolute;
    top: 10px;
    right: 25px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    fill: white;
    z-index: 99999;
    opacity: 0;
}

/* Portrait */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: portrait) { 
  
    .pti-header {
        padding: 20px 4px 5px 4px !important;
    }

    .wp-block-buttons-is-layout-flex {
        gap: 0.4rem;
    }
    
    .is-style-outline.is-style-outline.wp-block-button .wp-block-button__link {
        padding-top: 4px;
        padding-right: 8px;
        padding-bottom: 4px;
        padding-left: 8px;
    }
    footer .maaia-mark-footer-logo img {
        margin-top: 0;
    }
    footer {
        text-align: center;
    }
    footer figure {
        width: 100%;
    }
    .swiper-wrapper {
        text-align: center;
    }
    .pti-home-carousel .pti-carousel-item-title {
        max-width: none;
    }
    .category-block {
        width: 100% !important;
    }    
}

/* Header Media Query Adjustments */
@media only screen 
and (max-width: 927px) { 
    .pti-logo,
    .pti-logo .wp-block-site-logo {
        width: 100% !important;
        text-align: center !important;
    }
    .pti-header-buttons-menu {
        margin: 0 auto !important;
    }
}

.home .wp-block-cover__image-background, .wp-block-cover__video-background {
    z-index: 2;
}
.home .wp-block-cover__inner-container {
    z-index: 3;
}
.pti-author-name {
    font-style: italic !important;
}

/* Fix for blue outline around carousel arrows */
.swiper-button-next, .swiper-button-prev {
    color: transparent !important;
}