
.topic-selector {
    position: relative;
    color: #FFF;
    margin-top: 2em;
    margin-bottom: 3.75em;
}

.topic-selector:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    opacity: 0.5;
}

.topic-selector__background {
    background: transparent no-repeat center bottom;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.topic-selector__background-image {
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0;
    background-size: cover;
    transition: opacity 0.4s ease-in-out;
}

.topic-selector__tiles {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.topic-selector__tile {
    color: #FFF;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: end;
    justify-content: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    width: 33.3333%;
    padding: 2.1875rem;
    border-left: 1px solid #FFF;
    overflow: hidden;
    min-height: 400px;
}

.topic-selector__tile:nth-child(3n + 1) {
    border-left: none;
}

.topic-selector__tile:nth-child(-n + 3) {
    border-bottom: 1px solid #FFF;
}

.topic-selector__tile:hover .topic-selector__card,
.topic-selector__tile:focus .topic-selector__card {
    top: 0;
}

@media screen and (max-width: 47.9375em) {
    .topic-selector__tile .topic-selector__card {
        opacity: 0;
        visibility: hidden;
    }
}

.topic-selector__tiles--four-grid .topic-selector__tile {
    width: 50%;
    border: none;
    border-bottom: 1px solid #FFF;
}

.topic-selector__tiles--four-grid .topic-selector__tile:nth-child(even) {
    border-left: 1px solid #FFF;
}

.topic-selector__tiles--four-grid .topic-selector__tile:nth-child(n + 5) {
    border-bottom: none;
}

.topic-selector__header {
    font-family: "BakerMcKenzieBerniniCondensed", Arial Narrow, Arial;
    font-weight: normal;
    font-style: normal;
    font-size: 48px;
    line-height: 1.1666;
    font-weight: bold;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.topic-selector__header:lang(zh-hans) {
    font-family: "Noto Sans SC", Arial Narrow, Arial;
}

.topic-selector__header:lang(zh-hant) {
    font-family: "Noto Sans TC", Arial Narrow, Arial;
}

.topic-selector__title {
    font-family: "BakerMcKenzieBerniniCondensed", Arial Narrow, Arial;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    font-weight: 500;
}

.topic-selector__title:lang(zh-hans) {
    font-family: "Noto Sans SC", Arial Narrow, Arial;
}

.topic-selector__title:lang(zh-hant) {
    font-family: "Noto Sans TC", Arial Narrow, Arial;
}

.topic-selector__card {
    color: #FFF;
    background-color: #a91d4d;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: 100%;
    transition: top 0.4s ease-in-out;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 18px;
}

.topic-selector__card-inner {
    padding: 2.1875rem;
}

.topic-selector__card-title {
    font-family: "BakerMcKenzieBerniniCondensed", Arial Narrow, Arial;
    font-weight: normal;
    font-style: normal;
    font-size: 30px;
    line-height: 1.1666;
    font-weight: bold;
}

.topic-selector__card-title:lang(zh-hans) {
    font-family: "Noto Sans SC", Arial Narrow, Arial;
}

.topic-selector__card-title:lang(zh-hant) {
    font-family: "Noto Sans TC", Arial Narrow, Arial;
}

.topic-selector__card-content {
    margin: 1em 0 3.5em;
}

.topic-selector__card-link {
    color: #FFF;
}

@media screen and (max-width: 47.9375em) {
    .topic-selector__tile {
        width: 50%;
        padding: 0.9375rem;
        min-height: 200px;
        border: none;
        border-bottom: 1px solid #FFF;
    }

    .topic-selector__tile:nth-child(even) {
        border-left: 1px solid #FFF;
    }

    .topic-selector__tile:nth-child(n + 5) {
        border-bottom: none;
    }

    .topic-selector__header {
        font-size: 28px;
    }

    .topic-selector__title {
        font-size: 20px;
    }

    .topic-selector__card {
        height: auto;
        min-height: 100%;
    }

    .topic-selector__card-inner {
        padding: 0.9375rem;
    }

    .topic-selector__card-title {
        font-size: 20px;
    }

    .topic-selector__card-content {
        font-size: 14px;
        margin: 0.75em 0 1em;
        line-height: 1.25;
    }
}
