/*
Theme Name:     Huîtrières
Theme URI:      
Description:    Twentytwentyfive child theme.
Author:         Me
Author URI:     
Template:       twentytwentyfive
Version:        0.1.0
*/

/* latin */
@font-face {
  font-family: 'League Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/leaguescript/v30/CSR54zpSlumSWj9CGVsoBZdeWNReuc4nG2o.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

aside h2.wp-block-heading,
.wp-block-post-title {
    text-align: center;
    font-family: "League Script", cursive;
    font-weight: bold;
}
aside iframe {
    max-width: 100vw !important;
}

.wp-block-navigation__submenu-container {
    padding-right: 0 !important;
}

.wp-block-page-list > li,
.wp-block-page-list > li > a {
    text-align: right;
}
.wp-block-page-list > li > a {
    padding: 1rem;
    font-size: 1.4rem;
}

main {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.flex-wrap {
    flex-wrap: wrap;
}

.nowrap {
    white-space: nowrap;
}

.huitrieres-header button {
    outline: none;
    border: none;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #000;
    background-color: transparent;
}

.huitrieres-header .wp-block-search__inside-wrapper {
    max-width: 35vw;
    display: flex;
    justify-content: flex-end;
    margin-right: -1rem;
}
.huitrieres-header .wp-block-search__inside-wrapper input {
    max-width: 20vw;
}

.huitrieres-header .trp-language-switcher,
header .trp-language-switcher {
    padding: 0;
}

.huitrieres-header .trp-shortcode-switcher__wrapper,
header .trp-shortcode-switcher__wrapper {
    height: 34px;
}

@media screen and (max-width: 600px) {
    .huitrieres-header .trp-shortcode-switcher__wrapper,
    header .trp-shortcode-switcher__wrapper {
        position: absolute;
        top: 3rem;
        right: 4rem;
    }
}

/* huitrieres_lang_switcher */
.huitrieres_lang_switcher {
    list-style-type: none;
    display: none;
    display: inline-flex;
}
.huitrieres_lang_switcher:empty {
    display: none;
}
.huitrieres_lang_switcher a {
    text-decoration: none;
}
.huitrieres_lang_switcher a:hover {
    text-decoration: underline;
}
.huitrieres_lang_switcher a img {
    display: none;
}
.huitrieres_lang_switcher a[lang=fr-FR]::before {
    content: "🇫🇷";
}
.huitrieres_lang_switcher a[lang=en-GB]::before {
    content: "🇬🇧";
}
.huitrieres_lang_switcher a[lang=de-DE]::before {
    content: "🇩🇪";
}

.wp-block-page-list li.wp-block-pages-list__item:has(a[href$="/pages-hors-menu-fr/"]),
.wp-block-page-list li.wp-block-pages-list__item:has(a[href$="/pages-hors-menu-en/"]),
.wp-block-page-list li.wp-block-pages-list__item:has(a[href$="/pages-hors-menu-de/"]) {
    display: none !important;
}

/*
body.block-editor-iframe__body p.has-small-font-size:last-child,
footer > p:last-child {
    background: #000;
    color: #fff;
    padding: 1rem;
    line-height: 4rem;
    margin: 0;
}

body.block-editor-iframe__body p.has-small-font-size:last-child > a,
footer > p:last-child > a {
    padding: 1rem;
    background: #fff;
    border-radius: 2rem;
    margin: 1rem 0;
    color: #000;
    white-space: nowrap;
}
*/

