/*
Theme Name: APGL Twenty Twenty-Five Child
Theme URI: https://apgl.fr
Description: Thème enfant personnalisé pour APGL basé sur le thème Twenty Twenty-Five.
Author: APGL
Author URI: https://apgl.fr
Template: twentytwentyfive
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apgl
Tags: apgl, child-theme, twenty-twenty-five
*/


/** Workaround iOS 26 */
html.has-modal-open {
    height: 100%;
    overflow: hidden;
}
html.has-modal-open body {
    overflow:auto;
    height: 100%;
}

@media (max-width:550px) {
    .hidden-xs {
        display:none !important;
    }
}

@media (max-width: 1024px) {
    .hidden-sm {
        display: none !important;
    }
    .visible-sm {
        display: block !important;
    }
}

img {
    max-width: 100%;
    object-fit: contain;
}
figure {
    max-width: 100%;
    max-height: fit-content;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.max-width-none {
    max-width: none !important;
}
.flex-shrink-0 {
    flex-shrink: 0 !important;
}
.attachment-full {
    height: auto; /** corrige tribe image trop grande */
}
.flex-justify-center,
.flex-justify-center .mega-sub-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-justify-center > .mega-sub-menu {
    display: flex !important;
    height: 100% !important;
}
.text-right {
    text-align: right !important;
}
@media (max-width: 600px) {
    .bibliographie-filtres form {
        flex-direction: column;
        align-items: stretch;
    }

    .bibliographie-filtres .reset-filters {
        margin-left: 0;
        text-align: right;
        margin-top: 0.5em;
    }
}

.book-archive-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2em;
    gap: 1em;
}



@media only screen and (max-width: 1300px) {
    .wp-block-site-logo + .wp-block-site-title.block-visibility-hide-medium-screen {
        display: none;
    }
}
@media only screen and (max-width: 1024px) {
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 .mega-hide-text .mega-menu-link::before {
        content: attr(aria-label);
        font: inherit !important;
    }
}
@media only screen and (min-width: 1025px) {
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 {
        flex-wrap: wrap-reverse !important;
    }
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link {
        text-wrap: nowrap;
    }
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item > a.mega-menu-link .apgl-megamenu-user {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.mega-menu header.tribe-events-widget-events-list__header,
.mega-menu .tribe-events .tribe-events-widget-events-list__event-datetime-wrapper {
    display: none;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-column > ul.mega-sub-menu h5 {
    color: #666;
    font-family: inherit;
    font-size: 14px;
    text-transform: none;
    text-decoration: none;
    font-weight: normal;
    text-align: left;
    margin: 0px 0px 0px 0px;
    padding: 0px;
    border: 0;
    letter-spacing: normal;
    line-height: normal;
}

#mega-menu-wrap-max_mega_menu_1, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 ul.mega-sub-menu, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-row, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-column, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 a.mega-menu-link, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 span.mega-menu-badge, #mega-menu-wrap-max_mega_menu_1 button.mega-close, #mega-menu-wrap-max_mega_menu_1 button.mega-toggle-standard,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-column-standard h4.mega-block-title, #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-column > ul.mega-sub-menu > li.mega-menu-item h4.mega-block-title {
    line-height: 1.7;
}

@media print {
    .apgl-print-hide, .apgl-user-wrapper, .apgl-sso-button, .apgl-edit-livre, .apgl-edit-post, nav, .wp-block-navigation, .site-footer, footer, .widget-area {
        display: none !important;
    }

    main {
        padding: 0 !important;
        margin: 0 !important;
    }

    a[href]:not(.apgl-no-print-href,.page-numbers)::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }

    .apgl-no-print-href a[href]::after, .wp-block-site-logo a[href]::after {
        content: none;
    }

    body {
        background: #fff !important;
    }
    
    .wp-block-site-title {
        display: block !important;
    }
}


.tribe-events-calendar-list .tec-events-calendar-list__event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;

}

@media only screen and (max-width: 1024px) {
    #mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-megamenu > ul.mega-sub-menu {
        box-shadow: none !important;
    }
}


.text-sm {
    font-size: .8em
}
.yoast-breadcrumbs.text-sm {
    color: #999;
    font-size: .7em;
}
.yoast-breadcrumbs.text-sm span + span::before {
    content: "• ";
    padding: 0 0.3em;
    color: #555;
}
.yoast-breadcrumbs.text-sm .breadcrumb_last {
    display: none;
}
.yoast-breadcrumbs [class^="dashicons"] {
    vertical-align: middle;
}
.yoast-breadcrumbs [class^="dashicons"] span {
    display: none;
}
[class^="dashicons"]:before {
     font-family: dashicons;
 }



.apgl-megamenu-mobile-header .wp-block-search__input {
    padding: 0.5ex 1.5em;
    border-radius: 3.125rem 0 0 3.125rem;
}
.apgl-megamenu-mobile-header .wp-block-search__button {
    padding: 1ex 1.5ex 1ex 1ex;
    border-radius: 0 3.125rem 3.125rem 0;
    margin-left: 0;
}
.apgl-megamenu-mobile-header .wp-block-search__button svg {
    min-height: auto;
    min-width: auto;
}


.apgl-logo-wrapper {
    max-width: 340px;
}

.wp-container-core-post-template-is-layout-77737926 {
    max-width: 600px;
}
@media (max-width: 600px) {
    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.force-3-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.wp-block-social-link a {
    line-height: inherit;
}

.apgl-event-city:empty {
    display: none !important;
}
