/*
 Theme Name:   Albany Weblog 2025
 Description:  Child theme for Albany Weblog based on Twenty Twenty-Five
 Author:       Your Name
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  albany-weblog-2025
*/

header.wp-block-template-part {
    display: contents;
}

.site-header{
    position: static;

    .wp-block-site-title {
        transition: 0.5s;
    }
    
    body.has-stuck-header & {
        background-color: #ffff99;
        position: sticky;
        top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px));
        box-shadow: 0px 2px 7px 0px rgb(0 0 0 / 45%);
        width: 100vw;
        z-index: 100;
        
        > .wp-block-group {
            padding: 0;

            > .wp-block-group {
                padding: 1rem 0 0 0 !important;
                transition: 0.5s;
            }
        }

        .wp-block-site-title {
            font-size: 1.8rem;
            transition: 0.5s;
        }
    }
}

.wp-block-group.block--articles-archive {
    background: #ffff99;

    ul {
        padding-inline-start: 1.6rem;
    }

    ul#widget-collapsArch-1c3d5275-79fa-40bf-b250-240e069c9116-top li.collapsing-archives .sym {
        font-size: 1rem;
        vertical-align: middle;
    }

    @media (width < 782px) {
        position: fixed;
        top: calc(var(--wp-admin--admin-bar--position-offset, 0px) + var(--header-height, 0px));
        left: 0;
        height: calc(100vh - var(--wp-admin--admin-bar--position-offset, 0px) - var(--header-height, 0px));
        padding: 1rem;
        translate: -100%;
        transition: 0.5s;

        &:hover {
            translate: 0;
            box-shadow: 2px 2px 7px 0px rgb(0 0 0 / 45%);

            &::before {
                opacity: 0;
            }
        }

        &::before {
            content: "\2630";
            position: absolute;
            left: 100%;
            background: white;
            padding: 0.75rem;
            cursor: pointer;
            box-shadow: 0px 0px 7px 2px rgb(0 0 0 / 45%);
            border-radius: 0 5px 5px 0;
            opacity: 1;
            transition: 0.5s;
        }
    }
}

.wp-block-collapsing-archives {
    max-height: calc(100vh - var(--wp-admin--admin-bar--position-offset, 0px) - var(--header-height, 0px) - 3.2rem - (var(--wp--preset--font-size--x-large) * 1.125) - (var(--wp--preset--font-size--large) * 1.4));
    overflow: auto;

    .widget-title {
        display: none;
    }
}