html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    font-family: "Montserrat", sans-serif;
}

:root {
    --black: #161616;
    --white: #ececec;
    --yellow: #ba9207;
}

body {
    margin: 0rem;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

button > h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

p {
    line-height: 1.5rem;
}

img {
    width: 100%;
}

a {
    width: 100%;
    text-decoration: none;
    color: var(--yellow);
}

.shellan-black {
    background: var(--black);
    color: var(--white);
}

#index-title {
    text-align: center;
    padding: 2rem;
}

.main-grid-container {
    display: grid;
    grid-template-columns: 1fr minmax(350px, 900px) 1fr;
    grid-template-rows: repeat(5, auto);
    grid-template-areas:
        ". intro ."
        ". extra ."
        ". design ."
        ". aux ."
        ". ex-sp .";
}

.intro {
    grid-area: intro;
}

.extra-curr {
    grid-area: extra;
}

.design-proc {
    grid-area: design;
}

.auxiliary {
    grid-area: aux;
}

.extra-space {
    grid-area: ex-sp;
    height: 300px;
}

.section {
    padding: 1rem 2rem;
}

.section > button {
    cursor: pointer;
    width: 100%;
}

.content {
    display: none;
}

figcaption {
    margin-top: 1rem;
    color: grey;
}

.figure-list {
    overflow-wrap: break-word;
}

iframe {
    width: 100%;
    height: 500px;
}

figure video {
    width: 100%;
}

figure img {
    width: 100%;
}

.moodboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    margin-bottom: 1rem;
}

.moodboard figure {
    padding: 0px;
    margin: 0px;
}

.moodboard img {
    object-fit: cover;
    height: 200px;
    vertical-align: middle;
}

.image-collection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    margin-bottom: 1rem;
}

.image-collection figure {
    padding: 0px;
    margin: 0px;
}

.image-collection img {
    object-fit: contain;
    height: 600px;
}

.navigation {
    position: fixed;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    bottom: 0;
    padding: 1rem;
    justify-items: center;
}

.navigation div {
    margin-top: 1rem;
}

.navigation a {
    color: white;
}

.image-2x1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.image-2x1 img {
    height: 300px;
    object-fit: cover;
}

.image-1x2-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.image-1x2-right figure {
    margin: 0;
}

.image-1x2-right img {
    height: 300px;
    object-fit: contain;
}

.image-1x2-right .main-img {
    grid-column: span 2;
}

.image-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.image-2x2 figure {
    padding: 0.5rem;
    width: 100%;
    margin: 0px;
}

.image-3x {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.image-3x figure {
    margin: 0.5rem;
}

.image-3x img {
    height: 150px;
    object-fit: cover;
}

.image-4x2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.image-4x2 figure {
    border: 2px solid black;
}

.colour-palette {
    display: grid;
    grid-template-columns: repeat(3, 160px);
    grid-template-rows: auto;
    justify-items: center;
    justify-content: center;
}

.colour-palette figure {
    margin: 0.25rem;
    width: 150px;
    height: 150px;
}

#ct1 {
    background-color: #0378a6;
}

#ct2 {
    background-color: #04b2d9;
}

#ct3 {
    background-color: #5cf2f2;
}

#ct4 {
    background-color: #010326;
}

#ct5 {
    background-color: #0d0d0d;
}

#ct6 {
    background-color: #f2b705;
}

#sw1 {
    background-color: #f24484;
}

#sw2 {
    background-color: #300c40;
}

#sw3 {
    background-color: #0367a6;
}

#sw4 {
    background-color: #afd9ad;
}

#sw5 {
    background-color: #020b26;
}

#sw6 {
    background-color: #d96725;
}

#sw7 {
    background-color: #dfedf2;
}

#sw8 {
    background-color: #d98841;
}

.reduce {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.active {
    scale: 1.1;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.design-proc > .collapsible {
    --angle: 0deg;
    animation: 4s rotate ease-in-out infinite;
    border: 0.25rem solid;
    border-image: linear-gradient(var(--angle), var(--yellow), var(--white)) 1;
}

.collapsible {
    transition: scale 1s;
}

.main-grid-container .collapsible:hover {
    scale: 1.1;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@media only screen and (max-width: 900px) {
    .navigation {
        font-size: 0.75rem;
    }
}

@media only screen and (max-width: 600px) {
    .navigation {
        text-align: center;
        font-size: 0.55rem;
    }
}