body {
    display: block;
}

.about {
    margin: 24px;
    margin-bottom: 25px;
    padding: 25px;
    border: 2px solid var(--color-green);
    line-height: 1.8;
}

.mem_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin: 24px;
}

.mem_gallery .item {
    min-width: 0;
    overflow: hidden;
    color: inherit;
    background: #030a04;
    border: 2px dashed var(--color-green);
    border-radius: 12px;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.mem_gallery .item:hover {
    transform: translateY(-4px);
    border-color: var(--color-green-hover);
}

.mem_gallery .item img {
    display: block;
    width: 100%;
    max-height: 380px;
    object-fit: cover;
}

.mem_gallery .description {
    display: grid;
    gap: 12px;
    padding: 16px;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.date {
    opacity: .7;
    font-size: 10px;
}

.mem-empty {
    grid-column: 1 / -1;
    padding: 25px;
    border: 2px dashed var(--color-green);
    line-height: 1.8;
}

.mem-detail {
    width: min(1000px, calc(100% - 48px));
    margin: 24px auto 60px;
}

.mem-back {
    display: inline-block;
    margin-bottom: 20px;
    color: inherit;
    line-height: 1.8;
}

.mem-detail figure {
    display: grid;
    justify-items: center;
    gap: 20px;
    padding: clamp(12px, 3vw, 28px);
    border: 2px dashed var(--color-green);
    border-radius: 12px;
}

.mem-detail figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.mem-detail figcaption {
    max-width: 75ch;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .about {
        margin: 16px;
        padding: 16px;
        font-size: 10px;
    }

    .mem_gallery {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
        gap: 14px;
        margin: 16px;
    }

    .mem_gallery .description {
        padding: 12px;
        font-size: 10px;
    }

    .mem-detail {
        width: calc(100% - 32px);
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mem_gallery .item {
        transition: none;
    }
}