/* Hide default portal header */
html[data-page-template="portal"] main > header {
    display: none;
}

/* Custom heading */
html[data-page-template="portal"] main.home-page::before {
    content: "Checkit Help Center";
    display: block;
    max-width: 1068px;
    margin: 0 auto;
    padding: 2rem 0 0.5rem 0;
    box-sizing: border-box;
    text-align: left;
    font-size: 2.5rem;
    font-weight: bold;
    background-color: #ffffff;
    color: #333333;
    position: relative;
    left: 36px;
}

/* Custom subheading */
html[data-page-template="portal"] main.home-page #content::before,
html[data-page-template="portal"] .home-page #content::before {
    content: "Please select an option to access the relevant help content";
    display: block;
    max-width: 1068px;
    margin: -2rem auto 1.5rem auto;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
    font-size: 1.5rem;
    font-weight: normal;
    background-color: #ffffff;
    color: #333333;
    position: relative;
    z-index: 1;
}

/* Tile images */
.tile-image,
.tile.tile--spaces img {
    width: auto;
    height: auto;
    max-width: 265px;
    max-height: 265px;
    display: block;
    margin: 0 auto 0.3rem auto;
}

/* Tile/container styling */
.tile,
.tile.tile--spaces {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    padding: 1.5rem;
}

/* Centre tile text */
.tile,
.tile * {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1068px) {

    html[data-page-template="portal"] main.home-page::before {
        font-size: 2rem;
        padding: 1rem 16px 0.5rem 16px;
        left: 0;
    }

    html[data-page-template="portal"] main.home-page #content::before,
    html[data-page-template="portal"] .home-page #content::before {
        font-size: 1.2rem;
        padding: 0 16px;
        margin-top: -1rem;
    }

    .tile-image,
    .tile.tile--spaces img {
        max-width: 220px;
        max-height: 220px;
    }
}