.photo-upload-form {
    display: grid;
    gap: 22px;
}

.photo-picker {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 36px 24px;
    border: 2px dashed #b9c8bf;
    border-radius: 20px;
    background: var(--sage-soft);
    text-align: center;
    cursor: pointer;
}

.photo-picker:hover {
    border-color: var(--sage);
}

.photo-picker-icon {
    font-size: 42px;
}

.photo-picker strong {
    font-size: 20px;
}

.photo-picker > span:not(.photo-picker-icon) {
    color: var(--muted);
}

.photo-picker input {
    width: min(100%, 440px);
    min-height: auto;
    margin-top: 10px;
    padding: 10px;
    background: white;
}

.privacy-note {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #faf8f3;
}

.privacy-note span {
    color: var(--muted);
}

.memory-photo-section {
    max-width: 900px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
}

.memory-photo-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.memory-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.memory-photo-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: white;
}

.memory-photo-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ece8df;
}

.memory-photo-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-photo-meta {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
}

.memory-photo-meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.memory-photo-meta span {
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 700px) {
    .memory-photo-heading {
        flex-direction: column;
    }

    .memory-photo-grid {
        grid-template-columns: 1fr;
    }
}
