/* Reserve the part of the diaries dunes that extends below its zero-height seam. */
#about.about--without-partners {
    --diaries-dune-clearance: calc(197 / 1920 * max(100vw, 1920px) - 52 / 1920 * max(100vw, 1920px));
    margin-top: var(--diaries-dune-clearance);
}

#about .about__animal {
    --angle: calc(var(--i) * 360deg / var(--animal-count, 9) - 90deg);
    cursor: auto;
}

#about .about__animals-hint {
    display: none;
}

#about .about__animal-button,
#about .about__animal-image {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: transparent;
    color: inherit;
}

#about .about__animal-button {
    cursor: pointer;
}

#about .about__animal-button:focus-visible {
    outline: 2px solid var(--bg-accent, #0e6f67);
    outline-offset: 3px;
}

#about .about__animal-name {
    font-size: .875rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#about .about__animal-dialog {
    position: fixed;
    inset: 0;
    width: min(32rem, calc(100% - 2rem));
    height: fit-content;
    max-height: calc(100% - 2rem);
    max-height: calc(100dvh - 2rem);
    box-sizing: border-box;
    margin: auto;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    padding: clamp(20px, 4vw, 32px);
    background: #faf9f6;
    color: #141e26;
    box-shadow: 0 8px 32px #141e2633;
    overscroll-behavior: contain;
}

#about .about__animal-dialog:not([open]) {
    display: none;
}

#about .about__animal-dialog::backdrop {
    background: #141e267a;
}

#about .about__animal-dialog h3 {
    margin: 0 0 12px;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(23px, 4vw, 32px);
    font-weight: 400;
    line-height: 1.2;
}

#about .about__animal-description {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 1279px) {
    #about.about--without-partners {
        --diaries-dune-clearance: 165px;
    }

    #about .about__animals-hint {
        display: block;
        margin: 0 var(--gutter, 20px) 14px;
        color: #141e26;
        text-align: center;
        font-size: 16px;
    }

    #about .about__animals {
        position: relative;
        inset: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(8px, 1.25vw, 16px);
        width: min(calc(100% - 2 * var(--gutter, 20px)), 1000px);
        height: auto;
        aspect-ratio: auto;
        margin: 0 auto;
        transform: none;
        pointer-events: auto;
    }

    #about .about__animal {
        position: relative;
        inset: auto;
        width: clamp(62px, 9vw, 104px);
        transform: none;
    }
}

@media (max-width: 767px) {
    #about.about--without-partners {
        --diaries-dune-clearance: 0px;
    }
}
