/* Visual QA: confirmed tablet and mobile overflow fixes. */
@media (min-width: 768px) and (max-width: 1023px) {
    .hed .container.hed-title-div {
        width: calc(100vw - 160px);
        max-width: calc(100vw - 160px);
        box-sizing: border-box;
    }
    .hed .container.hed-title-div .row,
    .hed .container.hed-title-div .title {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hed-port .container.hed-title-div-port {
        width: calc(100vw - 160px);
        max-width: calc(100vw - 160px);
        box-sizing: border-box;
    }
    .hed-port .container.hed-title-div-port .title {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 767px) {
    .hed-port .container.hed-title-div-port {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    .hed-port .title {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(30px, 8.5vw, 42px) !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
        box-sizing: border-box;
    }
}

@media (max-width: 700px) {
    .hed .iconpok {
        box-sizing: border-box;
        width: 100px;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    #home-content ~ #trigger-overlay {
        display: none;
    }
}

@media (max-width: 700px) {
    .hed .iconpok span {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .hed .iconpok {
        position: relative;
        width: 84px;
        height: 84px;
        line-height: normal;
    }
    .hed .iconpok img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .hed .iconpok span {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        display: block !important;
        margin: 0 !important;
        transform: translateX(-50%);
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    #portfolio-work-content ~ #trigger-overlay {
        display: none;
    }
}
