/* Logo-Only Header block — front-end + shared styles */

.wp-block-cakeclub-logo-only-header.logo-only-header {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.wp-block-cakeclub-logo-only-header.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.logo-only-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.logo-only-header-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.logo-only-header-logo-link:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.logo-only-header-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

/* When desktop and mobile use the same image we resize via CSS variables. */
.logo-only-header-logo-single {
    width: var(--logo-w-desktop, 180px);
}

/* Default visibility: show the desktop logo, hide the mobile-only one. */
.logo-only-header-logo-mobile {
    display: none;
}

.logo-only-header-logo-desktop {
    display: block;
}

@media (max-width: 768px) {
    .logo-only-header-logo-single {
        width: var(--logo-w-mobile, 140px);
    }

    /* If a separate mobile logo image was supplied, swap them. */
    .logo-only-header-logo-desktop:not(.logo-only-header-logo-single) {
        display: none;
    }

    .logo-only-header-logo-mobile {
        display: block;
    }
}
