#masthead #searchform input[type=text]::placeholder {
    color: transparent;
}

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

    button .icomoon-search {
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
    }
    button .icomoon-search:before {
        content : "";
    }
    button .icomoon-search:after {
        content: "";
        display: inline-block;
        width: 1rem;
        height: 1rem;
        background: url(../images/search-icon-black.svg) no-repeat;
        background-size: contain;
        transform: scale(1.5);
        position: absolute;
        left: 9px;
        top: 11px;
    }

    /* ------------------------------ */

    #masthead #searchform {
        display: block;
        background : unset;
        border : unset;

        position: absolute;
        top : 8px;
        right : 11px;

    }
    #masthead #searchform input[type=text] {
        display: block;
        background : unset;
        border : unset;

        width : 50px;
        opacity : 0;
        font-size: 0rem;
        transform: translateX(10px);
    }
    #masthead #searchform input[type=text]::placeholder {
        color: #8c919b;
    }
    #masthead #searchform button {
        position: absolute;
        right: -20px;
        top: 7px;
        z-index: -1;
    }
    #masthead #searchform div.search_popup_background {
        opacity: 0;
        pointer-events : none;
        top : 0;
        left : 0;
        width: 100%;
        height: 100%;
        position: fixed;
        transition : opacity 0.3s;
        background-color : rgba(255,255,255,0.9);
        /* background: linear-gradient(rgba(255,255,255,0.9),rgba(255,255,255,0.9) 80%, rgba(255,255,255,0) ); */
    }

    #masthead #searchform input[type=text]:focus {
        width: 100% !important;
        height: 140px;
        position: fixed;
        padding: 5vw 13vw;
        top: calc( 50% - 70px);
        
        /* background: linear-gradient(rgba(255,255,255,0.9),rgba(255,255,255,0.9) 80%, rgba(255,255,255,0) ); */
        /* box-shadow: inset 0px 0px 7px black; */
        
        font-size: 1.3rem;
        opacity: 1;
        transition : opacity 0.3s, font-size 0.3s;
        z-index: 15;
    }
    #masthead #searchform input[type=text]:focus~div.search_popup_background {
        opacity: 1;
        pointer-events : unset;
        
        top : 0;
        left : 0;
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 10;
    }
    #masthead #searchform input[type=text]:focus~div.search_popup_background:after {
        content: "";
        pointer-events: unset;
        position: fixed;
        top: calc(50% - -24px);
        left: 17vw;
        width: calc(100% - 34vw);
        height: 2px;
        background-color: #8c919b;
    }
    #masthead #searchform input[type=text]:focus~button,
    #masthead #searchform button:focus {
        position: fixed;
        right: 7vw;
        transform: scale(1.5);
        top: calc(50% - 13px);
        z-index: 20;
    }
    #masthead #searchform button:focus{
        opacity : 0;
    }
    #masthead #searchform input[type=text]:focus~button *{
        pointer-events : none;
    }
}