:root {
    --active: #f652c3;
    --active-light: #ff7ab1;
    --active-dark: #ff61be;
    --bg-white: #dddddd;
    --bg-light: #65706c;
    --bg-dark: #262f2c;
    --menu-dark: #111c18;
}

* {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

body {
    color: #fff;

    /*max-width: 960px;*/

    margin-left: auto;
    margin-right: auto;

    margin-left: 44px;
    margin-right: 44px;
    margin-top: 55px;
    margin-bottom: 48px;

    background: radial-gradient(at 50% 100%, #7c8c8a, #394443);
}
@media (max-width: 960px) {
    body {
        margin-left: 8px;
        margin-right: 8px;
        margin-top: 8px;
    }
}

header {
    margin-left: 24px;
    margin-bottom: 25px;
}
@media (max-width: 960px) {
    header {
        margin-left: 16px;
        margin-top: 32px;
    }
}

#mainnav ul {
    list-style: none;
    padding-left: 0px;
    margin-left: 10px;
    margin-top: 0px;
}
#mainnav li {
    height: 56px;
    width: 204px;
    background-color: var(--menu-dark);
    margin-bottom: 14px;
    position: relative;
}
#mainnav li.mobile-current {
    display: none;
}
#mainnav a, #mainnav label {
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;

    width: 100%;
    height: 100%;

    font-size: 18px;
    font-weight: bold;

    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}
#mainnav li:hover,
#mainnav li.active,
#mainnav li.mobile-current {
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
#mainnav li:hover:after,
#mainnav li.active:after {
    content:"";
    position: absolute;
    top: calc(50% - 10px);
    right: -9px;
    width: 0%;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--active-dark);
}
@media (max-width: 960px) {
    #mainnav {
        position: absolute;
        top: 0px;
        right: 0px;
    }
    #showmainnav:checked + #mainnav {
        background-color: var(--bg-light);
    }
    #mainnav ul {
        margin: 16px;
    }
    #mainnav li {
        display: none;
    }
    #mainnav li.mobile-current {
        display: block;
    }
    #mainnav li.mobile-current label {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
    }
    #mainnav li.mobile-current label .icon {
        font-size: 40px;
    }
    #showmainnav:checked + #mainnav li {
        display: block;
    }
    #showmainnav:checked + #mainnav li.active {
        display: none;
    }

    #mainnav li:after {
        display: none;
    }
}
@media (max-width: 440px) {
    /* very narrow; logo + main menu overlap */
    #mainnav li.mobile-current {
        width: 64px;
        margin-left: calc(100% - 64px);
    }
    #mainnav li.mobile-current label .text {
        display: none;
    }
    #mainnav li.mobile-current label .icon {
        width: 32px;
    }
    #showmainnav:checked + #mainnav li.mobile-current {
        width: auto;
        margin-left: 0px;
    }
    #showmainnav:checked + #mainnav li.mobile-current label .text {
        display: block;
    }
}

#subnav {
    position: absolute;
    left: 278px;
    top: 30px;
}
#subnav ul {
    list-style: none;
    padding-left: 0px;
    display: flex;
    column-gap: 16px;
}
#subnav li {
    position: relative;
    display: inline-block;
    width: 170px;
    height: 48px;
    background-color: var(--bg-dark);
}
#subnav a {
    color: var(--bg-white);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    font-size: 18px;
    font-weight: bold;

    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}
#subnav li:hover,
#subnav li.active {
    background-color: var(--bg-white);
}
#subnav li:hover a,
#subnav li.active a {
    color: var(--bg-dark);
}
#subnav li:hover:after,
#subnav li.active:after {
    content:"";
    position: absolute;
    left: calc(100% / 2 - 10px);
    bottom: -9px;
    width: 0%;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--bg-white);
}

#content {
    display: flex;
    overflow-x: scroll;
    padding-top: 10px;
    padding-bottom: 16px;
}
@media (max-width: 960px) {
    #content {
        overflow-x: unset;
    }
    #subnav {
        position: static;
        overflow-x: scroll;
        overflow-y: hidden;
    }
    #subnav ul {
        justify-content: space-around;
    }
    #subnav a {
        padding-left: 16px;
        padding-right: 16px;
    }
    #subnav li.active {
        scroll-margin-top: 96px;
    }
}

#tiles {
    margin-left: 20px;
}
#tiles.columns {
    display: flex;
    column-gap: 16px;
    row-gap: 16px;
}
#tiles.rows {
    display: grid;
    row-gap: 12px;
    column-gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}
#tiles a {
    text-decoration: none;
    display: block;
}
.tile {
    display: flex;
    flex-direction: column;
    margin: 0px;
    background-color: var(--bg-dark);
    width: 350px;
    color: white;
    font-weight: bold;
}
.tile:hover {
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
.tile img[height="160"] {
    height: 166px;
}
.tile img[height="236"] {
    height: 244px;
}
.tile > p {
    margin: 0px;
    padding: 0px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
    font-weight: bold;

    background-color: var(--bg-white);
    color: var(--bg-dark);
}
.tile figcaption {
    line-height: 24px;
    padding-left: 10px;
    padding-top: 2px;
    padding-bottom: 6px;
}

.column {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}
@media (max-width: 960px) {
    #tiles {
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-left: 0px;
        max-width: 100%;
    }
    #tiles .column {
        max-width: 100%;
    }
    #tiles.rows {
        display: flex;
    }
    #tiles a {
        max-width: 100%;
    }
    .tile {
        max-width: 100%;
    }
    .tile img {
        max-width: 100%;
        height: auto;
    }
}

#detailScroll {
    height: 0px;
}
.scrollArrow {
    background-color: var(--active);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;

    display: block;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    line-height: 24px;

    position: relative;
    top: calc(-516px / 2);
    left: -48px;
}
.scrollArrow:hover {
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
#detailRight {
    top: calc(-516px / 2 - 2.5rem);
    left: calc(100vw - 44px - 2.5rem);
}
.scrollArrow.hidden {
    visibility: hidden;
}
@media (hover: none) {
    #details {
        touch-action: auto;
    }
    .scrollArrow {
        display: none;
    }
}

#content article {
    margin-left: 20px;
    margin-right: 20px;
    max-width: 50rem;
}
#content article h1 {
    margin-top: 0px;
}
#content article a,
#content article a:visited {
    font-weight: normal;
    color: white;
}
#content article > img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
    height: auto;
}
