* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

.menu-button img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
}

.menu-panel {
    position: fixed;
    top: 72px;
    left: 20px;
    display: none;
    z-index: 9;
}

.menu-panel.open {
    display: block;
}

.menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-panel li {
    margin: 0;
    padding: 0;
}

.menu-panel a {
    display: block;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    padding: 4px 0;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

main figure {
    margin: 0;
    padding: 0;
}

main figure:nth-of-type(n + 4) {
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
}

main figure + figure {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

main picture {
    display: block;
}

main figcaption.exif {
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.4;
    color: #999;
    letter-spacing: 0.03em;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

main img {
    display: block;
    width: 100%;
    height: auto;
    background: #f5f5f5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

@media (prefers-reduced-motion: no-preference) {
    main img {
        animation: fade-in 300ms ease-out;
    }
    @keyframes fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
}
