body {
    margin: 0;
    padding: 0;
    background-image: none;
}

h3, h6 {
    background-color: transparent;
}

aside {
  /* background-attachment: fixed; */
  background-size: cover;
  background-position: center center;
  transition: background-image 200ms ease-in-out;
  background-image: url(../../assets/bg/monarch.jpg);
}

#map {
    height: 40vh;
    aspect-ratio: 1 / 1;
}

body > main {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100vh;
}

#toc {
    font-size: 0.75rem;
    background-color: white;
    padding: 0.5rem;
}

#toc ul {
    margin: 0;
    padding: 0;
    display: inline;
}

#toc strong {
    display: inline-block;
}

#toc li {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    line-height: 1;
}

aside {
    display: flex;
    flex-direction: column;
    flex-grow: 100;
}

#details {
    overflow: visible;
    padding: 1rem;
    flex-grow: 100;
}

section {
    cursor: pointer;
    padding: 1rem;
    margin: 0;
}

section h6 {
    margin-bottom: 0;
}

section *:last-child {
    margin-bottom: 0;
}

#toc li:hover {
    background: #90ee9050;
}

[data-has-photos=true]::before {
    content: "📸";
}

section:not(.active):hover h6 {
    background-color: #90ee9050;
}

#toc li.active,
section.active h6,
strong.active {
    background-color: lightgreen;
}

section:not(.active) {
    display: none;
}

ul {
    border: 1px solid transparent;
    transition: border-color 100ms ease-in-out;
}

ul.active {
    background-color: transparent;
    border: 1px solid darkgreen;
}

section:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    #map {
        height: 100vh;
        aspect-ratio: 3 / 4;
    }
    aside {
        flex-shrink: 100;
    }
    body > main {
        flex-direction: row;
    }
    section:not(.active) {
        display: block;
    }
    #details {
        overflow: auto;
    }

    section {
        margin-bottom: 10vh;
    }
}