/*
Theme Name: ZSTGM25
Theme URI: https://wordpress.org/themes/zstgm25/
Author: the WordPress team
Author URI: https://wordpress.org
Description: ZSTGM25 emphasizes simplicity and adaptability. It offers flexible design options, supported by a variety of patterns for different page types, such as services and landing pages, making it ideal for building personal blogs, professional portfolios, online magazines, or business websites. Its templates cater to various blog styles, from text-focused to image-heavy layouts. Additionally, it supports international typography and diverse color palettes, ensuring accessibility and customization for users worldwide.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zstgm25
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
    text-wrap: pretty;
}

/* generic classes */
.white-space-nowrap {
    white-space: nowrap;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

.word-break-break-all {
    word-break: break-all;
}

/* Social links */
.wp-social-link-facebook .wp-block-social-link-label, .wp-social-link-instagram .wp-block-social-link-label {
	display: none;
}

.wp-social-link-school svg, .wp-social-link-food svg, .wp-social-link-search svg {
    opacity: 0;
    max-width: 0;
}

.wp-social-link-school a, .wp-social-link-food a, .wp-social-link-search a {
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: 9px center;
}

.wp-social-link-school a {
    background-image: url("/wp-content/uploads/2025/07/logo-skola-online.png");
    background-size: 18px;
}

.wp-social-link-food a {
    background-image: url("/wp-content/uploads/2025/07/jidelna.png");
    background-size: 20px;
}

.wp-social-link-search a {
    background-image: url("/wp-content/uploads/2025/07/search.svg");
    background-size: 14px;
}

.mw-1300 {
    max-width: 1300px !important;
}

@media (max-width: 1200px) {
    /* page with sidebar */
    .sidebar-columns {
        flex-direction: column;
    }

    .sidebar-columns .wp-block-column:first-child  {
        order: 2;
    }

    .sidebar-columns .wp-block-column:last-child {
        order: 1;
    }

    /* sidebar boxes */
    .sidebar-columns .wp-block-column:first-child > .wp-block-group {
        flex-direction: row;
        display: flex;
        align-items: flex-start;
        gap: 2em;
    }

    .sidebar-columns .wp-block-column:first-child > .wp-block-group > div:nth-child(2) {
        margin-top: 0;
    }
}

@media (max-width: 992px) {
    header .wp-social-link-facebook, header .wp-social-link-instagram {
        display: none !important;
    }

    .wp-social-link-school .wp-block-social-link-label, .wp-social-link-food .wp-block-social-link-label {
        display: none;
    }
}

@media (max-width: 768px) {
    .home .wp-block-cover {
        max-height: 50vh;
    }

    .wp-block-site-logo.is-default-size img {
        max-width: 16vw;
    }
}

@media (max-width: 599px) {
    .header-main-nav-row {
        background-color: transparent !important;
        padding: 0 !important;
    }

    .header-main-nav-row .wp-block-navigation__responsive-container-close, .header-main-nav-row .wp-block-navigation__responsive-container-open {
        color: var(--wp--preset--color--contrast) !important;
    }

    .wp-block-search__input {
        padding-left: 15px !important;
    }

    .wp-block-search__input::placeholder {
        color: transparent;
    }

    .mobile-flex {
        display: flex;
    }

    .header-content-wrap {
        padding-bottom: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    /* sidebar boxes */
    .sidebar-columns .wp-block-column:first-child > .wp-block-group {
        flex-direction: column;
    }
}
