
/* =========================================
   JAZZ PAGE — AEGEAN SUITE
   ========================================= */

@media screen and (max-width: 767px) {
    body.page .site-content .bg-box-cover {
        padding: 20px 5% !important;
    }

    body.page .site-content p[style*="margin-left: -123px"] {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
}

/* =========================================
   DISCOGRAPHY — MOBILE HEADING
   ========================================= */

@media screen and (max-width: 767px) {
    body.page .entry-content h1 {
        font-size: clamp(32px, 9vw, 44px);
        line-height: 1.2;
        overflow-wrap: normal;
        word-break: normal;
    }
}

/* =========================================
   HOMEPAGE — MOBILE PHOTOGRAPH AND TEXT
   ========================================= */

@media screen and (max-width: 767px) {
    body.home .boldgrid-section:has(.wp-image-45) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.home .boldgrid-section .wp-image-45 {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    body.home .boldgrid-section p:has(> img.wp-image-45) {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 0 !important;
        overflow-wrap: anywhere;
    }

    body.home .boldgrid-section .has-text-align-center {
        text-align: center !important;
        margin-top: 0 !important;
    }

    body.home .boldgrid-section:has(.wp-image-45) .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================
   HOMEPAGE — DESKTOP SOCIAL ICONS
   ========================================= */

@media screen and (min-width: 768px) {
    body.home .row:has(.fa-linkedin)
    > div:has(.fa-facebook-square) br {
        display: none !important;
    }

    body.home .row:has(.fa-linkedin)
    > div:has(.fa-facebook-square) {
        transform: none !important;
    }

    /* Preserve your working Facebook adjustment */
    body.home .row:has(.fa-linkedin) .fa-facebook-square {
        transform: translateY(30px);
    }
}

/* =========================================
   HOMEPAGE — MOBILE SOCIAL ICONS
   ========================================= */

@media screen and (max-width: 767px) {

    /* Center the icon row vertically */
    body.home .row:has(.fa-linkedin) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        padding-top: 15px !important;
        margin-top: 0 !important;
    }

    /* Hide empty BoldGrid spacer columns */
    body.home .row:has(.fa-linkedin)
    > div:not(:has(.fa)) {
        display: none !important;
    }

    /* Equal height and width for each icon container */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) {
        display: flex !important;
        flex: 0 0 44px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 44px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
    }

    /* Center the actual icon paragraphs */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) p {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    /* Remove Facebook's extra line break */
    body.home .row:has(.fa-linkedin) br {
        display: none !important;
    }

    /* Keep the original icon size */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) i {
        font-size: 36px !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        transform: none !important;
    }
}

/* =========================================
   HOMEPAGE — TABLET SOCIAL ICON ALIGNMENT
   ========================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    /* Remove the original left offset */
    body.home .boldgrid-section:has(.wp-image-45) {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Center the photograph */
    body.home .boldgrid-section .wp-image-45 {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
    }

    /* Neutralize spaces before the photograph */
    body.home .boldgrid-section p:has(> img.wp-image-45) {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 0 !important;
        overflow-wrap: anywhere;
    }

    /* Center the introduction */
    body.home .boldgrid-section .has-text-align-center {
        text-align: center !important;
        margin-top: 0 !important;
    }

    /* Center the social icon row */
    body.home .row:has(.fa-linkedin) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        margin-top: 0 !important;
        padding-top: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Hide unused spacer columns */
    body.home .row:has(.fa-linkedin)
    > div:not(:has(.fa)) {
        display: none !important;
    }

    /* Equal-size containers */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) {
        display: flex !important;
        flex: 0 0 44px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 44px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        font-size: 0 !important;
        line-height: 0 !important;
        transform: none !important;
    }

    /* Center icons inside their paragraphs */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) p {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0 !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    /* Remove Facebook's extra line break */
    body.home .row:has(.fa-linkedin) br {
        display: none !important;
    }

    /* Preserve original icon size and color */
    body.home .row:has(.fa-linkedin)
    > div:has(.fa) i {
        font-size: 36px !important;
        line-height: 1 !important;
        vertical-align: middle !important;
        transform: none !important;
    }
}
