header.wp-block-template-part {
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        padding-top: 32px;
        padding-bottom: 32px;
        transition: padding 0.25s ease, box-shadow 0.25s ease;
}

header.wp-block-template-part .wp-block-site-logo img {
        transition: width 0.25s ease, height 0.25s ease;
        width: 120px;
        height: auto;
}

header.wp-block-template-part.is-shrunk {
        padding-top: 0;
        padding-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header.wp-block-template-part.is-shrunk .wp-block-site-logo img {
        width: 60px; /* your current logo width */
}
