html {
    scroll-behavior: smooth;
}

main {
    max-width: 768px;
}

main h1 {
    margin-top: 1em;
    font-size: clamp(1.5rem, 1rem + 6vw, 3rem);
}

main h2 {
    margin-bottom: 1em;
    font-weight: 400;
}

main p {
    margin: 1em auto;
    font-size: 1.125rem;
    line-height: 1.5em;
}

main img {
    width: 100%;
    display: block;
    margin: 2em auto;
}

hr {
    margin: 2em 0;
}

details p {
    font-size: 1rem;
}

summary {
    font-weight: 600;
    font-size: 1.25rem;
}

summary:hover {
    cursor: pointer;
}

details li {
    margin: .5em 0;
}

details li a {
    margin-right: .125em;
}

.article:after {
    content: " [article]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.essay:after {
    content: " [essay]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.manifesto:after {
    content: " [manifesto]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.pdf:after {
    content: " [pdf]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.transcript:after {
    content: " [transcript]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.video:after {
    content: " [video]";
    font-size: .85rem;
    color: var(--color-gray-dark);
}

.carousel {
    margin: 2em 0;
}

.splide__track {
    overflow: visible;
}

#thumbnail-slider-track {
    overflow: hidden;
}

.splide__slide {
    opacity: 0.4;
    border: 0rem solid white !important;
    position: relative;
}

.splide__slide.is-active {
    border: 0rem solid white;
}

#thumbnail-slider {
    margin-top: max(2em, calc(8em - 12vw));
    /* transform: translateY(100%); */
}

#thumbnail-slider .splide__slide.is-active {
    opacity: 1;
    border: none;
}

.splide__pagination {
    display: none;
}

.slider-caption {
    position: absolute;
    transform: translateY(100%);
    bottom: 0;
    left: 0;
    right: 0;
    padding: .5em;
    font-size: .85rem;
    color: red;
    /* background: var(--color-fg); */
    color: var(--color-fg);
    z-index: 999;
    margin: 0;
}

.photo-text-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 2rem;
    font-size: 1.25rem;
}

.photo-text-container img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
}

@supports not (aspect-ratio: 1 / 1) {
    .photo-text-container img::before {
        float: left;
        padding-top: 100%;
        content: "";
    }

    .photo-text-container img::after {
        display: block;
        content: "";
        clear: both;
    }
}


.additional-material-menu hr {
    height: 0;
}

.notes p {
    font-size: 1rem;
}

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

.grid-3x2 img {
    aspect-ratio: 1 / 1;
    width: 100%;
    margin: 0;
    object-fit: cover;
}

.grid-2x1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.grid-2x1 img {
    aspect-ratio: 1 / 1;
    width: 100%;
    margin: 0;
    object-fit: cover;
}

section {
    margin: 3rem 0;
}

figure {
    margin: 2em 0;
}

figure img {
    margin: 0 auto;
    width: 100%;
}

figcaption {
    margin-top: .5rem;

}

.image-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.image-card {
    display: flex;
    flex-direction: column;
    flex-basis: 200px;
    flex-grow: 1;
    gap: 1rem;
}

.image-card img {
    margin: 0;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

.image-card figcaption {
    font-size: .9rem;
    line-height: 1.5;
}


.image-caption {
    display: flex;
    flex-direction: column;
    flex-basis: 300px;
    flex-grow: 1;
    gap: .25rem;
}

.image-caption img {
    margin: 0;
    object-fit: cover;
    width: 100%;
}

.image-caption figcaption {
    font-size: .9rem;
    line-height: 1.5;
}

.item {
    display: grid;
    grid-template-columns: 3fr 5fr;
    gap: clamp(1em, 1em + 2vw, 1.5em);
    place-items: center;
    margin: 3em 0;
    position: relative;
}

@media (max-width: 450px) {
    .item {
        grid-template-columns: 1fr;
    }
}

.item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: .0625rem;
    background: #aaa;
    top: -1.5em;
}

.item h3 a {
    color: black;
    text-decoration: none;
    font-weight: 600;
}

.item h3 a:hover {
    color: var(--color-link-hover);
}

.img-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    overflow: hidden;
}

.img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.text {
    width: 100%;
}

.text>*>span:first-of-type {
    font-weight: 700;
}

.text p {
    margin: .25em 0;
}

.font-1 {
    font-size: clamp(.8rem, .5rem + 1.5vw, 1rem);
}

.font-2 {
    font-size: clamp(.8rem, .5rem + 1.3vw, .9rem);
}

.font-3 {
    font-size: clamp(.8rem, .5rem + 1.2vw, .8rem);
}